diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-01-19 15:44:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-01-19 15:44:44 -0500 |
commit | 35ae726530432c478a0955532e7e6c8b32c4bfef (patch) | |
tree | c9a6fc65917f572bc272367c9d76a7b9d93cc2ee /src/misc.c | |
parent | a9e286d47ff1872b2d992b246f4bb8d2d2d8f498 (diff) | |
download | seabios-35ae726530432c478a0955532e7e6c8b32c4bfef.tar.gz |
Rename MAKE_FARPTR (and similar) to MAKE_FLATPTR.
The term "far pointer" is used in many 16bit specs, and it is
different from what MAKE_FARPTR creates. So, use the term "flat
pointer" in the code to distinguish between the two meanings.
Also, use the suffix "_fl" consistently when working with "flat
pointers".
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -137,7 +137,7 @@ struct descloc_s { // Real mode IDT descriptor struct descloc_s rmode_IDT_info VAR16_32 = { .length = sizeof(struct rmode_IVT) - 1, - .addr = (u32)MAKE_FARPTR(SEG_IVT, 0), + .addr = (u32)MAKE_FLATPTR(SEG_IVT, 0), }; // Dummy IDT that forces a machine shutdown if an irq happens in @@ -147,7 +147,7 @@ u8 dummy_IDT VAR16_32; // Protected mode IDT descriptor struct descloc_s pmode_IDT_info VAR16_32 = { .length = sizeof(dummy_IDT) - 1, - .addr = (u32)MAKE_FARPTR(SEG_BIOS, &dummy_IDT), + .addr = (u32)MAKE_FLATPTR(SEG_BIOS, &dummy_IDT), }; // GDT @@ -171,7 +171,7 @@ u64 rombios32_gdt[] VAR16_32 __aligned(8) = { // GDT descriptor struct descloc_s rombios32_gdt_48 VAR16_32 = { .length = sizeof(rombios32_gdt) - 1, - .addr = (u32)MAKE_FARPTR(SEG_BIOS, rombios32_gdt), + .addr = (u32)MAKE_FLATPTR(SEG_BIOS, rombios32_gdt), }; |