Function call problem
Function call problem
Hey Guys
Has anyone got any ideas why calling a function in another object file would cause my kernel to crash and through up "running in bogus memory".
I have linked the kernel at 3Gb and all the object files that i call functions in are linked together.
Peter
Has anyone got any ideas why calling a function in another object file would cause my kernel to crash and through up "running in bogus memory".
I have linked the kernel at 3Gb and all the object files that i call functions in are linked together.
Peter
Re:Function call problem
Hey Guys
It seems to be working fine on the call of the function but as soon as the function tries to return it throws up the error.
It seems to be working fine on the call of the function but as soon as the function tries to return it throws up the error.
Re:Function call problem
to me it sounds like a stack problem since the function is executed.................but thats just me..the slacker
Re:Function call problem
Hmm, I have probably asked this before but i will ask it agin does C automatically set up its own stack or do i need to make sure a stack has been set up for the C Kernel before i call it?
Peter
Peter
Re:Function call problem
im pretty sure that C code uses the preexsiting stack. actually it has to--
Re:Function call problem
Cheers
I managed to fix that now, it was the stack causing problems.
I managed to fix that now, it was the stack causing problems.
Re:Function call problem
Go slacker - your getting to be a regular expert. Watch out for this one Pype & Tim.
good going slacker
_mark()
good going slacker
_mark()
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Function call problem
He's a slack guy, our slacker.
pskyboy, take care that your stack is mapped too Then: No problems.
pskyboy, take care that your stack is mapped too Then: No problems.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
Re:Function call problem
Have you loaded enough sectors so that your entire kernel is loaded ?
If you're kernel isn't fully loaded you will get an error "running in bogus memory", but this error can also occur in other situations.
If you're kernel isn't fully loaded you will get an error "running in bogus memory", but this error can also occur in other situations.
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Function call problem
that's also a problem, pini. I used to load the amount of sectors, dd wrot onto disk.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image