xref: /linux/arch/hexagon/kernel/trampoline.S (revision 37744feebc086908fd89760650f458ab19071750)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
4 */
5
6/*
7 * Trampoline sequences to be copied onto user stack.
8 * This consumes a little more space than hand-assembling
9 * immediate constants for use in C, but is more portable
10 * to future tweaks to the Hexagon instruction set.
11 */
12
13#include <asm/unistd.h>
14
15/*  Sig trampolines - call sys_sigreturn or sys_rt_sigreturn as appropriate */
16
17/*  plain sigreturn is gone.  */
18
19	.globl __rt_sigtramp_template
20__rt_sigtramp_template:
21	r6 = #__NR_rt_sigreturn;
22	trap0(#1);
23