Add linker magic to ensure 16bit variables aren't repeated in 32bit code.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 29 Dec 2008 02:37:27 +0000 (21:37 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 29 Dec 2008 02:37:27 +0000 (21:37 -0500)
commit4a754b38ee5f8fa9539e49033063b1854d32ae3e
tree9ef3bd7318e17dfee2d0d80e608873ce7c4b769e
parent4d7c37e12ef4ceb6903dd76ee700beb99fbf5f8e
Add linker magic to ensure 16bit variables aren't repeated in 32bit code.

Add VAR16 macro to enable a variable to be available in both 32bit and
    16bit code.  This reduces the occurrences of "#if MODE16".
Also add ASM16 macro to reduce occurrences of "#if MODE16".
src/clock.c
src/floppy.c
src/floppy_dbt.c
src/pnpbios.c
src/rombios.lds.S
src/smpdetect.c
src/system.c
src/types.h