From: Kevin O'Connor Date: Fri, 11 Dec 2009 02:15:04 +0000 (-0500) Subject: Minor - use wait_irq() instead of irq_enable()/hlt() in apm. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=6d768b5fad05dd081a3e85e7e2c48ce57846e71e;p=seabios.git Minor - use wait_irq() instead of irq_enable()/hlt() in apm. --- diff --git a/src/apm.c b/src/apm.c index 6efead0..2ca2c64 100644 --- 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); }