summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/mem.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-05-22 23:58:24 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2020-05-22 23:58:24 +0200
commitb86bb35c7d82f097e6572d400527046245b877fd (patch)
tree81d8366c8eaf5cfb7df253d3506ffc88c456bb7f /sys/src/9/pc/mem.h
parent0002fd0cf786d16c9b3e1ab62f0cb92b2461f185 (diff)
pc, pc64: do page attribute table (PAT) init early in cpuidentify()
the page attribute table was initialized in mmuinit(), which is too late for bootscreen(). So now we check for PAT support and insert the write-combine entry early in cpuidentify(). this might have been the cause of some slow EFI framebuffers on machines with overlapping or insufficient MTRR entries.
Diffstat (limited to 'sys/src/9/pc/mem.h')
-rw-r--r--sys/src/9/pc/mem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/mem.h b/sys/src/9/pc/mem.h
index 56649e305..ef646db7d 100644
--- a/sys/src/9/pc/mem.h
+++ b/sys/src/9/pc/mem.h
@@ -173,3 +173,5 @@
#define getpgcolor(a) 0
+/* PAT entry used for write combining */
+#define PATWC 7