From: Adam L. <ag...@li...> - 2000-02-24 11:23:21
|
On Wed, Feb 23, 2000 at 01:50:39PM +0100, Kasper Verdich Lund wrote: > A specification of NE2000 (among other interesting things) can be found > here:=20 > http://www.acm.uiuc.edu/sigops/rsrc/ This looks quite good sys_irq_hook (1, cr3, _irq4_wrapper, irq_stack); But how do you hook interrupts? The kernel calls _process_run with cr3, and= so on as above. But then what do you do? You can't ret in _irq4_wrapper because the kernel installed a new stack, so there is no return address. You can't do a prolog because it isn't your quantum and I don't think you should yeild because it's an interrupt and you'll confuse cpu.c. AGL --=20 Smoking is one of the leading causes of statistics. |