Disabling Interrupts Before Enabling Them

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
FunnyGuy9796
Member
Member
Posts: 61
Joined: Tue Sep 13, 2022 9:29 pm
Libera.chat IRC: FunnyGuy9796

Disabling Interrupts Before Enabling Them

Post by FunnyGuy9796 »

While implementing a memory allocator (using liballoc) I noticed that the lock and unlock functions need to disable interrupts. I know that once I am in need of these functions I will have already enabled interrupts. However, I became curious as to what would happen if I were to disable interrupts without first enabling them. Would a triple fault be triggered or would the CPU just overlook the request?
Octocontrabass
Member
Member
Posts: 5560
Joined: Mon Mar 25, 2013 7:01 pm

Re: Disabling Interrupts Before Enabling Them

Post by Octocontrabass »

Did you try looking in the Intel or AMD manuals?
Post Reply