Page 1 of 1

interrupt template for gnu assembler

Posted: Sat Jan 01, 2005 8:25 am
by Whatever
Can somebody give me a working template of an interrupt in gnu assembler?

thanx in advance

Re:interrupt template for gnu assembler

Posted: Mon Jan 03, 2005 5:25 am
by Solar

Re:interrupt template for gnu assembler

Posted: Tue Jan 04, 2005 11:21 am
by Whatever
srry, but not really.. how do i tell my pc that the function is an isr and has to call that specific function when e.g. a key on my keyboard is pressed?

Re:interrupt template for gnu assembler

Posted: Tue Jan 04, 2005 12:34 pm
by distantvoices
you as th kernel developer tell this the cpu:

*here* is the interrupt descriptor table and *here* are the functions you have to call in case an interrupt occurs.

basically, the cpu does nothing else but receiving an event (roughly spoken) looking up the corresponding function and jumping to it. Thats kinda automation you have to provide it with.

How? Solars link should provide this information, hm?

Re:interrupt template for gnu assembler

Posted: Wed Jan 05, 2005 8:47 am
by Pype.Clicker
Whatever wrote: srry, but not really.. how do i tell my pc that the function is an isr and has to call that specific function when e.g. a key on my keyboard is pressed?
or, stated otherwise, it is an ISR *because* you write its address in some slot of the IDT .. And it will be called for keypress *because* you select the slot corresponding to IRQ1 :)