2 Copyright (C) 1995-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
20 #include <pointer_guard.h>
21 #include <stap-probe.h>
24 # include <novmxsetjmp.h>
26 # include <jmpbuf-offsets.h>
29 ENTRY (__sigsetjmp_symbol)
39 /* setjmp probe expects longjmp first argument (4@3), second argument
40 (-4@4), and target address (4@0), respectively. */
41 LIBC_PROBE (setjmp, 3, 4@3, -4@4, 4@0)
42 stw r14,((JB_GPRS+14-14)*4)(3)
48 stw r15,((JB_GPRS+15-14)*4)(3)
50 stw r16,((JB_GPRS+16-14)*4)(3)
52 stw r17,((JB_GPRS+17-14)*4)(3)
53 stw r18,((JB_GPRS+18-14)*4)(3)
54 stw r19,((JB_GPRS+19-14)*4)(3)
55 stw r20,((JB_GPRS+20-14)*4)(3)
56 stw r21,((JB_GPRS+21-14)*4)(3)
57 stw r22,((JB_GPRS+22-14)*4)(3)
58 stw r23,((JB_GPRS+23-14)*4)(3)
59 stw r24,((JB_GPRS+24-14)*4)(3)
60 stw r25,((JB_GPRS+25-14)*4)(3)
61 stw r26,((JB_GPRS+26-14)*4)(3)
62 stw r27,((JB_GPRS+27-14)*4)(3)
63 stw r28,((JB_GPRS+28-14)*4)(3)
64 stw r29,((JB_GPRS+29-14)*4)(3)
65 stw r30,((JB_GPRS+30-14)*4)(3)
66 stw r31,((JB_GPRS+31-14)*4)(3)
71 b __sigjmp_save_symbol@local
73 END (__sigsetjmp_symbol)