OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 2:08 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: can't set IDT entry twice!!!
PostPosted: Mon Aug 06, 2001 11:00 pm 
Okay guys, I really need some help here... this makes
_NO_ sence to me!

I've defined and set a timer interrupt, and then
enabled IRQ 0. This works fine.

Then I disable IRQ 0, which also works fine.

I then re-define the timer interrupt with
another function, and re-enable IRQ 0.

My problem? When the interrupt starts up again,
the function hasn't changed!!! It's still using
the old function!!!

How is that possible!?
My createGate function seems to be able to set an
interrupt _once_, and only once!!! Huh? The same
thing happens with the keyboard interrupt... I tested it
with that one too.

My createGate code is as follows, if it helps:

void createGate(long table, short desc_num, long offset,
short selector, long control) {
Gate *gate ;
gate = (Gate *)(table + desc_num * 8);

gate->offset_low = offset & 0xffff;
gate->selector = selector;
gate->access = control + D_PRESENT;
gate->offset_high = offset >> 16;

return;
}

Any ideas?


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 104 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