summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa/sigrestorer.S
blob: 474a8931956f7ba457f161588486294423b18204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (C) 2008 Tensilica Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */ 

#include <sys/syscall.h>

#if __NR_rt_sigreturn > 255
# error value of __NR_rt_sigreturn is too big!
#endif

	.text
	.align	4
	.global	__default_sa_restorer
	.type	__default_sa_restorer, @function
__default_sa_restorer:
	movi	a2, __NR_rt_sigreturn
	syscall