diff --git a/reactos/boot/environ/CMakeLists.txt b/reactos/boot/environ/CMakeLists.txt index 557bfff0c3c..3b043180fab 100644 --- a/reactos/boot/environ/CMakeLists.txt +++ b/reactos/boot/environ/CMakeLists.txt @@ -46,9 +46,13 @@ elseif(ARCH STREQUAL "amd64") ) list(APPEND BOOTLIB_SOURCE #lib/arch/amd64/foo.c + lib/arch/stub/arch.c + lib/mm/stub/mm.c ) else() -#TBD + list(APPEND BOOTLIB_SOURCE + lib/arch/stub/arch.c + ) endif() add_asm_files(bootlib_asm ${BOOTLIB_ASM_SOURCE}) diff --git a/reactos/boot/environ/lib/arch/stub/arch.c b/reactos/boot/environ/lib/arch/stub/arch.c new file mode 100644 index 00000000000..9de3f006f5a --- /dev/null +++ b/reactos/boot/environ/lib/arch/stub/arch.c @@ -0,0 +1,46 @@ +/* + * COPYRIGHT: See COPYING.ARM in the top level directory + * PROJECT: ReactOS UEFI Boot Library + * FILE: boot/environ/lib/arch/stub/arch.c + * PURPOSE: Boot Library Architectural Initialization Skeleton Code + * PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include "bl.h" + +/* DATA VARIABLES ************************************************************/ + +PBL_ARCH_CONTEXT CurrentExecutionContext; + +/* FUNCTIONS *****************************************************************/ + +VOID +BlpArchSwitchContext ( + _In_ BL_ARCH_MODE NewMode + ) +{ +} + +/*++ +* @name BlpArchInitialize +* +* The BlpArchInitialize function initializes the Boot Library. +* +* @param Phase +* Pointer to the Boot Application Parameter Block. +* +* @return NT_SUCCESS if the boot library was loaded correctly, relevant error +* otherwise. +* +*--*/ +NTSTATUS +BlpArchInitialize ( + _In_ ULONG Phase + ) +{ + EfiPrintf(L" BlpArchInitialize NOT IMPLEMENTED for this platform\r\n"); + return STATUS_NOT_IMPLEMENTED; +} + diff --git a/reactos/boot/environ/lib/mm/stub/mm.c b/reactos/boot/environ/lib/mm/stub/mm.c new file mode 100644 index 00000000000..bb2b2471768 --- /dev/null +++ b/reactos/boot/environ/lib/mm/stub/mm.c @@ -0,0 +1,25 @@ +/* + * COPYRIGHT: See COPYING.ARM in the top level directory + * PROJECT: ReactOS UEFI Boot Library + * FILE: boot/environ/lib/mm/stub/mm.c + * PURPOSE: Boot Library Memory Manager Skeleton Code + * PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include "bl.h" + +/* FUNCTIONS *****************************************************************/ + +NTSTATUS +MmArchInitialize ( + _In_ ULONG Phase, + _In_ PBL_MEMORY_DATA MemoryData, + _In_ BL_TRANSLATION_TYPE TranslationType, + _In_ BL_TRANSLATION_TYPE RequestedTranslationType + ) +{ + EfiPrintf(L" MmArchInitialize NOT IMPLEMENTED for this platform\r\n"); + return STATUS_NOT_IMPLEMENTED; +}