Switch kernel stack and move boot structures initialization into separate routine

This commit is contained in:
2023-01-08 10:35:49 +01:00
parent 6255165f10
commit 12b8c5f539
7 changed files with 149 additions and 1 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

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