1/* SPDX-License-Identifier: BSD-2-Clause */ 2/* 3 * Copyright (c) 2023 ESWIN Corp. or its affiliates. 4 * Authors: 5 * Liu Shiwei <liushiwei@eswincomputing.com> 6 */ 7 8#include <asm.S> 9 10 .section .text 11 12 .macro LDELF_SYSCALL name, scn, num_args 13FUNC \name , : 14 15 .if \num_args > 8 16 .error "Too many arguments for syscall" 17 .endif 18 19 li t0, \scn 20 li t1, \num_args 21 ecall 22 ret 23END_FUNC \name 24 .endm 25 26FUNC _ldelf_panic, : 27 j __ldelf_panic 28 /* Not reached */ 29END_FUNC _ldelf_panic 30 31#include "syscalls_asm.S" 32