Commit fa6f56b3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

hal: Implement KeReleaseSpinLock().

parent 92b047e7
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "ntstatus.h" #include "ntstatus.h"
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
#include "winbase.h"
#include "winternl.h" #include "winternl.h"
#include "excpt.h" #include "excpt.h"
#include "ddk/ntddk.h" #include "ddk/ntddk.h"
...@@ -76,9 +77,15 @@ KIRQL WINAPI DECLSPEC_HIDDEN __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock) ...@@ -76,9 +77,15 @@ KIRQL WINAPI DECLSPEC_HIDDEN __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
} }
DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock ) DEFINE_FASTCALL2_ENTRYPOINT( KfReleaseSpinLock )
VOID WINAPI DECLSPEC_HIDDEN __regs_KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql) void WINAPI DECLSPEC_HIDDEN __regs_KfReleaseSpinLock( KSPIN_LOCK *lock, KIRQL irql )
{ {
FIXME( "(%p %u) stub!\n", SpinLock, NewIrql ); KeReleaseSpinLock( lock, irql );
}
void WINAPI KeReleaseSpinLock( KSPIN_LOCK *lock, KIRQL irql )
{
TRACE("lock %p, irql %u.\n", lock, irql);
InterlockedExchangePointer( (void **)lock, 0 );
} }
#endif /* __i386__ */ #endif /* __i386__ */
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
@ stub KeRaiseIrql @ stub KeRaiseIrql
@ stub KeRaiseIrqlToDpcLevel @ stub KeRaiseIrqlToDpcLevel
@ stub KeRaiseIrqlToSynchLevel @ stub KeRaiseIrqlToSynchLevel
@ stdcall -arch=i386 KeReleaseSpinLock(ptr long) ntoskrnl.exe.KeReleaseSpinLock @ stdcall -arch=i386 KeReleaseSpinLock(ptr long)
@ stub KeStallExecutionProcessor @ stub KeStallExecutionProcessor
@ stub READ_PORT_BUFFER_UCHAR @ stub READ_PORT_BUFFER_UCHAR
@ stub READ_PORT_BUFFER_ULONG @ stub READ_PORT_BUFFER_ULONG
......
...@@ -1434,6 +1434,7 @@ void WINAPI KeQueryTickCount(LARGE_INTEGER*); ...@@ -1434,6 +1434,7 @@ void WINAPI KeQueryTickCount(LARGE_INTEGER*);
ULONG WINAPI KeQueryTimeIncrement(void); ULONG WINAPI KeQueryTimeIncrement(void);
LONG WINAPI KeReleaseMutex(PRKMUTEX,BOOLEAN); LONG WINAPI KeReleaseMutex(PRKMUTEX,BOOLEAN);
LONG WINAPI KeReleaseSemaphore(PRKSEMAPHORE,KPRIORITY,LONG,BOOLEAN); LONG WINAPI KeReleaseSemaphore(PRKSEMAPHORE,KPRIORITY,LONG,BOOLEAN);
void WINAPI KeReleaseSpinLock(KSPIN_LOCK*,KIRQL);
LONG WINAPI KeResetEvent(PRKEVENT); LONG WINAPI KeResetEvent(PRKEVENT);
LONG WINAPI KeSetEvent(PRKEVENT,KPRIORITY,BOOLEAN); LONG WINAPI KeSetEvent(PRKEVENT,KPRIORITY,BOOLEAN);
KPRIORITY WINAPI KeSetPriorityThread(PKTHREAD,KPRIORITY); KPRIORITY WINAPI KeSetPriorityThread(PKTHREAD,KPRIORITY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment