OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 9:40 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: IRQs are blocked
PostPosted: Thu Feb 09, 2017 3:56 am 
Offline

Joined: Tue Apr 19, 2016 2:11 am
Posts: 18
Hello there,
in my OS there are recently no IRQs working. After a little debugging I found the problem. In short I have a function calling the asm operation
Code:
int $0x40

in the respective sysCall-handler there is a while-loop. Until the end of the loop there are no IRQs thrown. This is a very big problem because the end of the while-loop depends on keyboard inputs. So the sysCall-handler ends up beeing a neverending loop. So my OS is messed up. So I need a way to get IRQs working while in a sysCall-handler.


Top
 Profile  
 
 Post subject: Re: IRQs are blocked
PostPosted: Thu Feb 09, 2017 4:07 am 
Offline
Member
Member

Joined: Tue Mar 04, 2014 5:27 am
Posts: 1108
sti?


Top
 Profile  
 
 Post subject: Re: IRQs are blocked
PostPosted: Thu Feb 09, 2017 4:09 am 
Offline
Member
Member

Joined: Wed Oct 26, 2011 12:00 pm
Posts: 202
You need to read up on the IDT table and how to configure your IDT entries. everything you need is right there.

_________________
mollenos | gracht (protocol library) | vioarr (window-manager) | bake (package manager)


Top
 Profile  
 
 Post subject: Re: IRQs are blocked
PostPosted: Thu Feb 09, 2017 5:02 am 
Offline

Joined: Tue Apr 19, 2016 2:11 am
Posts: 18
MollenOS wrote:
You need to read up on the IDT table.

Thans for the hint. The problems is solved. I set the interrupt_gate instead of the trap_gate.


Top
 Profile  
 
 Post subject: Re: IRQs are blocked
PostPosted: Thu Feb 09, 2017 9:58 am 
Offline
Member
Member
User avatar

Joined: Fri Mar 07, 2008 5:36 pm
Posts: 2111
Location: Bucharest, Romania
You probably don't want to tie your hands with a kernel service that blocks until there is user input because you'd be keeping your resources idle. I would reconsider my design if I were you.

_________________
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 208 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