general protection fault on real system

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
osmosys
Posts: 14
Joined: Sun Oct 05, 2008 4:33 am

general protection fault on real system

Post by osmosys »

Hi,
I got a general protection fault while testing my os on a real system. The code works fine on both qemu and bochs and shows no errors. Is there any reason why the real system shows fault but not emulator ?

In our os, the general protection fault occurs while killing an application and returning to the shell. For switching of privilege levels, i use a single tss. The single tss is initialized to contains the values of kernel mode esp0 and ss0.

PLEASE HELP US SOON....
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: general protection fault on real system

Post by Combuster »

Your OS probably relies on memory being zeroed in advance.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply