From ee0603c31846d817f8309ddc598da054c7c9df26 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Tue, 2 Jan 2024 14:45:40 +0100 Subject: [PATCH] Loader shell stub --- xtldr2/CMakeLists.txt | 1 + xtldr2/includes/xtldr.h | 4 ++++ xtldr2/shell.c | 16 ++++++++++++++++ xtldr2/xtldr.c | 2 ++ 4 files changed, 23 insertions(+) create mode 100644 xtldr2/shell.c diff --git a/xtldr2/CMakeLists.txt b/xtldr2/CMakeLists.txt index 08e0901..d9f2946 100644 --- a/xtldr2/CMakeLists.txt +++ b/xtldr2/CMakeLists.txt @@ -19,6 +19,7 @@ list(APPEND XTLDR_SOURCE ${XTLDR_SOURCE_DIR}/hardware.c ${XTLDR_SOURCE_DIR}/memory.c ${XTLDR_SOURCE_DIR}/protocol.c + ${XTLDR_SOURCE_DIR}/shell.c ${XTLDR_SOURCE_DIR}/string.c ${XTLDR_SOURCE_DIR}/textui.c ${XTLDR_SOURCE_DIR}/volume.c diff --git a/xtldr2/includes/xtldr.h b/xtldr2/includes/xtldr.h index d385deb..3480f68 100644 --- a/xtldr2/includes/xtldr.h +++ b/xtldr2/includes/xtldr.h @@ -221,6 +221,10 @@ XTCDECL VOID BlSleepExecution(IN ULONG_PTR Milliseconds); +XTCDECL +VOID +BlStartLoaderShell(); + XTCDECL EFI_STATUS BlStartXtLoader(IN EFI_HANDLE ImageHandle, diff --git a/xtldr2/shell.c b/xtldr2/shell.c new file mode 100644 index 0000000..167165a --- /dev/null +++ b/xtldr2/shell.c @@ -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 + */ + +#include + + +XTCDECL +VOID +BlStartLoaderShell() +{ +} diff --git a/xtldr2/xtldr.c b/xtldr2/xtldr.c index c16021f..d03eb5f 100644 --- a/xtldr2/xtldr.c +++ b/xtldr2/xtldr.c @@ -9,6 +9,7 @@ #include + /** * Initializes EFI Boot Loader (XTLDR). * @@ -425,6 +426,7 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle, } /* Fallback to shell, if boot menu returned */ + BlStartLoaderShell(); } /* This point should be never reached, if this happen return error code */