[BOOT] Execution contexts and more refactoring

This commit is contained in:
2024-10-05 15:44:25 -04:00
parent 7c3dafc051
commit 24a31cab26
13 changed files with 317 additions and 118 deletions

View File

@@ -17,6 +17,7 @@ Abstract:
#include <wchar.h>
#include "bootlib.h"
extern PEXECUTION_CONTEXT CurrentExecutionContext;
extern SIMPLE_TEXT_OUTPUT_INTERFACE *EfiConOut;
VOID
@@ -41,7 +42,18 @@ Return Value:
--*/
{
EXECUTION_CONTEXT_TYPE ContextType;
ContextType = CurrentExecutionContext->Type;
if (ContextType != ExecutionContextFirmware) {
BlpArchSwitchContext(ExecutionContextFirmware);
}
EfiConOut->OutputString(EfiConOut, String);
if (ContextType != ExecutionContextFirmware) {
BlpArchSwitchContext(ContextType);
}
}
VOID