Because now we exit the boot services with the original AP startup code
abandoned by all APs, we can allocate that startup code in Boot Services
Code type memory; only the new stub (with the final HLT loop) has to
reside in EfiACPIMemoryNVS.

Cc: Chen Fan <[email protected]>
Cc: Jeff Fan <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Michael Kinney <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
---

Notes:
    v2:
    - split out as a separate patch
    - capitalize first letter of subject after "UefiCpuPkg/CpuDxe" prefix
      [Jeff]

 UefiCpuPkg/CpuDxe/ApStartup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/UefiCpuPkg/CpuDxe/ApStartup.c b/UefiCpuPkg/CpuDxe/ApStartup.c
index b6a1d2a..2de75b3 100644
--- a/UefiCpuPkg/CpuDxe/ApStartup.c
+++ b/UefiCpuPkg/CpuDxe/ApStartup.c
@@ -460,11 +460,11 @@ PrepareAPStartupCode (
   CPU_AP_HLT_LOOP       *CpuApHltLoop;
 
   StartAddress = BASE_1MB;
   Status = gBS->AllocatePages (
                   AllocateMaxAddress,
-                  EfiACPIMemoryNVS,
+                  EfiBootServicesCode,
                   EFI_SIZE_TO_PAGES (sizeof (*StartupCode)),
                   &StartAddress
                   );
   if (EFI_ERROR (Status)) {
     return Status;
-- 
1.8.3.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to