OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 23, 2024 4:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: [Solved] OS crashes on paging enable
PostPosted: Sun Jun 04, 2017 9:53 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 18, 2009 5:47 pm
Posts: 208
Location: Alexandria, Egypt | Ottawa, Canada
BluCode wrote:
It turns out that I didn't set esp and ebp in pm, just sp and bp in real mode. I set them in pm and now all is well, although ebp is slightly lower than I set it to, which is weird. (0x7bf3 instead of 0x7bff).


GCC alters the value of EBP during runtime:

What is the use of “push %ebp; movl %esp, %ebp” generated by GCC for x86?


Top
 Profile  
 
 Post subject: Re: [Solved] OS crashes on paging enable
PostPosted: Sun Jun 04, 2017 10:05 am 
Offline
User avatar

Joined: Fri May 26, 2017 4:12 pm
Posts: 22
I see, that explains it. Thanks for all your help with this.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 106 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group