diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-12-29 20:42:40 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-12-29 20:42:40 -0500 |
commit | 92f95b0fecca029a0c4dd81203e6b42f60c4a382 (patch) | |
tree | 63a9bb2ff504decebbfd73d3a41d22d7c7aaf4be /src/system.c | |
parent | c659fdedadce1566308675d0c44537ade0eb12a2 (diff) | |
download | seabios-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.c | 8 |
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) |