Better return B_ERROR when not compiling the actual call in.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28987 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-01-23 01:30:29 +00:00
parent c9c7eecd8e
commit ddb785a296
+3 -1
View File
@@ -93,7 +93,7 @@ call_apm_bios(bios_regs *regs)
{ {
#if _GNUC_ >= 4 #if _GNUC_ >= 4
// TODO: Fix this for GCC 4.3! The direct reference to sAPMBiosEntry // TODO: Fix this for GCC 4.3! The direct reference to sAPMBiosEntry
// in the ASM below causes undefined references. // in the asm below causes undefined references.
asm volatile( asm volatile(
"pushfl; " "pushfl; "
"pushl %%ebp; " "pushl %%ebp; "
@@ -107,6 +107,8 @@ call_apm_bios(bios_regs *regs)
"=S" (regs->esi), "=m" (regs->flags) "=S" (regs->esi), "=m" (regs->flags)
: "a" (regs->eax), "b" (regs->ebx), "c" (regs->ecx) : "a" (regs->eax), "b" (regs->ebx), "c" (regs->ecx)
: "memory", "edi", "cc"); : "memory", "edi", "cc");
#else
return B_ERROR;
#endif #endif
if (regs->flags & CARRY_FLAG) if (regs->flags & CARRY_FLAG)