[BOOT] Execution contexts and more refactoring
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user