Where did you see that I'm pushing ebp and never popping it back from the stack? I cannot seem to find it.It results in a triple fault because ebp is pushed but never popped... CPU pops important registers back from the stack and since the stack is corrupted it faults.
[Sovled] Problem with 32 bit interrupt handling in C.
-
- Member
- Posts: 40
- Joined: Tue Jul 16, 2019 8:40 pm
Re: Problem with 32 bit interrupt handling in C.
Re: Problem with 32 bit interrupt handling in C.
you don't in particular, it is automatically generated by the compiler for normal functions like the one you have defined.
Skylight: https://github.com/austanss/skylight
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
-
- Member
- Posts: 40
- Joined: Tue Jul 16, 2019 8:40 pm
Re: Problem with 32 bit interrupt handling in C.
So is there a way to stop this from happening or how do I fix it?
Re: Problem with 32 bit interrupt handling in C.
__attribute__(interrupt)
Skylight: https://github.com/austanss/skylight
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
I make stupid mistakes and my vision is terrible. Not a good combination.
NOTE: Never respond to my posts with "it's too hard".
Re: [Sovled] Problem with 32 bit interrupt handling in C.
I write my handlers in seperate ASM files. Thats the cleanest way to do it.