[BOOTMGFW]

* Add stubs for unimplemented platforms, so the compilation succeeds even if it can't possibly work.

svn path=/trunk/; revision=69122
This commit is contained in:
David Quintana 2015-09-08 15:56:33 +00:00
parent 682b6b0cae
commit 0e583a5926
3 changed files with 76 additions and 1 deletions

View file

@ -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})

View file

@ -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;
}

View file

@ -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;
}