mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00: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:
parent
1a02d3306b
commit
6cf426345b
1 changed files with 9 additions and 0 deletions
|
@ -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 *********************************************************/
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue