/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2023 ESWIN Corp. or its affiliates. * Authors: * Liu Shiwei */ #include .section .text .macro LDELF_SYSCALL name, scn, num_args FUNC \name , : .if \num_args > 8 .error "Too many arguments for syscall" .endif li t0, \scn li t1, \num_args ecall ret END_FUNC \name .endm FUNC _ldelf_panic, : j __ldelf_panic /* Not reached */ END_FUNC _ldelf_panic #include "syscalls_asm.S"