From 946bfba2c321425f22fecb53349b779594543919 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 8 Jun 2011 21:52:21 +0000 Subject: InOsEmuPkg: Make XIP work properly Update the InOsEmuPkg to properly function with XIP. Make the Recovery FV read only. Remove the use of global variable writes from XIP code. Add a new global page that can be used in place of writting to the FD by XIP code. Think of this global page as a system SRAM. igned-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11771 6f19259b-4bc3-4df7-8a09-765794883524 --- InOsEmuPkg/Sec/Sec.c | 2 +- InOsEmuPkg/Sec/Sec.h | 2 +- InOsEmuPkg/Sec/Sec.inf | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'InOsEmuPkg/Sec') diff --git a/InOsEmuPkg/Sec/Sec.c b/InOsEmuPkg/Sec/Sec.c index 4e350f1706..4468d6f07b 100644 --- a/InOsEmuPkg/Sec/Sec.c +++ b/InOsEmuPkg/Sec/Sec.c @@ -82,7 +82,7 @@ _ModuleEntryPoint ( UINTN SecReseveredMemorySize; UINTN Index; - gPpiList = PpiList; + EMU_MAGIC_PAGE()->PpiList = PpiList; ProcessLibraryConstructorList (); DEBUG ((EFI_D_ERROR, "SEC Has Started\n")); diff --git a/InOsEmuPkg/Sec/Sec.h b/InOsEmuPkg/Sec/Sec.h index d0bc9e176e..00760121b2 100644 --- a/InOsEmuPkg/Sec/Sec.h +++ b/InOsEmuPkg/Sec/Sec.h @@ -19,11 +19,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include +#include #include #include #include #include -#include #include diff --git a/InOsEmuPkg/Sec/Sec.inf b/InOsEmuPkg/Sec/Sec.inf index b09785af40..c263f9db2b 100644 --- a/InOsEmuPkg/Sec/Sec.inf +++ b/InOsEmuPkg/Sec/Sec.inf @@ -41,4 +41,6 @@ [Ppis] gEfiTemporaryRamSupportPpiGuid - \ No newline at end of file + +[Pcd] + gInOsEmuPkgTokenSpaceGuid.PcdPeiServicesTablePage -- cgit v1.2.3