diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-12-10 21:15:04 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-12-10 21:15:04 -0500 |
commit | 6d768b5fad05dd081a3e85e7e2c48ce57846e71e (patch) | |
tree | 24ecd55a9fbe563250c1b6ab4a29ae029baa75db | |
parent | cf2affa6de24cd0ceb07adb61c1279674f914c3f (diff) | |
download | seabios-6d768b5fad05dd081a3e85e7e2c48ce57846e71e.tar.gz |
Minor - use wait_irq() instead of irq_enable()/hlt() in apm.
-rw-r--r-- | src/apm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } |