File: syscalls_rv.S

package info (click to toggle)
optee-os 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,560 kB
  • sloc: ansic: 441,914; asm: 12,903; python: 3,719; makefile: 1,676; sh: 238
file content (31 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (2)
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"