Then I go to protected mode :
Code: Select all
mov eax,cr0
or eax,0x1
mov cr0,eax
jmp .next
.next:
mov ax,0x10
mov ds,ax
mov es,ax
mov fs,ax
mov gs,ax
mov ss,ax
mov esp,0x9F000
jmp dword 0x8:0x100000
I get this with bochs :
Seems to be a "simple" triple fault, but when I put a hlt before the jump to the kernel, everything works fine => The problem is within the jump, but I couldn't find it out.[CPU] BxError: instruction with op1=0xff
[CPU] nnn was 7
[CPU] WARNING: Encountered an unknown instruction (signalling illegal instruction) :
[CPU] >>PANIC<< exception(): 3rd exception with no resolution
Can anyone help ?