xref: /openbmc/linux/arch/mips/vdso/sigreturn.S (revision 4f6cce39)
1/*
2 * Copyright (C) 2015 Imagination Technologies
3 * Author: Alex Smith <alex.smith@imgtec.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation;  either version 2 of the  License, or (at your
8 * option) any later version.
9 */
10
11#include "vdso.h"
12
13#include <uapi/asm/unistd.h>
14
15#include <asm/regdef.h>
16#include <asm/asm.h>
17
18	.section	.text
19	.cfi_sections	.debug_frame
20
21LEAF(__vdso_rt_sigreturn)
22	.cfi_startproc
23	.frame	sp, 0, ra
24	.mask	0x00000000, 0
25	.fmask	0x00000000, 0
26	.cfi_signal_frame
27
28	li	v0, __NR_rt_sigreturn
29	syscall
30
31	.cfi_endproc
32	END(__vdso_rt_sigreturn)
33
34#if _MIPS_SIM == _MIPS_SIM_ABI32
35
36LEAF(__vdso_sigreturn)
37	.cfi_startproc
38	.frame	sp, 0, ra
39	.mask	0x00000000, 0
40	.fmask	0x00000000, 0
41	.cfi_signal_frame
42
43	li	v0, __NR_sigreturn
44	syscall
45
46	.cfi_endproc
47	END(__vdso_sigreturn)
48
49#endif
50