Add the SEC module for RISC-V Qemu virt machine support. It uses the PEI less design. 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> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Acked-by: Abner Chang <abner.chang@amd.com> Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
22 lines
456 B
ArmAsm
22 lines
456 B
ArmAsm
/*
|
|
Copyright (c) 2022 Ventana Micro Systems Inc.
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
*/
|
|
|
|
#include "SecMain.h"
|
|
|
|
.text
|
|
.align 3
|
|
|
|
ASM_FUNC (_ModuleEntryPoint)
|
|
/* Use Temp memory as the stack for calling to C code */
|
|
li a4, FixedPcdGet32 (PcdOvmfSecPeiTempRamBase)
|
|
li a5, FixedPcdGet32 (PcdOvmfSecPeiTempRamSize)
|
|
|
|
/* Use Temp memory as the stack for calling to C code */
|
|
add sp, a4, a5
|
|
|
|
call SecStartup
|