mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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
19 lines
437 B
ArmAsm
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
|