Disabling Interrupts Before Enabling Them
-
- Member
- Posts: 61
- Joined: Tue Sep 13, 2022 9:29 pm
- Libera.chat IRC: FunnyGuy9796
Disabling Interrupts Before Enabling Them
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?
-
- Member
- Posts: 5560
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Disabling Interrupts Before Enabling Them
Did you try looking in the Intel or AMD manuals?