8#define DISPATCH_LEVEL 2
13#define PROFILE_LEVEL 15
16#define KIP0PCRADDRESS 0xFFDFF000
17#define KI_USER_SHARED_DATA 0xFFFF9000
18#define SharedUserData ((KUSER_SHARED_DATA * const)KI_USER_SHARED_DATA)
20#define PAGE_SIZE 0x1000
39#define MemoryBarrier() __dmb(_ARM_BARRIER_SY)
40#define PreFetchCacheLine(l,a) __prefetch((const void *) (a))
41#define PrefetchForWrite(p) __prefetch((const void *) (p))
42#define ReadForWriteAccess(p) (*(p))
53#define KeMemoryBarrierWithoutFence() _ReadWriteBarrier()
69#define KeLowerIrql(a) KfLowerIrql(a)
79#define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
104#define KeAcquireSpinLock(a,b) *(b) = KfAcquireSpinLock(a)
115#define KeReleaseSpinLock(a,b) KfReleaseSpinLock(a,b)
125#define KeAcquireSpinLockAtDpcLevel(SpinLock) KefAcquireSpinLockAtDpcLevel(SpinLock)
135#define KeReleaseSpinLockFromDpcLevel(SpinLock) KefReleaseSpinLockFromDpcLevel(SpinLock)
174#define DbgRaiseAssertionFailure() __emit(0xdefc)
182#ifdef NONAMELESSUNION
194#define KeQueryTickCount(CurrentCount) _KeQueryTickCount(CurrentCount)
196#define CP15_PMSELR 15, 0, 9, 12, 5
197#define CP15_PMXEVCNTR 15, 0, 9, 13, 2
198#define CP15_TPIDRURW 15, 0, 13, 0, 2
199#define CP15_TPIDRURO 15, 0, 13, 0, 3
200#define CP15_TPIDRPRW 15, 0, 13, 0, 4
205#define PAUSE_PROCESSOR __yield();
207#define KERNEL_STACK_SIZE 0x3000
208#define KERNEL_LARGE_STACK_SIZE 0xF000
209#define KERNEL_LARGE_STACK_COMMIT KERNEL_STACK_SIZE
211#define KERNEL_MCA_EXCEPTION_STACK_SIZE 0x2000
213#define EXCEPTION_READ_FAULT 0
214#define EXCEPTION_WRITE_FAULT 1
215#define EXCEPTION_EXECUTE_FAULT 8
218#define CONTEXT_ARM 0x200000L
219#define CONTEXT_CONTROL (CONTEXT_ARM | 0x00000001L)
220#define CONTEXT_INTEGER (CONTEXT_ARM | 0x00000002L)
221#define CONTEXT_FLOATING_POINT (CONTEXT_ARM | 0x00000004L)
222#define CONTEXT_DEBUG_REGISTERS (CONTEXT_ARM | 0x00000008L)
223#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_FLOATING_POINT)
225typedef struct _NEON128
231#define ARM_MAX_BREAKPOINTS 8
232#define ARM_MAX_WATCHPOINTS 1
293#define PCR_MINOR_VERSION 1
294#define PCR_MAJOR_VERSION 1
336#define CP15_PCR_RESERVED_MASK 0xFFF
337#define KIPCR() (((ULONG_PTR)_MoveFromCoprocessor(CP15_TPIDRPRW)) & ~CP15_PCR_RESERVED_MASK)
346#if (NTDDI_VERSION < NTDDI_WIN7) || !defined(NT_PROCESSOR_GROUPS)
void __dmb(unsigned int Type)
#define _Acquires_lock_(lock)
#define _Requires_lock_held_(lock)
#define _Requires_lock_not_held_(lock)
#define _Releases_lock_(lock)
#define _Kernel_float_restored_
#define _Kernel_requires_resource_held_(kind)
#define _IRQL_requires_min_(irql)
#define _Kernel_requires_resource_not_held_(kind)
#define _IRQL_requires_max_(irql)
#define _Kernel_releases_resource_(kind)
#define _IRQL_requires_(irql)
#define _IRQL_raises_(irql)
#define _Kernel_acquires_resource_(kind)
#define _Kernel_float_saved_
#define KeGetCurrentIrql()
IN OUT PLONG IN OUT PLONG Addend IN OUT PLONG IN LONG IN OUT PLONG IN LONG Increment KeRaiseIrqlToDpcLevel
VOID FASTCALL KfLowerIrql(IN KIRQL NewIrql)
KIRQL FASTCALL KfRaiseIrql(IN KIRQL NewIrql)
KIRQL FASTCALL KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
VOID FASTCALL KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL OldIrql)
#define KeGetCurrentThread
__INTRIN_INLINE void __yield(void)
#define _ReadWriteBarrier()
#define KeSaveFloatingPointState(x)
#define KeRestoreFloatingPointState(x)
#define _At_(target, annos)
#define _Must_inspect_result_
#define _Post_satisfies_(cond)
#define UNREFERENCED_PARAMETER(P)
#define _ANONYMOUS_STRUCT
NTKERNELAPI volatile KSYSTEM_TIME KeTickCount
VOID FASTCALL KefReleaseSpinLockFromDpcLevel(IN PKSPIN_LOCK SpinLock)
VOID FASTCALL KefAcquireSpinLockAtDpcLevel(IN PKSPIN_LOCK SpinLock)
#define KeFlushIoBuffers(_Mdl, _ReadOperation, _DmaOperation)
FORCEINLINE ULONG KeGetCurrentProcessorNumber(VOID)
FORCEINLINE KIRQL KeRaiseIrqlToSynchLevel(VOID)
$if(_WDMDDK_) typedef struct _KFLOATING_SAVE
FORCEINLINE VOID KeMemoryBarrier(VOID)
$endif(_WDMDDK_) $if(_NTDDK_) typedef struct _NEON128
FORCEINLINE VOID _KeQueryTickCount(OUT PLARGE_INTEGER CurrentCount)
#define ARM_MAX_WATCHPOINTS
#define ARM_MAX_BREAKPOINTS
_Requires_lock_held_ SpinLock _Releases_lock_ SpinLock _In_ _IRQL_restores_ KIRQL NewIrql
ULONG Wcr[ARM_MAX_WATCHPOINTS]
ULONG Wvr[ARM_MAX_WATCHPOINTS]
union _CONTEXT::@3919 DUMMYUNIONNAME
ULONG Bcr[ARM_MAX_BREAKPOINTS]
ULONG Bvr[ARM_MAX_BREAKPOINTS]
struct _KPRCB * CurrentPrcb
UCHAR SecondLevelCacheAssociativity
ULONG SecondLevelCacheSize
USHORT SoftwareInterruptPending
PKSPIN_LOCK_QUEUE LockArray
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
_Reserved_ PVOID Reserved