]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/arc/sigrestorer.S
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / arc / sigrestorer.S
1 /*
2  * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
3  *
4  * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
5  */
6
7 #include <sysdep.h>
8 #include <sys/syscall.h>
9
10 /*
11  * Provide a real sigreturn stub to avoid kernel synthesizing one
12  * on user stack at runtime, which needs PTE permissions update
13  * (hence TLB entry update) and costly cache line flushes for
14  * code modification
15  */
16
17 ENTRY(__default_rt_sa_restorer)
18     mov r8, __NR_rt_sigreturn
19     ARC_TRAP_INSN
20 END(__default_rt_sa_restorer)
21 libc_hidden_def(__default_rt_sa_restorer)