1 .set CODE_SEL, 0x08 # code segment selector in kernel mode
2 .set DATA_SEL, 0x10 # data segment selector in kernel mode
3 .set IDT_ADDR, 0x80000 # IDT start address
4 .set IDT_SIZE, (256*8) # IDT has fixed length
5 .set GDT_ADDR, (IDT_ADDR+IDT_SIZE)
7 .set GDT_ENTRIES, 5 # GDT has 5 descriptors
9 # cs segment descriptor for kernel
10 # ds segment descriptor for kernel
13 .set GDT_SIZE, (32*GDT_ENTRIES)
15 .set KERNEL_SECT, 99 # Kernel lenght, counted by sectors
16 .set STACK_BOT, 0xa0000 # stack starts at 640K