Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. ixprofil.c
  5. Abstract:
  6. This module implements the code necessary to initialize, field and
  7. process the profile interrupt.
  8. Author:
  9. Shie-Lin Tzong (shielint) 12-Jan-1990
  10. Environment:
  11. Kernel mode only.
  12. Revision History:
  13. bryanwi 20-Sep-90
  14. Add KiSetProfileInterval, KiStartProfileInterrupt,
  15. KiStopProfileInterrupt procedures.
  16. KiProfileInterrupt ISR.
  17. KiProfileList, KiProfileLock are delcared here.
  18. shielint 10-Dec-90
  19. Add performance counter support.
  20. Move system clock to irq8, ie we now use RTC to generate system
  21. clock. Performance count and Profile use timer 1 counter 0.
  22. The interval of the irq0 interrupt can be changed by
  23. KiSetProfileInterval. Performance counter does not care about the
  24. interval of the interrupt as long as it knows the rollover count.
  25. Note: Currently I implemented 1 performance counter for the whole
  26. i386 NT.
  27. John Vert (jvert) 11-Jul-1991
  28. Moved from ke\i386 to hal\i386. Removed non-HAL stuff
  29. shie-lin tzong (shielint) 13-March-92
  30. Move System clock back to irq0 and use RTC (irq8) to generate
  31. profile interrupt. Performance counter and system clock use time1
  32. counter 0 of 8254.
  33. Landy Wang (landy@corollary.com) 26-Mar-1992
  34. Move much code into separate modules for easy inclusion by various
  35. HAL builds.
  36. Add HalBeginSystemInterrupt() call at beginning of ProfileInterrupt
  37. code - this must be done before any sti.
  38. Also add HalpProfileInterrupt2ndEntry for additional processors to
  39. join the flow of things.
  40. Forrest Foltz (forrestf) 28-Oct-2000
  41. Ported from ixprofil.asm to ixprofil.c
  42. --*/
  43. #include "halcmn.h"
  44. VOID
  45. HalStartProfileInterrupt (
  46. ULONG u
  47. )
  48. {
  49. AMD64_IMPLEMENT;
  50. };
  51. VOID
  52. HalStopProfileInterrupt(
  53. ULONG u
  54. )
  55. {
  56. AMD64_IMPLEMENT;
  57. };
  58. ULONG_PTR
  59. HalSetProfileInterval (
  60. ULONG_PTR u
  61. )
  62. {
  63. AMD64_IMPLEMENT;
  64. return 0;
  65. };
  66. BOOLEAN
  67. HalpProfileInterrupt (
  68. IN PKINTERRUPT Interrupt,
  69. IN PVOID ServiceContext
  70. )
  71. {
  72. AMD64_IMPLEMENT;
  73. return FALSE;
  74. }