aboutsummaryrefslogtreecommitdiff
path: root/src/clock.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/clock.c
parentc659fdedadce1566308675d0c44537ade0eb12a2 (diff)
downloadseabios-hppa-92f95b0fecca029a0c4dd81203e6b42f60c4a382.zip
seabios-hppa-92f95b0fecca029a0c4dd81203e6b42f60c4a382.tar.gz
seabios-hppa-92f95b0fecca029a0c4dd81203e6b42f60c4a382.tar.bz2
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/clock.c')
-rw-r--r--src/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clock.c b/src/clock.c
index 4590adc..c76ea75 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -51,7 +51,7 @@
#define PIT_TICK_RATE 1193182 // Underlying HZ of PIT
#define CALIBRATE_COUNT 0x800 // Approx 1.7ms
-u32 cpu_khz VAR16;
+u32 cpu_khz VAR16_32;
static void
calibrate_tsc()