Weird keyboard interrupt double fault issue

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
clementttttttttt
Member
Member
Posts: 70
Joined: Tue Jul 14, 2020 4:01 am
Libera.chat IRC: clementttttttttt

Weird keyboard interrupt double fault issue

Post 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.
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: Weird keyboard interrupt double fault issue

Post by Octocontrabass »

Does your double fault handler dump any information that can help track down the cause?
clementttttttttt
Member
Member
Posts: 70
Joined: Tue Jul 14, 2020 4:01 am
Libera.chat IRC: clementttttttttt

Re: Weird keyboard interrupt double fault issue

Post 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");
clementttttttttt
Member
Member
Posts: 70
Joined: Tue Jul 14, 2020 4:01 am
Libera.chat IRC: clementttttttttt

Re: Weird keyboard interrupt double fault issue

Post by clementttttttttt »

nevermind, it's just me forgetting to remove sti's after testing
Post Reply