summaryrefslogtreecommitdiff
path: root/laden
diff options
context:
space:
mode:
authormarcus <marcus>2007-08-14 01:38:54 +0000
committermarcus <marcus>2007-08-14 01:38:54 +0000
commit4c1974016ea6dba17d8abaa24c1525d908d4c282 (patch)
tree2e4b66d362c0232e9a97891d61093a0d156270f5 /laden
parent672d111427cb4ae1ae820588a0f8d10b57f67f0b (diff)
2007-08-14 Marcus Brinkmann <marcus@gnu.org>
* ia32-shutdown.c (reset): Swap arguments to outb_p.
Diffstat (limited to 'laden')
-rw-r--r--laden/ChangeLog4
-rw-r--r--laden/ia32-shutdown.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/laden/ChangeLog b/laden/ChangeLog
index 1999fd5..995856f 100644
--- a/laden/ChangeLog
+++ b/laden/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-14 Marcus Brinkmann <marcus@gnu.org>
+
+ * ia32-shutdown.c (reset): Swap arguments to outb_p.
+
2007-08-02 Neal H. Walfield <neal@gnu.org>
* ia32-cmain.c (find_components): Save the correct module number.
diff --git a/laden/ia32-shutdown.c b/laden/ia32-shutdown.c
index f467fb1..c7f238d 100644
--- a/laden/ia32-shutdown.c
+++ b/laden/ia32-shutdown.c
@@ -48,14 +48,14 @@ reset (void)
fails, we should try to triple fault. Alternatively, we could
also try to make the BIOS call. */
- outb_p (0x70, 0x80);
+ outb_p (0x80, 0x70);
inb_p (0x71);
while (inb (0x64) & 0x02)
;
- outb_p (0x70, 0x8F);
- outb_p (0x71, 0x00);
+ outb_p (0x8F, 0x70);
+ outb_p (0x00, 0x71);
- outb_p (0x64, 0xFE);
+ outb_p (0xFE, 0x64);
}