aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-17 18:49:20 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-17 18:49:20 -0500
commit308537650feeabcd953283e828cf7f51495c11c5 (patch)
treec4cfb8b1e44679ac41abe68e25071a549a41c329 /src/disk.c
parent095e89bc0b9238ae88383484ca006a3e7af873ad (diff)
downloadseabios-hppa-308537650feeabcd953283e828cf7f51495c11c5.zip
seabios-hppa-308537650feeabcd953283e828cf7f51495c11c5.tar.gz
seabios-hppa-308537650feeabcd953283e828cf7f51495c11c5.tar.bz2
Move variables from assembler to C code.
Define macro VAR16FIXED for declaring a variable at a fixed location. Introduce new file src/misc.c, and move non int15 calls from system.c to it. Implement all fixed location variables in C code. Move IDT/GDT defs to misc.c. Remove unused gdt entry 1.
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/disk.c b/src/disk.c
index d5c7df2..13cb1f3 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -712,3 +712,6 @@ handle_76()
SET_BDA(disk_interrupt_flag, 0xff);
eoi_pic2();
}
+
+// Old Fixed Disk Parameter Table (newer tables are in the ebda).
+struct fdpt_s OldFDPT VAR16FIXED(0xe401);