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