edit: bochs gives a "check_cs(0x0010): not a valid code segment" though it is changed to 0x8 when the interrupt occurs
edit2: CS is set 0x10 directly after grub2, from what I gather from this: Can somebody tell me if this ASM is ok ? is that setting CS to 0x10 is not valid if DS has that value already :/ however I do have:
Code: Select all
mov $0x10, %ax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
mov %ax, %ss
edit3: Wow I feel stupid -_- I forgot put the jmp in at the end of the gdt_flush