Windows NT 4.0 source code leak
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.

89 lines
1.4 KiB

4 years ago
  1. // TITLE("Manipulate Interrupt Request Level")
  2. //++
  3. //
  4. // Copyright (c) 1990 Microsoft Corporation
  5. //
  6. // Module Name:
  7. //
  8. // manpirql.s
  9. //
  10. // Abstract:
  11. //
  12. // This module implements the code necessary to lower and raise the current
  13. // Interrupt Request Level (IRQL).
  14. //
  15. //
  16. // Author:
  17. //
  18. // David N. Cutler (davec) 12-Aug-1990
  19. //
  20. // Environment:
  21. //
  22. // Kernel mode only.
  23. //
  24. // Revision History:
  25. //
  26. //--
  27. #include "ksmips.h"
  28. SBTTL("Lower Interrupt Request Level")
  29. //++
  30. //
  31. // VOID
  32. // KeLowerIrql (
  33. // KIRQL NewIrql
  34. // )
  35. //
  36. // Routine Description:
  37. //
  38. // This function lowers the current IRQL to the specified value.
  39. //
  40. // Arguments:
  41. //
  42. // NewIrql (a0) - Supplies the new IRQL value.
  43. //
  44. // Return Value:
  45. //
  46. // None.
  47. //
  48. //--
  49. LEAF_ENTRY(KeLowerIrql)
  50. j ra // return
  51. .end KeLowerIrql
  52. SBTTL("Raise Interrupt Request Level")
  53. //++
  54. //
  55. // VOID
  56. // KeRaiseIrql (
  57. // KIRQL NewIrql,
  58. // PKIRQL OldIrql
  59. // )
  60. //
  61. // Routine Description:
  62. //
  63. // This function raises the current IRQL to the specified value and returns
  64. // the old IRQL value.
  65. //
  66. // Arguments:
  67. //
  68. // NewIrql (a0) - Supplies the new IRQL value.
  69. //
  70. // OldIrql (a1) - Supplies a pointer to a variable that recieves the old
  71. // IRQL value.
  72. //
  73. // Return Value:
  74. //
  75. // None.
  76. //
  77. //--
  78. LEAF_ENTRY(KeRaiseIrql)
  79. j ra // return
  80. .end KeRaiseIrql