Minor - use wait_irq() instead of irq_enable()/hlt() in apm.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 11 Dec 2009 02:15:04 +0000 (21:15 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 11 Dec 2009 02:15:04 +0000 (21:15 -0500)
src/apm.c

index 6efead02f683e8b97bf80636d1efc886549dcbb5..2ca2c640edc446c6df425f48835b6cf23e65a3f3 100644 (file)
--- a/src/apm.c
+++ b/src/apm.c
@@ -9,7 +9,7 @@
 #include "farptr.h" // GET_VAR
 #include "bregs.h" // struct bregs
 #include "ioport.h" // outb
-#include "util.h" // irq_enable
+#include "util.h" // wait_irq
 #include "config.h" // CONFIG_*
 #include "biosvar.h" // GET_GLOBAL
 
@@ -94,8 +94,7 @@ handle_155304(struct bregs *regs)
 static void
 handle_155305(struct bregs *regs)
 {
-    irq_enable();
-    hlt();
+    wait_irq();
     set_success(regs);
 }