[Haiku-commits] r28986 - haiku/trunk/src/system/kernel/arch/x86

mmlr at mail.berlios.de mmlr at mail.berlios.de
Fri Jan 23 02:24:49 CET 2009


Author: mmlr
Date: 2009-01-23 02:24:47 +0100 (Fri, 23 Jan 2009)
New Revision: 28986
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=28986&view=rev

Modified:
   haiku/trunk/src/system/kernel/arch/x86/apm.cpp
Log:
Comment out problematic inline asm statement for GCC 4. The direct reference
to sAPMBiosEntry generates undefined symbols and I'm not in a condition to fix
this right now. Added a TODO.


Modified: haiku/trunk/src/system/kernel/arch/x86/apm.cpp
===================================================================
--- haiku/trunk/src/system/kernel/arch/x86/apm.cpp	2009-01-23 01:21:27 UTC (rev 28985)
+++ haiku/trunk/src/system/kernel/arch/x86/apm.cpp	2009-01-23 01:24:47 UTC (rev 28986)
@@ -91,6 +91,9 @@
 static status_t
 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.
 	asm volatile(
 		"pushfl; "
 		"pushl %%ebp; "
@@ -104,6 +107,7 @@
 		  "=S" (regs->esi), "=m" (regs->flags)
 		: "a" (regs->eax), "b" (regs->ebx), "c" (regs->ecx)
 		: "memory", "edi", "cc");
+#endif
 
 	if (regs->flags & CARRY_FLAG)
 		return B_ERROR;




More information about the Haiku-commits mailing list