diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-08 21:52:21 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-08 21:52:21 +0000 |
commit | 946bfba2c321425f22fecb53349b779594543919 (patch) | |
tree | edfc9766a6eadf3fd14f0d5555d92ffd43505d46 /InOsEmuPkg/Sec | |
parent | f65dc3bebd97e5b9951fa44bb6365275f7f00791 (diff) | |
download | edk2-platforms-946bfba2c321425f22fecb53349b779594543919.tar.xz |
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
Diffstat (limited to 'InOsEmuPkg/Sec')
-rw-r--r-- | InOsEmuPkg/Sec/Sec.c | 2 | ||||
-rw-r--r-- | InOsEmuPkg/Sec/Sec.h | 2 | ||||
-rw-r--r-- | InOsEmuPkg/Sec/Sec.inf | 4 |
3 files changed, 5 insertions, 3 deletions
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 <PiPei.h> +#include <Library/EmuMagicPageLib.h> #include <Library/DebugLib.h> #include <Library/PeiServicesLib.h> #include <Library/PeCoffGetEntryPointLib.h> #include <Library/BaseMemoryLib.h> -#include <Library/PpiListLib.h> #include <Ppi/TemporaryRamSupport.h> 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
|