aboutsummaryrefslogtreecommitdiff
path: root/src/resume.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-02 23:35:23 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-02 23:35:23 -0500
commit7cccf542f9a1f6d6d25e0b8a6db11c58530a0a61 (patch)
tree1ec88efd846e3dd76e8beb896a6349100ed05090 /src/resume.c
parent8c0e372c2afaee5e19b46f720687beeb6740cb73 (diff)
downloadseabios-hppa-7cccf542f9a1f6d6d25e0b8a6db11c58530a0a61.zip
seabios-hppa-7cccf542f9a1f6d6d25e0b8a6db11c58530a0a61.tar.gz
seabios-hppa-7cccf542f9a1f6d6d25e0b8a6db11c58530a0a61.tar.bz2
Don't define bda as a macro in resume.c - it confuses AVOIDCOMBINE mode.
When using AVOIDCOMBINE, macros can have global scope. This caused the bda macro in resume.c to conflict with the bda variable in post.c.
Diffstat (limited to 'src/resume.c')
-rw-r--r--src/resume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resume.c b/src/resume.c
index 4ff3133..2100383 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -33,6 +33,7 @@ handle_resume(u8 status)
debug_serial_setup();
dprintf(1, "In resume (status=%d)\n", status);
+ struct bios_data_area_s *bda = MAKE_FARPTR(SEG_BDA, 0);
switch (status) {
case 0xfe:
// S3 resume request. Jump to 32bit mode to handle the resume.
@@ -60,7 +61,6 @@ handle_resume(u8 status)
// NO BREAK
case 0x0a:
// resume execution by jump via 40h:0067h
-#define bda ((struct bios_data_area_s *)MAKE_FARPTR(SEG_BDA, 0))
asm volatile(
"movw %%ax, %%ds\n"
"ljmpw *%0\n"