aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-12-29 20:42:40 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-12-29 20:42:40 -0500
commit92f95b0fecca029a0c4dd81203e6b42f60c4a382 (patch)
tree63a9bb2ff504decebbfd73d3a41d22d7c7aaf4be /src/system.c
parentc659fdedadce1566308675d0c44537ade0eb12a2 (diff)
downloadseabios-92f95b0fecca029a0c4dd81203e6b42f60c4a382.tar.gz
Add more linker protections around variables accessed from 16bit mode.
Rename VAR16 to VAR16_32 -- that macro supports accesses from both 16bit and 32bit mode. Introduce a new macro VAR16 that must be present on all global variables accessed from 16bit mode.
Diffstat (limited to 'src/system.c')
-rw-r--r--src/system.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/system.c b/src/system.c
index abbfbbf8..7a0d20c4 100644
--- a/src/system.c
+++ b/src/system.c
@@ -267,12 +267,12 @@ handle_15e801(struct bregs *regs)
}
// Info on e820 map location and size.
-struct e820entry *e820_list VAR16;
-int e820_count VAR16;
+struct e820entry *e820_list VAR16_32;
+int e820_count VAR16_32;
// Amount of continuous ram under 4Gig
-u32 RamSize VAR16;
+u32 RamSize VAR16_32;
// Amount of continuous ram >4Gig
-u64 RamSizeOver4G VAR16;
+u64 RamSizeOver4G;
static void
handle_15e820(struct bregs *regs)