OvmfPkg/PlatformInitLib: Move functions to Platform.c
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3863 Move functions in PlatformPei/Platform.c to PlatformInitLib/Platform.c. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Sebastien Boeuf <sebastien.boeuf@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Min Xu <min.m.xu@intel.com>
This commit is contained in:
@@ -169,4 +169,38 @@ PlatformQemuInitializeRamForS3 (
|
||||
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformMemMapInitialization (
|
||||
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
/**
|
||||
* Fetch "opt/ovmf/PcdSetNxForStack" from QEMU
|
||||
*
|
||||
* @param Setting The pointer to the setting of "/opt/ovmf/PcdSetNxForStack".
|
||||
* @return EFI_SUCCESS Successfully fetch the settings.
|
||||
*/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PlatformNoexecDxeInitialization (
|
||||
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformMiscInitialization (
|
||||
IN EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
/**
|
||||
Fetch the boot CPU count and the possible CPU count from QEMU, and expose
|
||||
them to UefiCpuPkg modules.
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
PlatformMaxCpuCountInitialization (
|
||||
IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob
|
||||
);
|
||||
|
||||
#endif // PLATFORM_INIT_LIB_H_
|
||||
|
Reference in New Issue
Block a user