aboutsummaryrefslogtreecommitdiff
path: root/src/resume.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-06-10 22:44:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-06-10 22:44:06 -0400
commit942d495dcd12801187076d12e5f7409e8a8aa661 (patch)
treec3853d4ab5409811752c1af6b0292d4e78165f9b /src/resume.c
parentc0693941fdb5118164a8161316fdf8e9ebb499d2 (diff)
downloadseabios-hppa-942d495dcd12801187076d12e5f7409e8a8aa661.zip
seabios-hppa-942d495dcd12801187076d12e5f7409e8a8aa661.tar.gz
seabios-hppa-942d495dcd12801187076d12e5f7409e8a8aa661.tar.bz2
Add support for gcc v3.x compilers.
Suppress __attribute__((externally_visible)) when no -fwhole-program Add switch hack for compilers without -fno-jump-tables Define memcpy() function (for compilers without -minline-all-stringops). Define call16_simpint as a macro (a param needs to be inlined). Make sure s3_resume is only defined in 32bit mode.
Diffstat (limited to 'src/resume.c')
-rw-r--r--src/resume.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resume.c b/src/resume.c
index ad868f6..6db6b71 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -94,6 +94,7 @@ handle_resume(u8 status)
panic("Unimplemented shutdown status: %02x\n", status);
}
+#if MODE16==0
void VISIBLE32
s3_resume()
{
@@ -123,6 +124,7 @@ s3_resume()
}
call16big(&br);
}
+#endif
// Ughh - some older gcc compilers have a bug which causes VISIBLE32
// functions to not be exported as global variables.