audk/OvmfPkg/RiscVVirt/Sec/SecEntry.S
Sunil V L 0f9fd06919 OvmfPkg/RiscVVirt: SecEntry: Remove unnecessary assembly directives
llvm fails to resolve _ModuleEntry when these extra directives are
present. ASM_FUNC already takes care what is required.

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: Andrei Warkentin <andrei.warkentin@intel.com>

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org> # Debian clang version 14.0.6
2023-07-31 12:37:12 +00:00

19 lines
437 B
ArmAsm

/*
Copyright (c) 2022 Ventana Micro Systems Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#include "SecMain.h"
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