Mail Archives: djgpp/1995/07/26/23:15:23
Hi guys.. I'm new to the mailing list..
I
Recently I added the -pg to the gcc command line to try using gprof..
Within my program I Have an interrupt handler for int 9..
I keep my own keyboard buffer.. etc.. (i dont chain to any previous
handler..) I have real mode and protected mode functions setup
and they work fine without the -pg.. (just the -g works fine)
However.. now it will randomly lockup.. and my harddrive light stays
on for a few seconds.. (i dont access the hard drive in my program)
i believe it may be something to do with gprof accessing the hard drive
in the middle of a hardware interrupt before i send that final
outportb(0x20, 0x20) to clear the interrupt.. I've tried using disable()
and enable() and this doesnt clear up the problem.. (i disable..
process the interrupt, send the outportb(0x20, 0x20), then enable)..
Any other suggestions?
Thanks..
Sam
- Raw text -