Blame sysdeps/alpha/bits/setjmp.h

Packit 6c4009
/* Define the machine-dependent type `jmp_buf'.  Alpha version.
Packit 6c4009
   Copyright (C) 1992-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library.  If not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef _BITS_SETJMP_H
Packit 6c4009
#define _BITS_SETJMP_H  1
Packit 6c4009
Packit 6c4009
#if !defined _SETJMP_H && !defined _PTHREAD_H
Packit 6c4009
# error "Never include <bits/setjmp.h> directly; use <setjmp.h> instead."
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* The previous bits/setjmp.h had __jmp_buf defined as a structure.
Packit 6c4009
   We use an array of 'long int' instead, to make writing the
Packit 6c4009
   assembler easier. Naturally, user code should not depend on
Packit 6c4009
   either representation. */
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 * Integer registers:
Packit 6c4009
 *    $0 is the return value (va);
Packit 6c4009
 *    $1-$8, $22-$25, $28 are call-used (t0-t7, t8-t11, at);
Packit 6c4009
 *    $9-$14 we save here (s0-s5);
Packit 6c4009
 *    $15 is the FP and we save it here (fp or s6);
Packit 6c4009
 *    $16-$21 are input arguments (call-used) (a0-a5);
Packit 6c4009
 *    $26 is the return PC and we save it here (ra);
Packit 6c4009
 *    $27 is the procedure value (i.e., the address of __setjmp) (pv or t12);
Packit 6c4009
 *    $29 is the global pointer, which the caller will reconstruct
Packit 6c4009
 *        from the return address restored in $26 (gp);
Packit 6c4009
 *    $30 is the stack pointer and we save it here (sp);
Packit 6c4009
 *    $31 is always zero (zero).
Packit 6c4009
 *
Packit 6c4009
 * Floating-point registers:
Packit 6c4009
 *    $f0 is the floating return value;
Packit 6c4009
 *    $f1, $f10-$f15, $f22-$f30 are call-used;
Packit 6c4009
 *    $f2-$f9 we save here;
Packit 6c4009
 *    $f16-$21 are input args (call-used);
Packit 6c4009
 *    $f31 is always zero.
Packit 6c4009
 *
Packit 6c4009
 * Note that even on Alpha hardware that does not have an FPU (there
Packit 6c4009
 * isn't such a thing currently) it is required to implement the FP
Packit 6c4009
 * registers.
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef __ASSEMBLY__
Packit 6c4009
typedef long int __jmp_buf[17];
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#endif  /* bits/setjmp.h */