public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Cheng-Chieh Huang <chengchieh@google.com>
To: devel@edk2.groups.io
Cc: Cheng-Chieh Huang <chengchieh@google.com>,
	Daniel Schaefer <daniel.schaefer@hpe.com>,
	 Trammell Hudson <hudson@trmm.net>,
	Maurice Ma <maurice.ma@intel.com>, Guo Dong <guo.dong@intel.com>,
	 Benjamin You <benjamin.you@intel.com>, Ray Ni <ray.ni@intel.com>
Subject: [PATCH v3 4/4] UefiPayloadPkg: Reserve Payload config in runtime services data
Date: Mon, 23 Aug 2021 06:33:12 +0000	[thread overview]
Message-ID: <20210823063312.2323801-5-chengchieh@google.com> (raw)
In-Reply-To: <20210823063312.2323801-1-chengchieh@google.com>

Signed-off-by: Cheng-Chieh Huang <chengchieh@google.com>

Cc: Cheng-Chieh Huang <chengchieh@google.com>
Cc: Daniel Schaefer <daniel.schaefer@hpe.com>
Cc: Trammell Hudson <hudson@trmm.net>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
---
 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
index ae16f25c7c0e..5bace742d73e 100644
--- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
+++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c
@@ -517,6 +517,10 @@ BuildGenericHob (
 
   // The UEFI payload FV
   BuildMemoryAllocationHob (PcdGet32 (PcdPayloadFdMemBase), PcdGet32 (PcdPayloadFdMemSize), EfiBootServicesData);
+  #ifdef LINUXBOOT_PAYLOAD
+  // The UEFI payload config FV
+  BuildMemoryAllocationHob (PcdGet32 (PcdPayloadFdMemBase) - SIZE_64KB, SIZE_64KB, EfiRuntimeServicesData);
+  #endif
 
   //
   // Build CPU memory space and IO space hob
-- 
2.33.0.rc2.250.ged5fa647cd-goog


  parent reply	other threads:[~2021-08-23  6:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23  6:33 [PATCH v3 0/4] UefiPayloadPkg: LinuxBoot Support in UefiPayload Cheng-Chieh Huang
2021-08-23  6:33 ` [PATCH v3 1/4] UefiPayloadPkg: Add LINUXBOOT payload target Cheng-Chieh Huang
2021-08-25  0:35   ` Ni, Ray
2021-09-29 19:07     ` Guo Dong
2021-08-23  6:33 ` [PATCH v3 2/4] UefiPayloadPkg: Use legacy timer in Linuxboot payload Cheng-Chieh Huang
2021-08-25  0:34   ` Ni, Ray
2021-08-23  6:33 ` [PATCH v3 3/4] UefiPayloadPkg: Update maximum logic processor to 256 Cheng-Chieh Huang
2021-08-23  6:33 ` Cheng-Chieh Huang [this message]
2021-09-29 19:02 ` [edk2-devel] [PATCH v3 0/4] UefiPayloadPkg: LinuxBoot Support in UefiPayload Guo Dong
2021-09-29 19:15   ` Guo Dong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210823063312.2323801-5-chengchieh@google.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox