Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
well, I have been trying to get my bootcode into pmode and this DOES not work
the Virtual PC resets when I do the long jump after I have set the pmode bit
mov eax, cr0
or eax, 1
mov cr0, eax
jmp 08bh:FLUSH <- if I comment this line and down to the line before hlt it won't restart else it does before hlt I write a P to the video mem, as in the example/tutorials I have found
Well 0x8b isn't going to be a descriptor no matter how you've set up your GDT. It actually points to memory some 17.375 entries into the GDT, so it's not hugely surprising the processor doesn't like what it finds there.
Well 0x8b isn't going to be a descriptor no matter how you've set up your GDT. It actually points to memory some 17.375 entries into the GDT, so it's not hugely surprising the processor doesn't like what it finds there.
Well 0x8b isn't going to be a descriptor no matter how you've set up your GDT. It actually points to memory some 17.375 entries into the GDT, so it's not hugely surprising the processor doesn't like what it finds there.
Well, imo, not. It points to the 17th entry (counting from zero and up), and it loads it with a PL=3. Check your books.
If it were 0x8c or higher it'd be an LDT entry of 17, with cpl = code - 0x8c. Of course, LDT makes no real sense nowadays, nor does having LDT entries at CPL=0.
When you're jumping to pmode you most certainly want to use cpl0 or you're tying yourself up after locking out all help. Sounds like suicide.