Date: Thu, 27 Jul 1995 08:06:28 +0300 (IDT) From: Eli Zaretskii To: Sam Vincent Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: some help with gprof... On Wed, 26 Jul 1995, Sam Vincent wrote: > 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).. Is your program sufficiently large so it starts paging to disk? If so, it is a known bug in DJGPP v1.x: programs which page to disk cannot hook hardware interrupts (the profiling code hooks the timer interrupt). The DJGPP FAQ list (available as faq102.zip from the same place you get DJGPP) explains this in section 13.6, and section 18.8 gives gives some more info.