aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/riscv64/test-noc.S
blob: e29d60c8b3805c76ce3e2b4ccfda591029791e9f (plain)
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
32
#include <asm/unistd.h>

	.text
	.globl _start
_start:
	.option	norvc
	li	a0, 4		/* SIGILL */
	la	a1, sa
	li	a2, 0
	li	a3, 8
	li	a7, __NR_rt_sigaction
	scall

	.option	rvc
	li	a0, 1
	j	exit
	.option	norvc

pass:
	li	a0, 0
exit:
	li	a7, __NR_exit
	scall

	.data
	/* struct kernel_sigaction sa = { .sa_handler = pass }; */
	.type	sa, @object
	.size	sa, 32
sa:
	.dword	pass
	.zero	24