LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   function calls inside a function (https://www.linuxquestions.org/questions/programming-9/function-calls-inside-a-function-532870/)

manas_sem 02-27-2007 07:16 AM

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

matthewg42 02-28-2007 12:26 AM

only if you provide way more info.

manas_sem 02-28-2007 01:27 AM

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.


All times are GMT -5. The time now is 07:01 PM.