ntoskrnl.exe: Implement KeBugCheck and KeBugCheckEx.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45656
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-06-25 15:36:15 +02:00 committed by Alexandre Julliard
parent 6ad6c1ff4a
commit 39d4f9d8af
4 changed files with 21 additions and 2 deletions

View File

@ -3181,6 +3181,23 @@ BOOLEAN WINAPI KeAreApcsDisabled(void)
return !!critical_region;
}
/***********************************************************************
* KeBugCheck (NTOSKRNL.@)
*/
void WINAPI KeBugCheck(ULONG code)
{
KeBugCheckEx(code, 0, 0, 0, 0);
}
/***********************************************************************
* KeBugCheckEx (NTOSKRNL.@)
*/
void WINAPI KeBugCheckEx(ULONG code, ULONG_PTR param1, ULONG_PTR param2, ULONG_PTR param3, ULONG_PTR param4)
{
ERR( "%x %lx %lx %lx %lx\n", code, param1, param2, param3, param4 );
ExitProcess( code );
}
/***********************************************************************
* ProbeForRead (NTOSKRNL.EXE.@)
*/

View File

@ -525,8 +525,8 @@
@ stub KeAddSystemServiceTable
@ stdcall KeAreApcsDisabled()
@ stub KeAttachProcess
@ stub KeBugCheck
@ stub KeBugCheckEx
@ stdcall KeBugCheck(long)
@ stdcall KeBugCheckEx(long long long long long)
@ stdcall KeCancelTimer(ptr)
@ stub KeCapturePersistentThreadState
@ stdcall KeClearEvent(ptr)

View File

@ -217,6 +217,7 @@ NTSTATUS WINAPI IoQueryDeviceDescription(PINTERFACE_TYPE,PULONG,PCONFIGURATION_
void WINAPI IoRegisterDriverReinitialization(PDRIVER_OBJECT,PDRIVER_REINITIALIZE,PVOID);
NTSTATUS WINAPI IoRegisterShutdownNotification(PDEVICE_OBJECT);
BOOLEAN WINAPI KeAreApcsDisabled(void);
void WINAPI DECLSPEC_NORETURN KeBugCheck(ULONG);
NTSTATUS WINAPI KeExpandKernelStackAndCallout(PEXPAND_STACK_CALLOUT,void*,SIZE_T);
void WINAPI KeSetTargetProcessorDpc(PRKDPC,CCHAR);
BOOLEAN WINAPI MmIsAddressValid(void *);

View File

@ -1613,6 +1613,7 @@ void WINAPI KeAcquireSpinLock(KSPIN_LOCK*,KIRQL*);
KIRQL WINAPI KeAcquireSpinLockRaiseToDpc(KSPIN_LOCK*);
#endif
void WINAPI KeAcquireSpinLockAtDpcLevel(KSPIN_LOCK*);
void WINAPI DECLSPEC_NORETURN KeBugCheckEx(ULONG,ULONG_PTR,ULONG_PTR,ULONG_PTR,ULONG_PTR);
BOOLEAN WINAPI KeCancelTimer(KTIMER*);
void WINAPI KeClearEvent(PRKEVENT);
NTSTATUS WINAPI KeDelayExecutionThread(KPROCESSOR_MODE,BOOLEAN,LARGE_INTEGER*);