Page 1 of 1

Weird keyboard interrupt double fault issue

Posted: Thu Feb 25, 2021 5:02 am
by clementttttttttt
For some reason, the keyboard interrupt is causing double fault in the iret instruction on my personal workstation (Ryzen 5 3500x). It does not present on my backup laptop (Intel core 2 duo), nor on virtualbox, qemu, bochs. I used the built in interrupt attribute of gcc to make the ISR.

Re: Weird keyboard interrupt double fault issue

Posted: Thu Feb 25, 2021 3:36 pm
by Octocontrabass
Does your double fault handler dump any information that can help track down the cause?

Re: Weird keyboard interrupt double fault issue

Posted: Thu Feb 25, 2021 6:44 pm
by clementttttttttt
My (crappy) double fault handler said the double fault happened in the kernel hlt loop now, in the JMP instruction. Hlt loop code:

while(1) asm("hlt");

Re: Weird keyboard interrupt double fault issue

Posted: Thu Mar 11, 2021 7:12 pm
by clementttttttttt
nevermind, it's just me forgetting to remove sti's after testing