]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
Fix build issue on gcc34
authorKevin O'Connor <kevin@koconnor.net>
Wed, 12 Nov 2014 22:49:33 +0000 (17:49 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 12 Nov 2014 22:49:33 +0000 (17:49 -0500)
Older versions of gcc may not inline on_extra_stack() and thus cause a
link error when compiling in 32bit segmented mode.  Test for MODE16
explicitly in stack_hop_back() to prevent the problem.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/stacks.c

index 6f40cbeb64429e959b5c565562dbda03af9f0a8b..0c033d148429644d4c923e34aeac54e40840bcb3 100644 (file)
@@ -430,7 +430,7 @@ stack_hop_back(u32 eax, u32 edx, void *func)
 {
     if (!MODESEGMENT)
         return call16_back(eax, edx, func);
-    if (!on_extra_stack())
+    if (!MODE16 || !on_extra_stack())
         return ((u32 (*)(u32, u32))func)(eax, edx);
     ASSERT16();
     u16 bkup_ss;