OSDev.org

The Place to Start for Operating System Developers
It is currently Mon May 20, 2024 12:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Frame pointer special considerations?
PostPosted: Tue Oct 04, 2016 10:47 am 
Offline
Member
Member
User avatar

Joined: Fri Nov 01, 2013 4:05 pm
Posts: 90
Location: Fribourg, Switzerland
Hi guys,

( I know my question is very vague, but I don't think I understand the issue :( )

Recently I wanted to add some basic stack unwinding to my kernel to ease debugging. I added -fno-omit-frame-pointer. Everything in the kernel seems to run fine and then once the scheduler starts the first user task, I have weird page faults (writing at 0x0 with push whereas the stack pointer seems fine) at the very beginning of programs.

I set the rbp to 0 in the initial context of the switch so that the first push should make the end of the frame pointer list.

I checked the main function in my C library and it contains the prologue for frame pointers. Everything seems in order. It just does not work :s

Is there some special considerations I have to think about when using stack pointers ?

Thanks

_________________
Thor Operating System: C++ 64 bits OS: https://github.com/wichtounet/thor-os
Good osdeving!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 21 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