linux/arch/mips/vdso/sigreturn.S
Vincenzo Frascino 24640f233b
mips: Add support for generic vDSO
The mips vDSO library requires some adaptations to take advantage of the
newly introduced generic vDSO library.

Introduce the following changes:
 - Modification of vdso.c to be compliant with the common vdso datapage
 - Use of lib/vdso for gettimeofday

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
[paul.burton@mips.com: Prepend $(src) to config-n32-o32-env.c path.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
2019-07-25 21:45:05 -07:00

36 lines
548 B
ArmAsm

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2015 Imagination Technologies
* Author: Alex Smith <alex.smith@imgtec.com>
*/
#include <asm/vdso/vdso.h>
#include <uapi/asm/unistd.h>
#include <asm/regdef.h>
#include <asm/asm.h>
.section .text
.cfi_sections .debug_frame
LEAF(__vdso_rt_sigreturn)
.cfi_signal_frame
li v0, __NR_rt_sigreturn
syscall
END(__vdso_rt_sigreturn)
#if _MIPS_SIM == _MIPS_SIM_ABI32
LEAF(__vdso_sigreturn)
.cfi_signal_frame
li v0, __NR_sigreturn
syscall
END(__vdso_sigreturn)
#endif