blob: 154cfb26feb7213ccabab052cf7d74e95bd1238e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
title "Global SpinLock declerations"
;++
;
;Copyright (c) 1991 Microsoft Corporation
;
;Module Name:
;
; splocks.asm
;
;Abstract:
;
; All global spinlocks in the kernel image are declared in this
; module. This is done so that each spinlock can be spaced out
; sufficiently to guaarantee that the L2 cache does not thrash
; by having a spinlock and another high use varible in the same
; cache line.
;
;Author:
;
; Ken Reneris (kenr) 13-Jan-1992
;
;Revision History:
;
;--
.386p
.xlist
PADLOCKS equ 64
SPINLOCK macro SpinLockName
public SpinLockName
SpinLockName dd 0
ifndef NT_UP
db PADLOCKS-4 dup (0)
endif
endm
ULONG macro VaribleName
public VaribleName
VaribleName dd 0
ifndef NT_UP
db PADLOCKS-4 dup (0)
endif
endm
_DATA SEGMENT PARA PUBLIC 'DATA'
;
; Static SpinLocks from ntos\cc\cachedat.c
;
;;align PADLOCKS
db PADLOCKS dup (0)
SPINLOCK _CcMasterSpinLock
SPINLOCK _CcWorkQueueSpinlock
SPINLOCK _CcVacbSpinLock
SPINLOCK _CcDeferredWriteSpinLock
SPINLOCK _CcDebugTraceLock
SPINLOCK _CcBcbSpinLock
;
; Static SpinLocks from ntos\ex
;
SPINLOCK _ExpLuidLock ; luid.c
SPINLOCK _NonPagedPoolLock ; pool.c
SPINLOCK _PoolTraceLock ; pool.c
SPINLOCK _ExpResourceSpinLock ; resource.c
;
; Static SpinLocks from ntos\io\iodata.c
;
SPINLOCK _IopCompletionLock
SPINLOCK _IopCancelSpinLock
SPINLOCK _IopVpbSpinLock
SPINLOCK _IopDatabaseLock
SPINLOCK _IopErrorLogLock
SPINLOCK _IopErrorLogAllocationLock
SPINLOCK _IopTimerLock
SPINLOCK _IoStatisticsLock
SPINLOCK _IopFastLockSpinLock
;
; Static SpinLocks from ntos\kd\kdlock.c
;
SPINLOCK _KdpDebuggerLock
;
; Static SpinLocks from ntos\ke\kernldat.c
;
SPINLOCK _KiContextSwapLock
SPINLOCK _KiDispatcherLock
SPINLOCK _KiFreezeExecutionLock
SPINLOCK _KiFreezeLockBackup
ULONG _KiHardwareTrigger
SPINLOCK _KiProfileLock
;
; Static SpinLocks from ntos\mm\miglobal.c
;
SPINLOCK _MmPfnLock
SPINLOCK _MmSystemSpaceLock
SPINLOCK _MmChargeCommitmentLock
SPINLOCK _MmAllowWSExpansionLock
;
; Static SpinLocks from ntos\ps\psinit.c
;
SPINLOCK _PspEventPairLock
SPINLOCK _PsLoadedModuleSpinLock
;
; Static SpinLocks from ntos\fsrtl\fsrtlp.c
;
SPINLOCK _FsRtlStrucSupSpinLock ; fsrtlp.c
db PADLOCKS dup (0)
;
; KeTickCount - This is the number of clock ticks that have occurred since
; the system was booted. This count is used to compute a millisecond
; tick counter.
;
public _KeTickCount
_KeTickCount dd 0, 0, 0
;
; KeMaximumIncrement - This is the maximum time between clock interrupts
; in 100ns units that is supported by the host HAL.
;
public _KeMaximumIncrement
_KeMaximumIncrement dd 0
;
; KeTimeAdjustment - This is the actual number of 100ns units that are to
; be added to the system time at each interval timer interupt. This
; value is copied from KeTimeIncrement at system start up and can be
; later modified via the set system information service.
; timer table entries.
;
public _KeTimeAdjustment
_KeTimeAdjustment dd 0
;
; KiTickOffset - This is the number of 100ns units remaining before a tick
; is added to the tick count and the system time is updated.
;
public _KiTickOffset
_KiTickOffset dd 0
;
; KiMaximumDpcQueueDepth - This is used to control how many DPCs can be
; queued before a DPC of medium importance will trigger a dispatch
; interrupt.
;
public _KiMaximumDpcQueueDepth
_KiMaximumDpcQueueDepth dd 4
;
; KiMinimumDpcRate - This is the rate of DPC requests per clock tick that
; must be exceeded before DPC batching of medium importance DPCs
; will occur.
;
public _KiMinimumDpcRate
_KiMinimumDpcRate dd 3
;
; KiAdjustDpcThreshold - This is the threshold used by the clock interrupt
; routine to control the rate at which the processor's DPC queue depth
; is dynamically adjusted.
;
public _KiAdjustDpcThreshold
_KiAdjustDpcThreshold dd 20
;
; KiIdealDpcRate - This is used to control the aggressiveness of the DPC
; rate adjusting algorithm when decrementing the queue depth. As long
; as the DPC rate for the last tick is greater than this rate, the
; DPC queue depth will not be decremented.
;
public _KiIdealDpcRate
_KiIdealDpcRate dd 20
_DATA ends
end
|