Page 1 of 1

PMode Interrupts/Coprocessor?

Posted: Wed Mar 27, 2002 12:00 am
by Bchadwick
I've got a fat12 bootsector that loads a plain
binary File, which is just mixed Assembly/C made
with NASM and DJGPP. The Kernel Switches to Pmode
and jumps to the C main, where software interrupts
are reassigned to INT 0x20..ox2F (Offsets in the
table). After all the setup I enable interrupts
and put out some text, but the only interrupt
that registers is IRQ-0x13... repeatedly (about
10 times a second or so), even after I send the
end-of-interrupt and even mask all interrupts (through
the ports 0x20 & 0xA0).
Does anyone have any Ideas?
thanks
BC

RE:PModeĀ Interrupts/Coprocessor?

Posted: Thu Apr 04, 2002 12:00 am
by BigDave
I think there is some general confusion here between the terms INT and IRQ, but that aside, lets try and analyse your problem.

You say you have remapped software interrupts to 0x20-0x2f, do you mean software interrupts, it is normal practice to remap the hardware interrupts (ie IRQ0-15) to 0x20-0x2f, is this what you have done, if not, this is a better way to proceed. If you have not remapped the IRQs, then the int vector you mentioned should correspond to IRQ 11, which no standard motherboard device uses - what plug in cards do you have ? Does your BIOS allow you to determine what device is mapped to what IRQ

I think a bit more info is needed to determine what is going on here

>On 2002-03-27 21:33:20, Bchadwick wrote:
> I've got a fat12 bootsector that loads a plain
>binary File, which is just mixed Assembly/C made
>with NASM and DJGPP. The Kernel Switches to Pmode
>and jumps to the C main, where software interrupts
>are reassigned to INT 0x20..ox2F (Offsets in the
>table). After all the setup I enable interrupts
>and put out some text, but the only interrupt
>that registers is IRQ-0x13... repeatedly (about
>10 times a second or so), even after I send the
>end-of-interrupt and even mask all interrupts (through
>the ports 0x20 & 0xA0).
> Does anyone have any Ideas?
>thanks
>BC