Ulrich Weigand wrote:
> Black magic? Actually, a much larger problem would seem to me that
> the PIC vectors are not remapped; this means that IRQ 0-7 generate
> interrupts 0x08-0x0f as set up by the BIOS, overlapping a rather
> important range of exceptions ... I have no clue how this is sorted
> out, but somehow it appears to work :-/
Something like this would do...
irq0_handler()
{
u8 isr;
outpb(0x20, 0x0b); // select in-service register
isr = inpb(0x20);
if (isr & 0x01) {
// real hardware interrupt occurred
}
else {
// processor event occurred
}
}
- more FreeMWare technical thoughts... Kevin Lawton
- Re: more FreeMWare technical thoughts... Ramon van Handel
- Re: more FreeMWare technical thoughts... Kevin Lawton
- Re: more FreeMWare technical thoughts... Ramon van Handel
- Re: more FreeMWare technical thoughts... Kevin Lawton
- Re: more FreeMWare technical though... Ramon van Handel
- Re: more FreeMWare technical though... Kevin Lawton
- Re: more FreeMWare technical though... Ramon van Handel
- This is taking some getting used to! Antonio D'souza
- Re: First FreeMWare release! Ramon van Handel
- Kevin Lawton
