Disabling Interrupts Before Enabling Them
Posted: Sat Feb 25, 2023 8:17 pm
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?