From 5300cf02b9146bddedb7585f44cebb0be4f91856 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 21 Jan 2014 19:38:16 +0000 Subject: [PATCH] OvmfPkg: Carve 128KB out of MAINFV in MEMFD In an effort to consolidate fixed memory used by OVMF, we'll move 2 SEC/PEI phase RAM users to 8MB. * X64 page tables (24KB) 0x80000 => 0x800000 * PEI temporary RAM (64KB) 0x70000 => 0x810000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15144 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/OvmfPkgIa32.fdf | 7 ++++--- OvmfPkg/OvmfPkgIa32X64.fdf | 7 ++++--- OvmfPkg/OvmfPkgX64.fdf | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf index c6e186f26d..1c5c74664d 100644 --- a/OvmfPkg/OvmfPkgIa32.fdf +++ b/OvmfPkg/OvmfPkgIa32.fdf @@ -129,13 +129,14 @@ FV = SECFV ################################################################################ [FD.MEMFD] -BaseAddress = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase -Size = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize +BaseAddress = 0x800000 +Size = 0x800000 ErasePolarity = 1 BlockSize = 0x10000 NumBlocks = 0x80 -0x0|0x800000 +0x020000|0x7E0000 +gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize FV = MAINFV ################################################################################ diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf index 615451dbec..25d36107c0 100644 --- a/OvmfPkg/OvmfPkgIa32X64.fdf +++ b/OvmfPkg/OvmfPkgIa32X64.fdf @@ -129,13 +129,14 @@ FV = SECFV ################################################################################ [FD.MEMFD] -BaseAddress = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase -Size = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize +BaseAddress = 0x800000 +Size = 0x800000 ErasePolarity = 1 BlockSize = 0x10000 NumBlocks = 0x80 -0x0|0x800000 +0x020000|0x7E0000 +gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize FV = MAINFV ################################################################################ diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index 911fe0898b..a97b2c26a7 100644 --- a/OvmfPkg/OvmfPkgX64.fdf +++ b/OvmfPkg/OvmfPkgX64.fdf @@ -129,13 +129,14 @@ FV = SECFV ################################################################################ [FD.MEMFD] -BaseAddress = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase -Size = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize +BaseAddress = 0x800000 +Size = 0x800000 ErasePolarity = 1 BlockSize = 0x10000 NumBlocks = 0x80 -0x0|0x800000 +0x020000|0x7E0000 +gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize FV = MAINFV ################################################################################