forked from xt-sys/exectos
Fix release build
This commit is contained in:
parent
dec021b1ec
commit
e6a7918bac
@ -12,8 +12,10 @@
|
|||||||
|
|
||||||
/* XTOS platform debugging macros */
|
/* XTOS platform debugging macros */
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
|
#define DEBUG 1
|
||||||
#define LDRPRINT(Format, ...) if(LdrPrint) LdrPrint(Format, __VA_ARGS__);
|
#define LDRPRINT(Format, ...) if(LdrPrint) LdrPrint(Format, __VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
|
#define DEBUG 0
|
||||||
#define LDRPRINT(Format, ...) ((VOID)NULL)
|
#define LDRPRINT(Format, ...) ((VOID)NULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ VOID
|
|||||||
KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
|
KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
|
||||||
{
|
{
|
||||||
/* Check if debugging enabled and if boot loader provided routine for debug printing */
|
/* Check if debugging enabled and if boot loader provided routine for debug printing */
|
||||||
if(DBG && Parameters->LoaderInformation.DbgPrint)
|
if(DEBUG && Parameters->LoaderInformation.DbgPrint)
|
||||||
{
|
{
|
||||||
/* Use loader's provided DbgPrint() routine for early printing to serial console */
|
/* Use loader's provided DbgPrint() routine for early printing to serial console */
|
||||||
LdrPrint = Parameters->LoaderInformation.DbgPrint;
|
LdrPrint = Parameters->LoaderInformation.DbgPrint;
|
||||||
|
Loading…
Reference in New Issue
Block a user