[Solved] OS crashes on paging enable

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.
User avatar
iocoder
Member
Member
Posts: 208
Joined: Sun Oct 18, 2009 5:47 pm
Libera.chat IRC: iocoder
Location: Alexandria, Egypt | Ottawa, Canada
Contact:

Re: [Solved] OS crashes on paging enable

Post by iocoder »

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?
User avatar
BluCode
Posts: 22
Joined: Fri May 26, 2017 4:12 pm

Re: [Solved] OS crashes on paging enable

Post by BluCode »

I see, that explains it. Thanks for all your help with this.
Post Reply