Loader shell stub
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 27s
Builds / ExectOS (i686) (push) Successful in 28s

This commit is contained in:
Rafal Kupiec 2024-01-02 14:45:40 +01:00
parent c0f99cc798
commit ee0603c318
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
4 changed files with 23 additions and 0 deletions

View File

@ -19,6 +19,7 @@ list(APPEND XTLDR_SOURCE
${XTLDR_SOURCE_DIR}/hardware.c ${XTLDR_SOURCE_DIR}/hardware.c
${XTLDR_SOURCE_DIR}/memory.c ${XTLDR_SOURCE_DIR}/memory.c
${XTLDR_SOURCE_DIR}/protocol.c ${XTLDR_SOURCE_DIR}/protocol.c
${XTLDR_SOURCE_DIR}/shell.c
${XTLDR_SOURCE_DIR}/string.c ${XTLDR_SOURCE_DIR}/string.c
${XTLDR_SOURCE_DIR}/textui.c ${XTLDR_SOURCE_DIR}/textui.c
${XTLDR_SOURCE_DIR}/volume.c ${XTLDR_SOURCE_DIR}/volume.c

View File

@ -221,6 +221,10 @@ XTCDECL
VOID VOID
BlSleepExecution(IN ULONG_PTR Milliseconds); BlSleepExecution(IN ULONG_PTR Milliseconds);
XTCDECL
VOID
BlStartLoaderShell();
XTCDECL XTCDECL
EFI_STATUS EFI_STATUS
BlStartXtLoader(IN EFI_HANDLE ImageHandle, BlStartXtLoader(IN EFI_HANDLE ImageHandle,

16
xtldr2/shell.c Normal file
View File

@ -0,0 +1,16 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtldr/shell.c
* DESCRIPTION: XT Boot Loader shell
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtldr.h>
XTCDECL
VOID
BlStartLoaderShell()
{
}

View File

@ -9,6 +9,7 @@
#include <xtldr.h> #include <xtldr.h>
/** /**
* Initializes EFI Boot Loader (XTLDR). * Initializes EFI Boot Loader (XTLDR).
* *
@ -425,6 +426,7 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
} }
/* Fallback to shell, if boot menu returned */ /* Fallback to shell, if boot menu returned */
BlStartLoaderShell();
} }
/* This point should be never reached, if this happen return error code */ /* This point should be never reached, if this happen return error code */