[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/libffi/src/powerpc aix_closure.S,1.1,1.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/libffi/src/powerpc aix_closure.S,1.1,1.2 asm.h,1.2,1.3 darwin_closure.S,1.2,1.3 ffi.c,1.2,1.3 ffi_darwin.c,1.4,1.5sysv.S,1.2,1.3 |
Date: |
Thu, 13 Feb 2003 00:41:41 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc
In directory subversions:/tmp/cvs-serv15377/libffi/src/powerpc
Modified Files:
aix_closure.S asm.h darwin_closure.S ffi.c ffi_darwin.c sysv.S
Log Message:
Updates to the powerpc version of libffi from the gcc CVS tree.
Index: aix_closure.S
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/aix_closure.S,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** aix_closure.S 10 May 2002 23:04:40 -0000 1.1
--- aix_closure.S 13 Feb 2003 05:41:38 -0000 1.2
***************
*** 1,5 ****
/* -----------------------------------------------------------------------
! aix_closures.S - Copyright (c) 2002 Free Software Foundation, Inc.
! based on darwin_closures.S
PowerPC Assembly glue.
--- 1,5 ----
/* -----------------------------------------------------------------------
! aix_closure.S - Copyright (c) 2002 2003 Free Software Foundation, Inc.
! based on darwin_closure.S
PowerPC Assembly glue.
***************
*** 107,128 ****
/* 32 Bytes (params) */
/* 104 Bytes (13*8 from FPR) */
! /* 4 Bytes (result)
! /* 164 Bytes */
! stwu r1,-164(r1) /* skip over caller save area */
/* we want to build up an area for the parameters passed */
/* in registers (both floating point and integer) */
! /* we store gpr 3 to gpr 10 (aligned to 4) */
! /* in the parents outgoing area */
! stw r3, 188(r1)
! stw r4, 192(r1)
! stw r5, 196(r1)
! stw r6, 200(r1)
! stw r7, 204(r1)
! stw r8, 208(r1)
! stw r9, 212(r1)
! stw r10, 216(r1)
/* next save fpr 1 to fpr 13 (aligned to 8) */
--- 107,129 ----
/* 32 Bytes (params) */
/* 104 Bytes (13*8 from FPR) */
! /* 8 Bytes (result)
! /* 168 Bytes */
! stwu r1,-176(r1) /* skip over caller save area
! keep stack aligned to 16 */
/* we want to build up an area for the parameters passed */
/* in registers (both floating point and integer) */
! /* we store gpr 3 to gpr 10 (aligned to 4)
! in the parents outgoing area */
! stw r3, 200(r1)
! stw r4, 204(r1)
! stw r5, 208(r1)
! stw r6, 212(r1)
! stw r7, 216(r1)
! stw r8, 220(r1)
! stw r9, 224(r1)
! stw r10, 228(r1)
/* next save fpr 1 to fpr 13 (aligned to 8) */
***************
*** 149,153 ****
/* now load up the pointer to the saved gpr registers */
! addi r5,r1,188
/* now load up the pointer to the saved fpr registers */
--- 150,154 ----
/* now load up the pointer to the saved gpr registers */
! addi r5,r1,200
/* now load up the pointer to the saved fpr registers */
***************
*** 156,160 ****
/* now load up the pointer to the outgoing parameter */
/* stack in the previous frame */
! addi r7,r1,220
/* make the call */
--- 157,161 ----
/* now load up the pointer to the outgoing parameter */
/* stack in the previous frame */
! addi r7,r1,232
/* make the call */
***************
*** 244,248 ****
L..44:
! addi r1,r1,164 /* restore stack pointer */
lwz r0,8(r1) /* get return address */
mtlr r0 /* reset link register */
--- 245,249 ----
L..44:
! addi r1,r1,176 /* restore stack pointer */
lwz r0,8(r1) /* get return address */
mtlr r0 /* reset link register */
Index: asm.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/asm.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
Index: darwin_closure.S
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/darwin_closure.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** darwin_closure.S 6 Feb 2003 01:15:38 -0000 1.2
--- darwin_closure.S 13 Feb 2003 05:41:38 -0000 1.3
***************
*** 42,66 ****
stw r0, 8(r1) /* save the return address */
LCFI0:
! /* 24 Bytes (Linkage Area) */
! /* 32 Bytes (outgoing parameter area, always reserved) */
! /* 104 Bytes (13*8 from FPR) */
! /* 4 Bytes (result)
! /* 164 Bytes */
! stwu r1,-164(r1) /* skip over caller save area */
LCFI1:
/* we want to build up an area for the parameters passed
in registers (both floating point and integer) */
! /* we store gpr 3 to gpr 10 (aligned to 4) */
! /* in the parents outgoing area */
! stw r3, 188(r1)
! stw r4, 192(r1)
! stw r5, 196(r1)
! stw r6, 200(r1)
! stw r7, 204(r1)
! stw r8, 208(r1)
! stw r9, 212(r1)
! stw r10, 216(r1)
/* we save fpr 1 to fpr 13 (aligned to 8) */
--- 42,67 ----
stw r0, 8(r1) /* save the return address */
LCFI0:
! /* 24 Bytes (Linkage Area)
! 32 Bytes (outgoing parameter area, always reserved)
! 104 Bytes (13*8 from FPR)
! 8 Bytes (result)
! 168 Bytes */
! stwu r1,-176(r1) /* skip over caller save area
! keep stack aligned to 16 */
LCFI1:
/* we want to build up an area for the parameters passed
in registers (both floating point and integer) */
! /* we store gpr 3 to gpr 10 (aligned to 4)
! in the parents outgoing area */
! stw r3, 200(r1)
! stw r4, 204(r1)
! stw r5, 208(r1)
! stw r6, 212(r1)
! stw r7, 216(r1)
! stw r8, 220(r1)
! stw r9, 224(r1)
! stw r10, 228(r1)
/* we save fpr 1 to fpr 13 (aligned to 8) */
***************
*** 86,98 ****
addi r4,r1,160
! /* now load up the pointer to the saved gpr registers */
! addi r5,r1,188
/* now load up the pointer to the saved fpr registers */
addi r6,r1,56
! /* now load up the pointer to the outgoing parameter */
! /* stack in the previous frame */
! addi r7,r1,220
/* make the call */
--- 87,99 ----
addi r4,r1,160
! /* now load up the pointer to the saved gpr registers */
! addi r5,r1,200
/* now load up the pointer to the saved fpr registers */
addi r6,r1,56
! /* now load up the pointer to the outgoing parameter
! stack in the previous frame */
! addi r7,r1,232
/* make the call */
***************
*** 183,189 ****
.L44:
! addi r1,r1,164 /* restore stack pointer */
! lwz r0,8(r1) /* get return address */
! mtlr r0 /* reset link register */
blr
--- 184,190 ----
.L44:
! addi r1,r1,176 /* restore stack pointer */
! lwz r0,8(r1) /* get return address */
! mtlr r0 /* reset link register */
blr
***************
*** 224,228 ****
.long L$set$3
.byte 0xe ; DW_CFA_def_cfa_offset
! .byte 164,1 ; uleb128 164
.byte 0x4 ; DW_CFA_advance_loc4
.set L$set$4,LCFI0-LFB1
--- 225,229 ----
.long L$set$3
.byte 0xe ; DW_CFA_def_cfa_offset
! .byte 176,1 ; uleb128 176
.byte 0x4 ; DW_CFA_advance_loc4
.set L$set$4,LCFI0-LFB1
Index: ffi.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/ffi.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
Index: ffi_darwin.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/ffi_darwin.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ffi_darwin.c 6 Feb 2003 01:15:38 -0000 1.4
--- ffi_darwin.c 13 Feb 2003 05:41:38 -0000 1.5
***************
*** 411,446 ****
| saved TOC pointer 4 |
+---------------------------------------+ 24
! | always reserved 8*4=32 (revious GPRs)|
| according to the linkage convention |
! | from AIX |
+---------------------------------------+ 56
! | our FPR area 13*8=104 |
! | f1 |
! | . |
! | f13 |
+---------------------------------------+ 160
! | result area 4 |
! SP current --> +---------------------------------------+ 164 <- parent
frame
! | back chain to caller 4 |
+---------------------------------------+ 168
| saved CR 4 |
! +---------------------------------------+ 172
| saved LR 4 |
! +---------------------------------------+ 176
| reserved for compilers 4 |
! +---------------------------------------+ 180
| reserved for binders 4 |
! +---------------------------------------+ 184
| saved TOC pointer 4 |
! +---------------------------------------+ 188
| always reserved 8*4=32 we store our |
! | GPRs here |
! | r3 |
! | . |
! | r10 |
! +---------------------------------------+ 220
! | PST area, overflow part |
+---------------------------------------+ xxx
! | ???? |
+---------------------------------------+ xxx
--- 411,448 ----
| saved TOC pointer 4 |
+---------------------------------------+ 24
! | always reserved 8*4=32 (previous GPRs)|
| according to the linkage convention |
! | from AIX |
+---------------------------------------+ 56
! | our FPR area 13*8=104 |
! | f1 |
! | . |
! | f13 |
+---------------------------------------+ 160
! | result area 8 |
+---------------------------------------+ 168
+ | alignement to the next multiple of 16 |
+ SP current --> +---------------------------------------+ 176 <- parent
frame
+ | back chain to caller 4 |
+ +---------------------------------------+ 180
| saved CR 4 |
! +---------------------------------------+ 184
| saved LR 4 |
! +---------------------------------------+ 188
| reserved for compilers 4 |
! +---------------------------------------+ 192
| reserved for binders 4 |
! +---------------------------------------+ 196
| saved TOC pointer 4 |
! +---------------------------------------+ 200
| always reserved 8*4=32 we store our |
! | GPRs here |
! | r3 |
! | . |
! | r10 |
! +---------------------------------------+ 232
! | PST area, overflow part |
+---------------------------------------+ xxx
! | ???? |
+---------------------------------------+ xxx
Index: sysv.S
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/src/powerpc/sysv.S,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/libffi/src/powerpc aix_closure.S,1.1,1.2 asm.h,1.2,1.3 darwin_closure.S,1.2,1.3 ffi.c,1.2,1.3 ffi_darwin.c,1.4,1.5sysv.S,1.2,1.3,
Rhys Weatherley <address@hidden> <=