mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-30 22:18:12 +02:00
Platfrom PEI module for LoongArch platfrom initialization. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Bibo Mao <maobibo@loongson.cn> Cc: Dongyan Qian <qiandongyan@loongson.cn> Signed-off-by: Chao Li <lichao@loongson.cn> Co-authored-by: Xianglai Li <lixianglai@loongson.cn> Co-authored-by: Bibo Mao <maobibo@loongson.cn>
37 lines
815 B
C
37 lines
815 B
C
/** @file
|
|
Build FV related hobs for platform.
|
|
|
|
Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/HobLib.h>
|
|
|
|
/**
|
|
Publish PEI & DXE (Decompressed) Memory based FVs to let PEI
|
|
and DXE know about them.
|
|
|
|
@retval EFI_SUCCESS Platform PEI FVs were initialized successfully.
|
|
**/
|
|
EFI_STATUS
|
|
PeiFvInitialization (
|
|
VOID
|
|
)
|
|
{
|
|
DEBUG ((DEBUG_INFO, "Platform PEI Firmware Volume Initialization\n"));
|
|
|
|
//
|
|
// Create a memory allocation HOB for the PEI FV.
|
|
//
|
|
BuildMemoryAllocationHob (
|
|
FixedPcdGet64 (PcdOvmfSecPeiTempRamBase),
|
|
FixedPcdGet32 (PcdOvmfSecPeiTempRamSize),
|
|
EfiBootServicesData
|
|
);
|
|
|
|
return EFI_SUCCESS;
|
|
}
|