diff options
author | AlmuHS <almuhs@github.com> | 2019-04-27 21:27:29 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-27 21:27:29 +0200 |
commit | 150acbb3936615daef85467805696a8db17cfbe2 (patch) | |
tree | cc01582fddbbe26a442c8786c8cedfa6758fca35 | |
parent | 84765c5e562d11e66eb3a06a26d7422a2a6a0691 (diff) |
removed hardcoded values
-rw-r--r-- | i386/i386/cpuboot.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index 93f5110d..8ecb690a 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -63,12 +63,12 @@ _apboot: or $0x1, %eax mov %eax, %cr0 - ljmp $0x8, $M(0f) + ljmp $KERNEL_CS, $M(0f) 0: .code32 - mov $0x10, %eax + mov $KERNEL_DS, %eax mov %ax, %ds mov %ax, %es mov %ax, %ss @@ -77,7 +77,7 @@ _apboot: /* use segmentation to offset ourself. */ lidtl idt_descr - KERNELBASE lgdt boot_gdt_descr - KERNELBASE - ljmp $8,$0f + ljmp $KERNEL_CS, $0f 0: movw $0,%ax |