Leaked source code of windows server 2003
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.

84 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. splocks.c
  5. Abstract:
  6. All global spinlocks in the kernel image are declared in this
  7. module. This is done so that each spinlock can be spaced out
  8. sufficiently to guaarantee that the L2 cache does not thrash
  9. by having a spinlock and another high use varible in the same
  10. cache line.
  11. Author:
  12. Ken Reneris (kenr) 13-Jan-1992
  13. Revision History:
  14. --*/
  15. #include "exp.h"
  16. //
  17. // Static SpinLocks from ntos\cc\cachedat.c
  18. //
  19. KSPIN_LOCK CcWorkQueueSpinLock = 0;
  20. KSPIN_LOCK CcDeferredWriteSpinLock = 0;
  21. KSPIN_LOCK CcDebugTraceLock = 0;
  22. //
  23. // Static SpinLocks from ntos\ex
  24. //
  25. KSPIN_LOCK PoolTraceLock = 0;
  26. //
  27. // Static SpinLocks from ntos\io\iodata.c
  28. //
  29. KSPIN_LOCK IopErrorLogLock = 0;
  30. KSPIN_LOCK IopErrorLogAllocationLock = 0;
  31. KSPIN_LOCK IopTimerLock = 0;
  32. //
  33. // Static SpinLocks from ntos\kd\kdlock.c
  34. //
  35. KSPIN_LOCK KdpDebuggerLock = 0;
  36. //
  37. // Static SpinLocks from ntos\ke\kernldat.c
  38. //
  39. KSPIN_LOCK KiFreezeExecutionLock = 0;
  40. KSPIN_LOCK KiFreezeLockBackup = 0;
  41. ULONG_PTR KiHardwareTrigger = 0;
  42. KSPIN_LOCK KiPowerNotifyLock = 0;
  43. KSPIN_LOCK KiProfileLock = 0;
  44. //
  45. // Static SpinLocks from ntos\mm\miglobal.c
  46. //
  47. KSPIN_LOCK MmSystemSpaceLock = 0;
  48. KSPIN_LOCK MmAllowWSExpansionLock = 0;
  49. //
  50. // Static SpinLocks from ntos\ps\psinit.c
  51. //
  52. KSPIN_LOCK PspEventPairLock = 0;
  53. KSPIN_LOCK PsLoadedModuleSpinLock = 0;
  54. //
  55. // Static SpinLocks from ntos\fsrtl\fsrtlp.c
  56. //
  57. KSPIN_LOCK FsRtlStrucSupSpinLock = 0;