home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9242 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!kannarr.dseg.ti.com!kannarr
  3. From: kannarr@mk1501.dseg.ti.com (Galen Kannarr)
  4. Subject: How to use '386/'486 debug registers
  5. Message-ID: <kannarr.9.0@mk1501.dseg.ti.com>
  6. Keywords: 386 debug register breakpoint
  7. Sender: usenet@mksol.dseg.ti.com (Usenet News)
  8. Nntp-Posting-Host: kannarr.dseg.ti.com
  9. Organization: Texas Instruments Incorporated
  10. Date: Thu, 10 Sep 1992 18:25:49 GMT
  11. Lines: 26
  12.  
  13. I need to solve the following problem for which the 386/486 debug registers 
  14. sound like just the ticket, but I have no documentation on their usage:
  15.  
  16. I have a system that has several custom boards which generate hardware 
  17. interrupts on a 486.  One of the interrupt service routines is trashing 
  18. several specific locations in memory, but I haven't been able to 
  19. determine how.  I'd like to detect when one of the locations is trashed 
  20. and invoke (another) interrupt service routine to help me trace the 
  21. problem.  I can't use the 386 debug support of CodeView or other debuggers 
  22. because they don't behave well when the debug trap occurs inside an 
  23. interrupt.
  24.  
  25. My code runs in Dos--real mode, no windows, no memory managers (for now!).  
  26. One of my specific concerns is that I might have to enter protected mode to 
  27. use the debug registers--I'm not sure I want to learn all about the 
  28. intracies of that!
  29.  
  30. Can anyone can point me to some good references (hopefully with examples)?  
  31. Better yet, does anyone have any snippets of code that set up the debug 
  32. registers and provide the shell of an isr for the interrupt generated?  
  33. Please respond by e-mail.  I'll post a collection of the responses.    
  34.  
  35. --
  36. Galen Kannarr
  37. kannarr@mk1501.dseg.ti.com
  38. Texas Instruments Incorporated
  39.