aboutsummaryrefslogtreecommitdiff
path: root/src/apm.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-05-26 15:19:33 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-05-26 15:19:33 -0400
commit7ba6b30ca97d98c1ed97af19eac446f8214454df (patch)
tree72800caac03fddf4dca23ba911a5c7448d18fe83 /src/apm.c
parent3e1b6496be3100d182b764a6eeee94e94e894185 (diff)
downloadseabios-hppa-7ba6b30ca97d98c1ed97af19eac446f8214454df.zip
seabios-hppa-7ba6b30ca97d98c1ed97af19eac446f8214454df.tar.gz
seabios-hppa-7ba6b30ca97d98c1ed97af19eac446f8214454df.tar.bz2
Support config option to disable APM BIOS calls.
New option CONFIG_APMBIOS can be used to disable apm.
Diffstat (limited to 'src/apm.c')
-rw-r--r--src/apm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apm.c b/src/apm.c
index 4a0f803..2abf504 100644
--- a/src/apm.c
+++ b/src/apm.c
@@ -183,6 +183,11 @@ handle_1553XX(struct bregs *regs)
void VISIBLE16
handle_1553(struct bregs *regs)
{
+ if (! CONFIG_APMBIOS) {
+ set_code_fail(regs, RET_EUNSUPPORTED);
+ return;
+ }
+
//debug_stub(regs);
switch (regs->al) {
case 0x00: handle_155300(regs); break;