Switch kernel stack and move boot structures initialization into separate routine

Este commit está contenido en:
2023-01-08 10:35:49 +01:00
padre 6255165f10
commit 12b8c5f539
Se han modificado 7 ficheros con 149 adiciones y 1 borrados

Ver fichero

@@ -9,7 +9,7 @@
#ifndef __XTOSKRNL_GLOBALS_H
#define __XTOSKRNL_GLOBALS_H
#include <xtkmapi.h>
#include <xtos.h>
/* Kernel initialization block passed by boot loader */

27
xtoskrnl/includes/kepfuncs.h Archivo normal
Ver fichero

@@ -0,0 +1,27 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/includes/kefuncs.h
* DESCRIPTION: Private routine definitions for kernel services
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTOSKRNL_KEFUNCS_H
#define __XTOSKRNL_KEFUNCS_H
#include <xtos.h>
XTAPI
VOID
KepStartKernel(VOID);
XTAPI
VOID
KepInitializeBootStructures(IN PKERNEL_INITIALIZATION_BLOCK Parameters);
XTAPI
VOID
KepSwitchBootStack(IN ULONG_PTR Stack);
#endif /* __XTOSKRNL_KEFUNCS_H */

Ver fichero

@@ -11,3 +11,4 @@
/* Kernel specific headers */
#include "globals.h"
#include "kepfuncs.h"