trampoline.S 585 B

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