diff options
author | wpaul <wpaul@FreeBSD.org> | 2005-02-16 18:18:30 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2005-02-16 18:18:30 +0000 |
commit | a372ba85cee8186936a67b01506b82c45df2adfe (patch) | |
tree | 7bd47a7b0e507dddb01a8e51c992241ccf0928f5 /sys/compat/ndis/ntoskrnl_var.h | |
parent | 7662ea78966911e735feef0771a6c56dff7c55ef (diff) | |
download | FreeBSD-src-a372ba85cee8186936a67b01506b82c45df2adfe.zip FreeBSD-src-a372ba85cee8186936a67b01506b82c45df2adfe.tar.gz |
KeAcquireSpinLockRaiseToDpc() and KeReleaseSpinLock() are (at least
for now) exactly the same as KfAcquireSpinLock() and KfReleaseSpinLock().
I implemented the former as small routines in subr_ntoskrnl.c that just
turned around and invoked the latter. But I don't really need the wrapper
routines: I can just create an entries in the ntoskrnl func table that
map KeAcquireSpinLockRaiseToDpc() and KeReleaseSpinLock() to
KfAcquireSpinLock() and KfReleaseSpinLock() directly. This means
the stubs can go away.
Diffstat (limited to 'sys/compat/ndis/ntoskrnl_var.h')
-rw-r--r-- | sys/compat/ndis/ntoskrnl_var.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/compat/ndis/ntoskrnl_var.h b/sys/compat/ndis/ntoskrnl_var.h index 4c0112a..54ae903 100644 --- a/sys/compat/ndis/ntoskrnl_var.h +++ b/sys/compat/ndis/ntoskrnl_var.h @@ -1103,8 +1103,6 @@ __stdcall extern uint32_t KeSetEvent(nt_kevent *, uint32_t, uint8_t); __stdcall extern uint32_t KeResetEvent(nt_kevent *); __fastcall extern void KefAcquireSpinLockAtDpcLevel(REGARGS1(kspin_lock *)); __fastcall extern void KefReleaseSpinLockFromDpcLevel(REGARGS1(kspin_lock *)); -__stdcall extern uint8_t KeAcquireSpinLockRaiseToDpc(kspin_lock *); -__stdcall extern void KeReleaseSpinLock(kspin_lock *, uint8_t); __stdcall extern void KeInitializeSpinLock(kspin_lock *); __stdcall extern void *ExAllocatePoolWithTag(uint32_t, size_t, uint32_t); __stdcall extern void ExFreePool(void *); @@ -1138,7 +1136,8 @@ __stdcall void IoFreeMdl(mdl *); #endif /* __i386__ */ #ifdef __amd64__ -#define KeAcquireSpinLock(a, b) *(b) = KeAcquireSpinLockRaiseToDpc(a) +#define KeAcquireSpinLock(a, b) *(b) = KfAcquireSpinLock(a) +#define KeReleaseSpinLock(a, b) KfReleaseSpinLock(a, b) /* * These may need to be redefined later; |