delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/07/26/23:15:23

Date: Wed, 26 Jul 1995 19:21:10 -0700
From: Sam Vincent <svincent AT cs DOT sonoma DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: some help with gprof...

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019