From ddb785a296ad867ec7bd2abd246ada7ca10b91b5 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 23 Jan 2009 01:30:29 +0000 Subject: [PATCH] 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 --- src/system/kernel/arch/x86/apm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/apm.cpp b/src/system/kernel/arch/x86/apm.cpp index 71c13b7dbe..ac5757ad2d 100644 --- a/src/system/kernel/arch/x86/apm.cpp +++ b/src/system/kernel/arch/x86/apm.cpp @@ -93,7 +93,7 @@ call_apm_bios(bios_regs *regs) { #if _GNUC_ >= 4 // 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( "pushfl; " "pushl %%ebp; " @@ -107,6 +107,8 @@ call_apm_bios(bios_regs *regs) "=S" (regs->esi), "=m" (regs->flags) : "a" (regs->eax), "b" (regs->ebx), "c" (regs->ecx) : "memory", "edi", "cc"); +#else + return B_ERROR; #endif if (regs->flags & CARRY_FLAG)