mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[NTOS:KD64] Use KdpDprintf() instead of DbgPrint() for the debugger banner DPRINTs (#7540)
Override DbgPrint(), used by the debugger banner DPRINTs, because KdInitSystem() can be called under the debugger lock by KdEnableDebugger(WithLock)(). In this case, when DbgPrint() (re-)enters the debugger via an interrupt and acquires the debugger lock, a deadlock occurs.
This commit is contained in:
@@ -11,9 +11,18 @@
|
||||
|
||||
#include <ntoskrnl.h>
|
||||
#include <reactos/buildno.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/*
|
||||
* Override DbgPrint(), used by the debugger banner DPRINTs below,
|
||||
* because KdInitSystem() can be called under the debugger lock by
|
||||
* KdEnableDebugger(WithLock)().
|
||||
*/
|
||||
#define DbgPrint(fmt, ...) (KdpDprintf(fmt, ##__VA_ARGS__), 0)
|
||||
#define DbgPrintEx(cmpid, lvl, fmt, ...) (KdpDprintf(fmt, ##__VA_ARGS__), 0)
|
||||
|
||||
/* UTILITY FUNCTIONS *********************************************************/
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user