Add more linker protections around variables accessed from 16bit mode.
[seabios.git] / src / system.c
index abbfbbf82ad6fa96404d35c0c25c09b742b54302..7a0d20c4a9b3ad53fdd3a62a371d58a5fc0e4e62 100644 (file)
@@ -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)