Page 1 of 1

Disabling Interrupts Before Enabling Them

Posted: Sat Feb 25, 2023 8:17 pm
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?

Re: Disabling Interrupts Before Enabling Them

Posted: Sat Feb 25, 2023 8:35 pm
by Octocontrabass
Did you try looking in the Intel or AMD manuals?