mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
<Library/PeimEntryPoint.h> declares a bogus ProcessLibraryConstructorList() for the OvmfPkg/RiscVVirt SEC module. Rely on AutoGen for (properly) declaring ProcessLibraryConstructorList(). Remove the correct, but superfluous, declaration as well. Build-tested with: build -a RISCV64 -b DEBUG -m OvmfPkg/RiscVVirt/Sec/SecMain.inf \ -p OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc -t GCC5 Cc: Andrei Warkentin <andrei.warkentin@intel.com> Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Sunil V L <sunilvl@ventanamicro.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=990 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20240305113843.68812-5-lersek@redhat.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
92 lines
2.2 KiB
C
92 lines
2.2 KiB
C
/** @file
|
|
Master header file for SecCore.
|
|
|
|
Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef SEC_MAIN_H_
|
|
#define SEC_MAIN_H_
|
|
|
|
#include <PiPei.h>
|
|
#include <Library/BaseLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include <Library/DebugAgentLib.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/ExtractGuidedSectionLib.h>
|
|
#include <Library/IoLib.h>
|
|
#include <Library/HobLib.h>
|
|
#include <Library/PcdLib.h>
|
|
#include <Library/PeCoffExtraActionLib.h>
|
|
#include <Library/PeCoffGetEntryPointLib.h>
|
|
#include <Library/PeCoffLib.h>
|
|
#include <Library/PeiServicesLib.h>
|
|
#include <Library/PeiServicesTablePointerLib.h>
|
|
#include <Library/DebugPrintErrorLevelLib.h>
|
|
#include <Library/PrintLib.h>
|
|
#include <Library/BaseRiscVSbiLib.h>
|
|
#include <Library/PrePiLib.h>
|
|
#include <Library/PlatformInitLib.h>
|
|
#include <Library/PrePiHobListPointerLib.h>
|
|
#include <Library/SerialPortLib.h>
|
|
#include <Register/RiscV64/RiscVImpl.h>
|
|
|
|
/**
|
|
Entry point to the C language phase of SEC. After the SEC assembly
|
|
code has initialized some temporary memory and set up the stack,
|
|
the control is transferred to this function.
|
|
|
|
@param SizeOfRam Size of the temporary memory available for use.
|
|
@param TempRamBase Base address of temporary ram
|
|
@param BootFirmwareVolume Base address of the Boot Firmware Volume.
|
|
**/
|
|
VOID
|
|
NORETURN
|
|
EFIAPI
|
|
SecStartup (
|
|
IN UINTN BootHartId,
|
|
IN VOID *DeviceTreeAddress
|
|
);
|
|
|
|
/**
|
|
Perform Platform PEIM initialization.
|
|
|
|
@return EFI_SUCCESS The platform initialized successfully.
|
|
@retval Others - As the error code indicates
|
|
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
PlatformPeimInitialization (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Perform Memory PEIM initialization.
|
|
|
|
@return EFI_SUCCESS The platform initialized successfully.
|
|
@retval Others - As the error code indicates
|
|
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
MemoryPeimInitialization (
|
|
VOID
|
|
);
|
|
|
|
/**
|
|
Perform CPU PEIM initialization.
|
|
|
|
@return EFI_SUCCESS The platform initialized successfully.
|
|
@retval Others - As the error code indicates
|
|
|
|
**/
|
|
EFI_STATUS
|
|
EFIAPI
|
|
CpuPeimInitialization (
|
|
VOID
|
|
);
|
|
|
|
#endif
|