Proceed with architecture specific initialization
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-25 19:37:13 +01:00
parent 8da38af489
commit b57e79aa7f
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
4 changed files with 33 additions and 0 deletions

View File

@ -12,6 +12,10 @@
#include <xtos.h>
XTAPI
VOID
KepArchInitialize(VOID);
XTAPI
VOID
KepStartKernel(VOID);

View File

@ -9,6 +9,19 @@
#include <xtos.h>
/**
* Performs architecture-specific initialization for the kernel executive.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
KepArchInitialize(VOID)
{
}
/**
* This routine starts up the XT kernel. It is called after switching boot stack.
*

View File

@ -9,6 +9,19 @@
#include <xtos.h>
/**
* Performs architecture-specific initialization for the kernel executive.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
KepArchInitialize(VOID)
{
}
/**
* This routine starts up the XT kernel. It is called after switching boot stack.
*

View File

@ -51,6 +51,9 @@ KeStartXtSystem(IN PKERNEL_INITIALIZATION_BLOCK Parameters)
/* Initialize kernel stacks */
KepInitializeStack(Parameters);
/* Architecture specific initialization */
KepArchInitialize();
/* Switch boot stack alligning it to 4 byte boundary */
KepSwitchBootStack(KeInitializationBlock->KernelBootStack & ~0x3);
}