OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:45 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Disabling Interrupts Before Enabling Them
PostPosted: Sat Feb 25, 2023 8:17 pm 
Offline
Member
Member

Joined: Tue Sep 13, 2022 9:29 pm
Posts: 61
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?


Top
 Profile  
 
 Post subject: Re: Disabling Interrupts Before Enabling Them
PostPosted: Sat Feb 25, 2023 8:35 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
Did you try looking in the Intel or AMD manuals?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot], MichaelPetch and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group