3 # memory reserved for setup_selectors
6 # memory reserved for set_gdt
11 # setup_selectors(uint16_t code, uint16_t data)
12 # loads the requested selectors to all the selector registers
13 .globl setup_selectors
15 # set data selectors directly
22 # set cs using a long jump
30 # set_gdt(uint32_t addr, uint16_t limit)
31 # loads the GDTR with the new address and limit for the GDT
41 # set_task_reg(uint16_t tss_selector)
42 # loads the TSS selector in the task register