Proceed with architecture specific initialization
Alle checks waren succesvol
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2023-01-25 19:37:13 +01:00
bovenliggende 8da38af489
commit b57e79aa7f
4 gewijzigde bestanden met toevoegingen van 33 en 0 verwijderingen

Bestand weergeven

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

Bestand weergeven

@@ -9,6 +9,19 @@
#include <xtos.h> #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. * This routine starts up the XT kernel. It is called after switching boot stack.
* *

Bestand weergeven

@@ -9,6 +9,19 @@
#include <xtos.h> #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. * This routine starts up the XT kernel. It is called after switching boot stack.
* *

Bestand weergeven

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