mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 06:59:42 +02:00
75 lines
2.6 KiB
PHP
75 lines
2.6 KiB
PHP
{******************************************************************************
|
|
$Id$
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2000-2002 by Jonas Maebe and other members of the
|
|
Free Pascal development team
|
|
|
|
SetJmp/Longjmp declarations
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This file was adapted from
|
|
Guardian:/usr/local/src/glibc-2.2.3/sysdeps/sparc/sparc32# more setjmp.S
|
|
Guardian:/usr/local/src/glibc-2.2.3/sysdeps/sparc/sparc32# more __longjmp.S
|
|
Copyright (C) 1991, 93, 94, 96, 97, 98 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
******************************************************************************}
|
|
{@Define the machine-dependent type `jmp_buf'. SPARC version.}
|
|
const
|
|
jmpbufsigmaskwords = 128 div 32;
|
|
|
|
type
|
|
tjmpsigset=array[0..jmpbufsigmaskwords-1] of longint;
|
|
pjmpsigset=^tjmpsigset;
|
|
jmp_buf=packed record
|
|
{stack pointer}
|
|
JB_SP,
|
|
{frame pointer}
|
|
JB_FP,
|
|
{program counter}
|
|
JB_PV:Pointer;
|
|
|
|
sigmask : tjmpsigset;
|
|
end;
|
|
Pjmp_buf=^jmp_buf;
|
|
function setjmp(var S:jmp_buf):longint;
|
|
procedure longjmp(var S:jmp_buf;value:longint);
|
|
{
|
|
$Log$
|
|
Revision 1.5 2004-09-12 12:04:23 peter
|
|
* restore traps when returning with longjmp
|
|
|
|
Revision 1.4 2003/01/05 21:32:35 mazen
|
|
* fixing several bugs compiling the RTL
|
|
|
|
Revision 1.3 2003/01/01 18:24:41 mazen
|
|
* just put register pointers
|
|
|
|
Revision 1.2 2002/11/24 18:19:44 mazen
|
|
+ setjmp and longjmp
|
|
|
|
Revision 1.1 2002/11/16 20:10:31 florian
|
|
+ sparc specific rtl skeleton added
|
|
}
|