Add the 'AsmRelocateApLoopStartGeneric' for X64 processors except 64-bit AMD processors with SEV-ES. Remove the unused arguments of AsmRelocateApLoopStartGeneric, updated the stack offset. Create PageTable for the allocated reserved memory. Only keep 4GB limitation of memory allocation for the case APs still need to be transferred to 32-bit mode before OS. Cc: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Cc: James Lu <james.lu@intel.com> Cc: Gua Guo <gua.guo@intel.com> Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			640 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			640 B
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  Function to create page talbe.
 | 
						|
  Only create page table for x64, and leave the CreatePageTable empty for Ia32.
 | 
						|
  Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
 | 
						|
  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
**/
 | 
						|
 | 
						|
#include <Base.h>
 | 
						|
 | 
						|
/**
 | 
						|
  Only create page table for x64, and leave the CreatePageTable empty for Ia32.
 | 
						|
  @param[in]      LinearAddress  The start of the linear address range.
 | 
						|
  @param[in]      Length         The length of the linear address range.
 | 
						|
  @return The page table to be created.
 | 
						|
**/
 | 
						|
UINTN
 | 
						|
CreatePageTable (
 | 
						|
  IN UINTN  Address,
 | 
						|
  IN UINTN  Length
 | 
						|
  )
 | 
						|
{
 | 
						|
  return 0;
 | 
						|
}
 |