1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2023 ESWIN Corp. or its affiliates.
* Authors:
* Liu Shiwei <liushiwei@eswincomputing.com>
*/
#include <asm.S>
.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"
|