-// Protected mode IDT descriptor
-//
-// I just make the limit 0, so the machine will shutdown
-// if an exception occurs during protected mode memory
-// transfers.
-//
-// Set base to f0000 to correspond to beginning of BIOS,
-// in case I actually define an IDT later
-// Set limit to 0
-pmode_IDT_info:
- .word 0x0000 // limit 15:00
- .long 0xf0000 // base 16:47
-
-// Real mode IDT descriptor
-//
-// Set to typical real-mode values.
-// base = 000000
-// limit = 03ff
-rmode_IDT_info:
- .word 0x03ff // limit 15:00
- .long 0 // base 16:47
-
-rombios32_gdt_48:
- .word 0x30
- .word rombios32_gdt
- .word 0x000f
-
-rombios32_gdt:
- .word 0, 0, 0, 0
- .word 0, 0, 0, 0
- // 32 bit flat code segment (PROTECTED_MODE_CS)
- .word 0xffff, 0, 0x9b00, 0x00cf
- // 32 bit flat data segment (PROTECTED_MODE_DS)
- .word 0xffff, 0, 0x9300, 0x00cf
- // 16 bit code segment base=0xf0000 limit=0xffff (REAL_MODE_CS)
- .word 0xffff, 0, 0x9b0f, 0x0000
- // 16 bit data segment base=0x0 limit=0xffff (REAL_MODE_DS)
- .word 0xffff, 0, 0x9300, 0x0000
-
-// We need a copy of this string, but we are not actually a PnP BIOS,
-// so make sure it is *not* aligned, so OSes will not see it if they
-// scan.
- .align 2
- .byte 0
- .globl pnp_string
-pnp_string:
- .ascii "$PnP"