summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/squidboy.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-10-21 06:03:03 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-10-21 06:03:03 +0200
commite81e1a4aeddad2bc612c9c5243573250b6ff33a4 (patch)
treef1c178d36e86819bc725fa3b009295553b01e737 /sys/src/9/pc/squidboy.c
parentdfe8c8bffb497ecd46e9e43eb838ff3e10912663 (diff)
pc, pc64: make mtrr() callable from interrupt context and before mpinit
to make it possible to mark the bootscreen framebuffer as write combining in early initialization, mtrr() is changed not not to error() but to return an error string. as bootscreen() is used before multiprocessor initialization, we have to synchronize the mtrr's for every processor as it comes online. for this, a new mtrrsync() function is provided that is called from cpuidentify() if mtrr support is indicated. the boot processor runs mtrrsync() which snarfs the registers. later, mtrrsync() is run again from the application processors which apply the values from the boot processor. checkmtrr() from mp.c was removed as its task is also done by mtrrsync() now.
Diffstat (limited to 'sys/src/9/pc/squidboy.c')
-rw-r--r--sys/src/9/pc/squidboy.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/src/9/pc/squidboy.c b/sys/src/9/pc/squidboy.c
index 03fccb691..593016595 100644
--- a/sys/src/9/pc/squidboy.c
+++ b/sys/src/9/pc/squidboy.c
@@ -8,8 +8,6 @@
#include "mp.h"
-extern void checkmtrr(void);
-
static void
squidboy(Apic* apic)
{
@@ -20,7 +18,6 @@ squidboy(Apic* apic)
cpuidentify();
cpuidprint();
- checkmtrr();
apic->online = 1;
coherence();