1 //------------------------------------------------------------------------------
5 // Copyright (c) 2023, Ventana Micro Systems Inc. All rights reserved.<BR>
7 // SPDX-License-Identifier: BSD-2-Clause-Patent
9 //------------------------------------------------------------------------------
11 #include <Register/RiscV64/RiscVImpl.h>
19 // ecall updates the same a0 and a1 registers with
20 // return values. Hence, the C function which calls
21 // this should pass the address of Arg0 and Arg1.
22 // This routine saves the address and updates it
23 // with a0 and a1 once ecall returns.
25 // @param a0 : Pointer to Arg0
26 // @param a1 : Pointer to Arg1
31 // @param a6 : FunctionID
32 // @param a7 : ExtensionId
34 ASM_FUNC (RiscVSbiEcall)