pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movl $KERNEL_DS,%eax
+ movl $KGDT_R0_DATA,%eax
movl %eax,%ds
movl %eax,%es
movl %eax,%gs
- movl $PCR_SELECTOR,%eax
+ movl $KGDT_R0_PCR,%eax
movl %eax,%fs
pushl %esp
pushl %ebx
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 0)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 1)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 2)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 3)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 4)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 5)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 6)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 7)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 8)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 9)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 10)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 11)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 12)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 13)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 14)
pushl %gs
movl $0xceafbeef,%eax
pushl %eax
- movw $KERNEL_DS,%ax
+ movw $KGDT_R0_DATA,%ax
movw %ax,%ds
movw %ax,%es
movw %ax,%gs
- movl $PCR_SELECTOR, %eax
+ movl $KGDT_R0_PCR, %eax
movl %eax, %fs
pushl %esp
pushl $(IRQ_BASE + 15)