aboutsummaryrefslogtreecommitdiff
path: root/src/apm.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-12-10 21:15:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-12-10 21:15:04 -0500
commit6d768b5fad05dd081a3e85e7e2c48ce57846e71e (patch)
tree24ecd55a9fbe563250c1b6ab4a29ae029baa75db /src/apm.c
parentcf2affa6de24cd0ceb07adb61c1279674f914c3f (diff)
downloadseabios-hppa-6d768b5fad05dd081a3e85e7e2c48ce57846e71e.zip
seabios-hppa-6d768b5fad05dd081a3e85e7e2c48ce57846e71e.tar.gz
seabios-hppa-6d768b5fad05dd081a3e85e7e2c48ce57846e71e.tar.bz2
Minor - use wait_irq() instead of irq_enable()/hlt() in apm.
Diffstat (limited to 'src/apm.c')
-rw-r--r--src/apm.c5
1 files changed, 2 insertions, 3 deletions
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);
}