Page 1 of 1

User mode not working--Please HELP!!--

Posted: Sat Jan 01, 2011 2:33 pm
by HeinanXP
Hey,

I tried to implement the user mode as written in the Chapter 23 demo, but when I try to run it, I always get a "General Protection Fault" error in VirtualBox.

I also tried to run the demo as specified by Mike, but I get the same result (again, in VirtualBox)

How can I fix this??

Re: User mode not working--Please HELP!!--

Posted: Sat Jan 01, 2011 3:57 pm
by Hoozim
I'm sure Mike's code has this but here are a few things to look for:
Is the ring 3 code running in a user page?
Is the RPL 3?
Are you executing any privileged instructions?

If these aren't the problems, post the code that causes the fault.

Re: User mode not working--Please HELP!!--

Posted: Sat Jan 01, 2011 4:48 pm
by HeinanXP
I tried to run the demo... What might be wrong? The demo should work.. and it doesn't

Re: User mode not working--Please HELP!!--

Posted: Mon Jan 03, 2011 1:24 am
by Mike
Hello,

What are the results if you run it in VPC or Bochs? If same error in Bochs, please provide version and your log file. Please note the software provided by the series is not tested in VirtualBox, so compatibility errors might exist.

Re: User mode not working--Please HELP!!--

Posted: Mon Jan 03, 2011 2:14 pm
by HeinanXP
Hmm, bochs and vpc doesn't like win7 x64, apparently.

I'm sorry I'm asking so much about it, but when do you plan to release chapter 22 update?

And any estimate time for chapter 24??