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

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator: Moderators

Post Reply
HeinanXP
Posts: 19
Joined: Sun Jul 11, 2010 1:12 pm

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

Post by HeinanXP » Sat Jan 01, 2011 2:33 pm

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??

Hoozim
Posts: 34
Joined: Sun Nov 21, 2010 6:40 pm

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

Post by Hoozim » Sat Jan 01, 2011 3:57 pm

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.

HeinanXP
Posts: 19
Joined: Sun Jul 11, 2010 1:12 pm

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

Post by HeinanXP » Sat Jan 01, 2011 4:48 pm

I tried to run the demo... What might be wrong? The demo should work.. and it doesn't

User avatar
Mike
Site Admin
Posts: 465
Joined: Sat Oct 20, 2007 7:58 pm
Contact:

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

Post by Mike » Mon Jan 03, 2011 1:24 am

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.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

HeinanXP
Posts: 19
Joined: Sun Jul 11, 2010 1:12 pm

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

Post by HeinanXP » Mon Jan 03, 2011 2:14 pm

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??

Post Reply