Author: dquintana
Date: Tue Sep  8 15:56:33 2015
New Revision: 69122

URL: http://svn.reactos.org/svn/reactos?rev=69122&view=rev
Log:
[BOOTMGFW]
* Add stubs for unimplemented platforms, so the compilation succeeds even if it 
can't possibly work.

Added:
    trunk/reactos/boot/environ/lib/arch/stub/
    trunk/reactos/boot/environ/lib/arch/stub/arch.c   (with props)
    trunk/reactos/boot/environ/lib/mm/stub/
    trunk/reactos/boot/environ/lib/mm/stub/mm.c   (with props)
Modified:
    trunk/reactos/boot/environ/CMakeLists.txt

Modified: trunk/reactos/boot/environ/CMakeLists.txt
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/CMakeLists.txt?rev=69122&r1=69121&r2=69122&view=diff
==============================================================================
--- trunk/reactos/boot/environ/CMakeLists.txt   [iso-8859-1] (original)
+++ trunk/reactos/boot/environ/CMakeLists.txt   [iso-8859-1] Tue Sep  8 
15:56:33 2015
@@ -46,9 +46,13 @@
          )
     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})

Added: trunk/reactos/boot/environ/lib/arch/stub/arch.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/lib/arch/stub/arch.c?rev=69122
==============================================================================
--- trunk/reactos/boot/environ/lib/arch/stub/arch.c     (added)
+++ trunk/reactos/boot/environ/lib/arch/stub/arch.c     [iso-8859-1] Tue Sep  8 
15:56:33 2015
@@ -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 ([email protected])
+ */
+
+/* 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;
+}
+

Propchange: trunk/reactos/boot/environ/lib/arch/stub/arch.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/reactos/boot/environ/lib/mm/stub/mm.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/lib/mm/stub/mm.c?rev=69122
==============================================================================
--- trunk/reactos/boot/environ/lib/mm/stub/mm.c (added)
+++ trunk/reactos/boot/environ/lib/mm/stub/mm.c [iso-8859-1] Tue Sep  8 
15:56:33 2015
@@ -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 ([email protected])
+ */
+
+/* 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;
+}

Propchange: trunk/reactos/boot/environ/lib/mm/stub/mm.c
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to