Reorganize early debug printing; initialize kernel stacks when needed
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-12-28 23:11:35 +01:00
parent 75ac59f48a
commit dec021b1ec
9 changed files with 110 additions and 9 deletions

20
sdk/xtdk/xtdebug.h Normal file
View 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 */

View File

@@ -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;

View File

@@ -20,6 +20,7 @@
/* Architecture-independent XT API */
#include "xtcommon.h"
#include "xtdebug.h"
#include "xtimage.h"
#include "xtuefi.h"
#include "xtfw.h"