From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by mx.groups.io with SMTP id smtpd.web08.6992.1628347910420456272 for ; Sat, 07 Aug 2021 07:51:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20161025 header.b=hq5GlU6H; spf=pass (domain: flex--chengchieh.bounces.google.com, ip: 209.85.219.202, mailfrom: 3bz4oyqokbyoqvs1uqvwsvu22uzs.q20rs9szsryg.u52836.w2@flex--chengchieh.bounces.google.com) Received: by mail-yb1-f202.google.com with SMTP id o3-20020a2541030000b0290557cf3415f8so12619637yba.1 for ; Sat, 07 Aug 2021 07:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=as4wRNyHA16ap58zAyS43VrfxmU7ge2oAemheU8sFzA=; b=hq5GlU6HEWYCgUldWUoW1vIadPxgTok1N93BQloZTmBlneLvuPoIz0eCy5ImiDPB18 mbZM03qCQ8Qplx822W4XskdSXDxMPCQnCaZAdOHclR3bFyLmNrqxlOtW1wvizvSHfCUl YmpUYdN4K9e37qph7HkU3OJpZ4QkeDtYS1X3UhYrqM90pUb3d77rWi6TH3065zuReWwY eWjkDpsWn89++F1DGEhecMmbedC8cO+3zsMxsJPneCPS1KIxSMPTd1QTrej1kZhbhs/v LlSd3rlzE7MwKCvs83nPtgWsIMgVGzxgRS20iSjAaHSsJOGRQu36HRbQhol8fq/XuGfn /ofA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=as4wRNyHA16ap58zAyS43VrfxmU7ge2oAemheU8sFzA=; b=tkf7uOyr2Y4n4UwvM8avlSUBJVijr2Myeeqy5QsU45hDGESa+bookh+iFefCSGiecH xnhzCgDMnJqqiz5ly3R6KedgX3U2jry/TtW9L0nM8uCIB+7fhVuc5XxiIezDkxwAodOg Cvz2jgxgdLW3Abe3j8C713Ei9dpgl+YPRXVY721waw7NsNow71arQ3VtPQfnHfD3Ewij RQ/jS8n3i3tL+tfi0E3MhW6LeS78dl26X9D34o/jtpGxHiGAdPF3PV0kbKAbSiinoDfc SeTw/5ZJqHZlCXF8FVJnZhdVGZcwOZZ0AWu3OI6a06MIp7VvA5NM5eBJrC91ot9SKsy2 ku+g== X-Gm-Message-State: AOAM530mMlwC48RSGTax+sYRuv42zfSJ8iUIvPr9JDc2/fI0JzjM0xYL NcfG7I2QouTCyyf5bhUdaTwyM+q7PQo0PwZqmhOnUAsIUdItoI+EvJuDNEjWA7Qdbud8F8ekxED KrzrJpKUeK4m26WW0W+QUV+YWQ3Ai0HHXqc35mlu1z0epU8K2UJJlWP9I6iyuxxLT91BTdA== X-Google-Smtp-Source: ABdhPJxUZs2aQ5qWiEZbPMxHlPNgkeKzt3I4mEva9RiqSGjtlhMOz4MAav57cKFI4udEdHRJdLNLMDmv8sEayNTZ X-Received: from ratho96.c.googlers.com ([fda3:e722:ac3:cc00:3:22c1:c0a8:aae]) (user=chengchieh job=sendgmr) by 2002:a25:8b90:: with SMTP id j16mr18906963ybl.493.1628347909530; Sat, 07 Aug 2021 07:51:49 -0700 (PDT) Date: Sat, 7 Aug 2021 14:51:06 +0000 In-Reply-To: <20210807145106.2236803-1-chengchieh@google.com> Message-Id: <20210807145106.2236803-5-chengchieh@google.com> Mime-Version: 1.0 References: <20210807145106.2236803-1-chengchieh@google.com> X-Mailer: git-send-email 2.32.0.605.g8dce9f2422-goog Subject: [PATCH v2 4/4] UefiPayloadPkg: Reserve Payload config in runtime services data From: Cheng-Chieh Huang To: devel@edk2.groups.io Cc: Cheng-Chieh Huang , Daniel Schaefer , Trammell Hudson , Maurice Ma , Guo Dong , Benjamin You Content-Type: text/plain; charset="UTF-8" Signed-off-by: Cheng-Chieh Huang Cc: Cheng-Chieh Huang Cc: Daniel Schaefer Cc: Trammell Hudson Cc: Maurice Ma Cc: Guo Dong Cc: Benjamin You --- 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.32.0.605.g8dce9f2422-goog