xref: /openbmc/qemu/tests/tcg/riscv64/test-noc.S (revision 197a1372)
1#include <asm/unistd.h>
2
3	.text
4	.globl _start
5_start:
6	.option	norvc
7	li	a0, 4		/* SIGILL */
8	la	a1, sa
9	li	a2, 0
10	li	a3, 8
11	li	a7, __NR_rt_sigaction
12	scall
13
14	.option	rvc
15	li	a0, 1
16	j	exit
17	.option	norvc
18
19pass:
20	li	a0, 0
21exit:
22	li	a7, __NR_exit
23	scall
24
25	.data
26	/* struct kernel_sigaction sa = { .sa_handler = pass }; */
27	.type	sa, @object
28	.size	sa, 32
29sa:
30	.dword	pass
31	.zero	24
32
33