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.

86 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. ixthunk.c
  5. Abstract:
  6. This module contains the standard call routines which thunk to
  7. fastcall routines.
  8. Author:
  9. Ken Reneris (kenr) 04-May-1994
  10. Environment:
  11. Kernel mode
  12. Revision History:
  13. --*/
  14. #if !defined(_WIN64)
  15. #include "halp.h"
  16. #ifdef KeRaiseIrql
  17. #undef KeRaiseIrql
  18. #endif
  19. VOID
  20. KeRaiseIrql (
  21. IN KIRQL NewIrql,
  22. OUT PKIRQL OldIrql
  23. )
  24. {
  25. *OldIrql = KfRaiseIrql (NewIrql);
  26. }
  27. #ifdef KeLowerIrql
  28. #undef KeLowerIrql
  29. #endif
  30. VOID
  31. KeLowerIrql (
  32. IN KIRQL NewIrql
  33. )
  34. {
  35. KfLowerIrql (NewIrql);
  36. }
  37. #ifdef KeAcquireSpinLock
  38. #undef KeAcquireSpinLock
  39. #endif
  40. VOID
  41. KeAcquireSpinLock (
  42. IN PKSPIN_LOCK SpinLock,
  43. OUT PKIRQL OldIrql
  44. )
  45. {
  46. *OldIrql = KfAcquireSpinLock (SpinLock);
  47. }
  48. #ifdef KeReleaseSpinLock
  49. #undef KeReleaseSpinLock
  50. #endif
  51. VOID
  52. KeReleaseSpinLock (
  53. IN PKSPIN_LOCK SpinLock,
  54. IN KIRQL NewIrql
  55. )
  56. {
  57. KfReleaseSpinLock (SpinLock, NewIrql);
  58. }
  59. #endif // _WIN64