Hi there! recently I started working on my kernel, but I encounter a bug.
When i added the irq, and hit that `sti` my kernel starts to get interrupt 13 from the cpu all the time.
After some debugging i ran `gdb` and i saw that the `irq_handler` gets a weird value of 4000+ in the `register_t->interrupt` value but i couldn't fix it.
after this, the `isr_handler` runs with `register_t->interrupt` 13 (and it printed to the screen as i wanna see).
I couldn't find the bug, and i guess it is inside one of the asm code, can anyone help me find the bug I think Im already about 5 hours in to debugging this)
I follow few tutorials, but couldn't find anyone that have the same bug or any mistake
my code: ***
Interrupt 13 in my kernel :(
Interrupt 13 in my kernel :(
Last edited by royreznik on Thu Mar 31, 2022 2:46 pm, edited 2 times in total.
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: bug Interrupt 13 in my kernel
Looks like you fixed it already.
You'll probably run into more bugs, though. (Especially since you removed the very important CLD instruction.)
You'll probably run into more bugs, though. (Especially since you removed the very important CLD instruction.)