URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [glibc/] [sysdeps/] [openrisc/] [or32/] [__longjmp.S] - Rev 1534
Go to most recent revision | Compare with Previous | Blame | View Log
/* longjmp for or32.
Based on sysdeps/powerpc/powerpc32/__longjmp.S
Copyright (C) 1995-1997, 1999-2001, 2005 Free Software Foundation, Inc.
Contributed by ???? FIXME
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 Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#include <sysdep.h>
#define _ASM
#define _SETJMP_H
#include <bits/setjmp.h>
#include <bp-sym.h>
ENTRY (BP_SYM (__longjmp))
# l.lwz r11,(JB_SR*4)(r3)
# l.mtspr r0,r11,SPR_SR
l.lwz r1,((JB_GPRS+0)*4)(r3)
l.lwz r2,((JB_GPRS+1)*4)(r3)
l.lwz r5,((JB_GPRS+4)*4)(r3)
l.lwz r6,((JB_GPRS+5)*4)(r3)
l.lwz r7,((JB_GPRS+6)*4)(r3)
l.lwz r8,((JB_GPRS+7)*4)(r3)
l.lwz r9,((JB_GPRS+8)*4)(r3)
l.lwz r10,((JB_GPRS+9)*4)(r3)
l.lwz r12,((JB_GPRS+11)*4)(r3)
l.lwz r13,((JB_GPRS+12)*4)(r3)
l.lwz r14,((JB_GPRS+13)*4)(r3)
l.lwz r15,((JB_GPRS+14)*4)(r3)
l.lwz r16,((JB_GPRS+15)*4)(r3)
l.lwz r17,((JB_GPRS+16)*4)(r3)
l.lwz r18,((JB_GPRS+17)*4)(r3)
l.lwz r19,((JB_GPRS+19)*4)(r3)
l.lwz r20,((JB_GPRS+20)*4)(r3)
l.lwz r21,((JB_GPRS+21)*4)(r3)
l.lwz r22,((JB_GPRS+22)*4)(r3)
l.lwz r23,((JB_GPRS+23)*4)(r3)
l.lwz r24,((JB_GPRS+24)*4)(r3)
l.lwz r25,((JB_GPRS+25)*4)(r3)
l.lwz r26,((JB_GPRS+26)*4)(r3)
l.lwz r27,((JB_GPRS+27)*4)(r3)
l.lwz r28,((JB_GPRS+28)*4)(r3)
l.lwz r29,((JB_GPRS+29)*4)(r3)
l.lwz r30,((JB_GPRS+30)*4)(r3)
l.lwz r31,((JB_GPRS+31)*4)(r3)
l.jr r9
l.addi r11,r4,0
END (BP_SYM (__longjmp))
Go to most recent revision | Compare with Previous | Blame | View Log