protected mode doesn't work

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.
Post Reply
gpsd
Posts: 10
Joined: Tue Oct 22, 2013 6:22 am
Location: Italy

protected mode doesn't work

Post by gpsd »

When i try to enter in protected mode, doesn't work, why?
where i wrong?

the source is attached.
Attachments
kernel.zip
source
(2.64 KiB) Downloaded 26 times
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: protected mode doesn't work

Post by AJ »

Hi,

I have not yet looked at your code, but what is "doesn't work"? Does the machine hang? Does it triple fault? What final register values are displayed on your emulator console? Are you even using an emulator?

Also, if there's relevant mode switching code, perhaps you could post that in code tags instead of the entire zip.

Cheers,
Adam
gpsd
Posts: 10
Joined: Tue Oct 22, 2013 6:22 am
Location: Italy

Re: protected mode doesn't work

Post by gpsd »

Hi,
I believe doing a triple fault, after the boot(kernel "loaded"), qemu restart it continuosly.

I use qemu for windows
User avatar
summersong
Member
Member
Posts: 32
Joined: Sat Mar 26, 2011 5:26 am
Location: Moscow

Re: protected mode doesn't work

Post by summersong »

Bochs has debugger and detailed log.
Post Reply