Weird keyboard interrupt double fault issue
-
- Member
- Posts: 70
- Joined: Tue Jul 14, 2020 4:01 am
- Libera.chat IRC: clementttttttttt
Weird keyboard interrupt double fault issue
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.
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Weird keyboard interrupt double fault issue
Does your double fault handler dump any information that can help track down the cause?
-
- Member
- Posts: 70
- Joined: Tue Jul 14, 2020 4:01 am
- Libera.chat IRC: clementttttttttt
Re: Weird keyboard interrupt double fault issue
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");
while(1) asm("hlt");
-
- Member
- Posts: 70
- Joined: Tue Jul 14, 2020 4:01 am
- Libera.chat IRC: clementttttttttt
Re: Weird keyboard interrupt double fault issue
nevermind, it's just me forgetting to remove sti's after testing