Advertisement
emin_int11

theoretical debug

Jun 15th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. guard kernel source _snippet :)
  2.  
  3. exception generation for protection methods
  4.  
  5. hardware debugging technique ++++ > DRx
  6.  
  7.  
  8. //////////////////////////////////////////
  9. Executable file format
  10. loadable modules table : schema_directory (offset : FFF10)
  11.  
  12. /****************************/
  13. #define addrFUNCTIONs 0x1c
  14. /***************************/
  15. //////////////////////////////////////////
  16.  
  17. breakpoint condition:
  18.  
  19. DR7
  20.  
  21. For each address in registers DR0-DR3, the corresponding fields R/W0
  22. through R/W3 specify the type of action that should cause a breakpoint. The
  23. processor interprets these bits as follows:
  24. 00 ── Break on instruction execution only
  25. 01 ── Break on data writes only
  26. 10 ── undefined
  27. 11 ── Break on data reads or writes but not instruction fetches
  28. Fields LEN0 through LEN3 specify the length of data item to be monitored. A
  29. length of 1, 2, or 4 bytes may be specified. The values of the length fields
  30. are interpreted as follows:
  31. 00 ── one-byte length
  32. 01 ── two-byte length
  33. 10 ── undefined
  34. 11 ── four-byte length
  35.  
  36. intel reference:
  37.  
  38. ║ BREAKPOINT 0 LINEAR ADDRESS ║ DR0
  39.  
  40. Each of these registers contains the linear address associated with one of
  41. four breakpoint conditions. Each breakpoint condition is further defined by
  42. bits in DR7.
  43.  
  44.  
  45.  
  46. +++++ paging mechanism is activated in our core routine
  47.  
  48. i386
  49. The debug address registers are effective whether or not paging is enabled.
  50. The addresses in these registers are linear addresses. If paging is enabled,
  51. the linear addresses are translated into physical addresses by the
  52. processor's paging mechanism (as explained in Chapter 5). If paging is not
  53. enabled, these linear addresses are the same as physical addresses.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement