summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/devarch.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-19 23:34:43 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-19 23:34:43 +0100
commit7523131e78a0974154cc90272b41991435b1ec19 (patch)
tree11cfb7ed5a1d1d41d0fbd0452a9791ff4370a5ef /sys/src/9/pc/devarch.c
parentd94dc3314dc2431cafb49b394ac84123dd7b25d8 (diff)
pc, pc64: untangle acpireset() from mpshutdown()
mpshutdown() used to call acpireset() making it impossible to build a kernel without archacpi. now, mpshutdown() is a helper function that only shuts down the application processors that gets used from mpreset() and acpireset(). the generic machine reset code in exported by devarch's archreset() function that is called by mpreset() and from acpireset() as a fallback. so the code duplication that was in mpshutdown() is avoided.
Diffstat (limited to 'sys/src/9/pc/devarch.c')
-rw-r--r--sys/src/9/pc/devarch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/pc/devarch.c b/sys/src/9/pc/devarch.c
index 412ca767e..24c5f0e7b 100644
--- a/sys/src/9/pc/devarch.c
+++ b/sys/src/9/pc/devarch.c
@@ -528,7 +528,7 @@ nop(void)
{
}
-static void
+void
archreset(void)
{
i8042reset();
@@ -548,6 +548,7 @@ archreset(void)
outb(0xcf9, 0x02);
outb(0xcf9, 0x06);
+ print("can't reset\n");
for(;;)
idle();
}