mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
Compiling with soft-float now ommits storing the FPU registers
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14732 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_setjmp.c,v 1.1.1.1 2004-07-26 16:32:05 obarthel Exp $
|
||||
* $Id: stdlib_setjmp.c,v 1.2 2004-09-27 15:07:20 tfrieden Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -283,6 +283,8 @@ l1: moveml a0@(4:W),d1-d7 | restore all data registers \n\
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#ifdef PPC_FLOATING_POINT_SUPPORT
|
||||
|
||||
__asm(" \n\
|
||||
\n\
|
||||
.text \n\
|
||||
@ -358,6 +360,48 @@ longjmp: \n\
|
||||
blr \n\
|
||||
\n\
|
||||
");
|
||||
#else
|
||||
__asm(" \n\
|
||||
\n\
|
||||
.text \n\
|
||||
.align 2 \n\
|
||||
\n\
|
||||
.globl setjmp \n\
|
||||
\n\
|
||||
setjmp: \n\
|
||||
\n\
|
||||
mflr r10 \n\
|
||||
mfcr r11 \n\
|
||||
mr r12, r1 \n\
|
||||
stmw r10, 0(r3) \n\
|
||||
li r3, 0 \n\
|
||||
blr \n\
|
||||
\n\
|
||||
");
|
||||
|
||||
__asm(" \n\
|
||||
.text \n\
|
||||
.align 2 \n\
|
||||
\n\
|
||||
.globl longjmp \n\
|
||||
\n\
|
||||
longjmp: \n\
|
||||
\n\
|
||||
lmw r10,0(r3) \n\
|
||||
mtlr r10 \n\
|
||||
mtcr r11 \n\
|
||||
mr r1,r12 \n\
|
||||
cmpwi r4, 0 \n\
|
||||
bne 1f \n\
|
||||
li r3,1 \n\
|
||||
blr \n\
|
||||
1: \n\
|
||||
mr r3, r4 \n\
|
||||
blr \n\
|
||||
\n\
|
||||
");
|
||||
|
||||
#endif /* defined PPC_FLOATING_POINT_SUPPORT */
|
||||
|
||||
#endif /* defined STACK_EXTENSION */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user