Reorganize early debug printing; initialize kernel stacks when needed
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
20
sdk/xtdk/xtdebug.h
Normal file
20
sdk/xtdk/xtdebug.h
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: sdk/xtdk/xtdebug.h
|
||||
* DESCRIPTION: XT debugging support
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
#ifndef __XTDK_XTDEBUG_H
|
||||
#define __XTDK_XTDEBUG_H
|
||||
|
||||
|
||||
/* XTOS platform debugging macros */
|
||||
#ifdef DBG
|
||||
#define LDRPRINT(Format, ...) if(LdrPrint) LdrPrint(Format, __VA_ARGS__);
|
||||
#else
|
||||
#define LDRPRINT(Format, ...) ((VOID)NULL)
|
||||
#endif
|
||||
|
||||
#endif /* __XTDK_XTDEBUG_H */
|
@@ -104,7 +104,8 @@ typedef struct _KERNEL_INITIALIZATION_BLOCK
|
||||
LIST_ENTRY BootDriverListHead;
|
||||
ULONG Size;
|
||||
ULONG Version;
|
||||
ULONG_PTR KernelStack;
|
||||
ULONG_PTR KernelBootStack;
|
||||
ULONG_PTR KernelFaultStack;
|
||||
LOADER_INFORMATION_BLOCK LoaderInformation;
|
||||
FIRMWARE_INFORMATION_BLOCK FirmwareInformation;
|
||||
} KERNEL_INITIALIZATION_BLOCK, *PKERNEL_INITIALIZATION_BLOCK;
|
||||
|
@@ -20,6 +20,7 @@
|
||||
|
||||
/* Architecture-independent XT API */
|
||||
#include "xtcommon.h"
|
||||
#include "xtdebug.h"
|
||||
#include "xtimage.h"
|
||||
#include "xtuefi.h"
|
||||
#include "xtfw.h"
|
||||
|
Reference in New Issue
Block a user