mirror of
				https://gitlab.com/qemu-project/edk2.git
				synced 2025-10-30 07:56:39 +08:00 
			
		
		
		
	UefiCpuPkg/PeiMpLib: Only allocate ACPI NVS AP loop code buffer on S3
This commit allocated an ACPI NVS buffer in PEI:
cdc1a88272
This is a RT visible memory type that remains fragmented against the
overall `EfiACPIMemoryNVS` memory bucket allocated by the DXE Core.
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
			
			
This commit is contained in:
		 Michael Kubacki
					Michael Kubacki
				
			
				
					committed by
					
						![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
			
				
	
			
			
			![mergify[bot]](/assets/img/avatar_default.png) mergify[bot]
						mergify[bot]
					
				
			
						parent
						
							e494b25fe3
						
					
				
				
					commit
					db4d323909
				
			| @ -439,11 +439,24 @@ InitMpGlobalData ( | ||||
|   IN CPU_MP_DATA  *CpuMpData | ||||
|   ) | ||||
| { | ||||
|   EFI_STATUS  Status; | ||||
|   EFI_STATUS     Status; | ||||
|   EFI_BOOT_MODE  BootMode; | ||||
|  | ||||
|   BuildMicrocodeCacheHob (CpuMpData); | ||||
|   SaveCpuMpData (CpuMpData); | ||||
|   PrepareApLoopCode (CpuMpData); | ||||
|  | ||||
|   Status = PeiServicesGetBootMode (&BootMode); | ||||
|   ASSERT_EFI_ERROR (Status); | ||||
|  | ||||
|   if (!EFI_ERROR (Status) && (BootMode == BOOT_ON_S3_RESUME)) { | ||||
|     // | ||||
|     // Only allocate the AP loop code buffer on S3 resume. | ||||
|     // This allocates ACPI NVS memory which is a RT visible memory type that | ||||
|     // remains fragmented against the overall EfiACPIMemoryNVS memory bucket | ||||
|     // allocated by the DXE Core. | ||||
|     // | ||||
|     PrepareApLoopCode (CpuMpData); | ||||
|   } | ||||
|  | ||||
|   /// | ||||
|   /// Install Notify | ||||
|  | ||||
		Reference in New Issue
	
	Block a user