diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 22:44:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-06-10 22:44:06 -0400 |
commit | 942d495dcd12801187076d12e5f7409e8a8aa661 (patch) | |
tree | c3853d4ab5409811752c1af6b0292d4e78165f9b /src/resume.c | |
parent | c0693941fdb5118164a8161316fdf8e9ebb499d2 (diff) | |
download | seabios-942d495dcd12801187076d12e5f7409e8a8aa661.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resume.c b/src/resume.c index ad868f62..6db6b714 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. |