Yet Another Problem with SetInterrupts()
Posted: Sat Aug 08, 2015 6:06 am
I have the following files:
int.asm:
int.h:
some c file:
Unfortunately my kernel crashes, falls into an infinate loop of reboots (probably Triple Fault).
By commenting out different parts of my code i.e. changing the code to:
, which doesn't crash, I figured out that its the SetInterrupts function that breaks.
Any ideas what's wrong with it?
NOTE:
I haven't set up the IDT yet.
int.asm:
Code: Select all
global ClearInterrupts
ClearInterrupts:
cli
ret
global SetInterrupts
SetInterrupts:
sti
ret
Code: Select all
void ClearInterrupts(void);
void SetInterrupts(void);
Code: Select all
#include "int.h"
...
SetInterrupts();
...
ClearInterrupts();
...
By commenting out different parts of my code i.e. changing the code to:
Code: Select all
#include "int.h"
...
SetInterrupts();
...
/*ClearInterrupts();*/
...
Any ideas what's wrong with it?
NOTE:
I haven't set up the IDT yet.