LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-27-2007, 07:16 AM   #1
manas_sem
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Rep: Reputation: 15
function calls inside a function


i am trying to develop my own OS for pentium board...

inside the task when i am calling a function from another function , PC is restarting....

For independent function calls, there is no problem....

Can somebody please help me out...............
 
Old 02-28-2007, 12:26 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
only if you provide way more info.
 
Old 02-28-2007, 01:27 AM   #3
manas_sem
LQ Newbie
 
Registered: Dec 2006
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by matthewg42
only if you provide way more info.
inside ISR i am Saving registers, esp,ebp for the current task & restoring registers of new task......& jumping to the new task's IP from the ISR......if there are no function calls the OS is working fine...for one level of function call there is no problem....function call inside a function call is giving General Protection Fault.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function calls inside a task not working manas_sem Programming 0 02-26-2007 05:19 AM
Tracing function calls... How? ik_nitk Programming 3 06-05-2006 07:05 AM
function defn inside a function in C...!!! arunka Programming 1 02-05-2006 01:08 AM
libc function calls h/w Programming 4 02-13-2004 03:00 PM
using timer for repeated function calls poojamanu Programming 1 04-09-2003 08:17 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration