My Kernel does a triple fault when I call a function with a
Posted: Sat Nov 01, 2003 12:00 am
Hi
I have a very simple kernel. I have wrote a simple printing function by directly writing on the video memory. But when I call this function with a string my kernel does a triple fault.
Here's my code
void main()
{
//Other initializations -- irrelevant to this problem
kprint("Kernel running");
}
void kprint(char *str)
{
//Writing to video memory
//Even if I remove the code within this function
// I still get Triple Fault.
}
I use djgpp's gcc and ld.
Thank you.
I have a very simple kernel. I have wrote a simple printing function by directly writing on the video memory. But when I call this function with a string my kernel does a triple fault.
Here's my code
void main()
{
//Other initializations -- irrelevant to this problem
kprint("Kernel running");
}
void kprint(char *str)
{
//Writing to video memory
//Even if I remove the code within this function
// I still get Triple Fault.
}
I use djgpp's gcc and ld.
Thank you.