Page 1 of 1

Interrupt 13 in my kernel :(

Posted: Wed Mar 30, 2022 3:36 am
by royreznik
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: ***

Re: bug Interrupt 13 in my kernel

Posted: Wed Mar 30, 2022 7:54 pm
by Octocontrabass
Looks like you fixed it already.

You'll probably run into more bugs, though. (Especially since you removed the very important CLD instruction.)