summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/xtensa/sigrestorer.S
blob: 697f54e1d854b1c36e8ff3e3a33b5afa568b2450 (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
/*
 * 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
	/* This space separates __default_sa_restorer from the previous
	 * function, so that its corresponding FDE is not mistakenly found
	 * by the libgcc stack unwinder. This is important for correct signal
	 * stack unwinding.
	 */
	.space	1
	.align	4
	.global	__default_sa_restorer
	.type	__default_sa_restorer, @function
__default_sa_restorer:
	movi	a2, __NR_rt_sigreturn
	syscall