svn commit: r204547 - user/jmallett/octeon/lib/libc/mips
Juli Mallett
jmallett at FreeBSD.org
Tue Mar 2 05:40:02 UTC 2010
Author: jmallett
Date: Tue Mar 2 05:40:01 2010
New Revision: 204547
URL: http://svn.freebsd.org/changeset/base/204547
Log:
Revert r204527.
Modified:
user/jmallett/octeon/lib/libc/mips/SYS.h
Modified: user/jmallett/octeon/lib/libc/mips/SYS.h
==============================================================================
--- user/jmallett/octeon/lib/libc/mips/SYS.h Tue Mar 2 01:56:55 2010 (r204546)
+++ user/jmallett/octeon/lib/libc/mips/SYS.h Tue Mar 2 05:40:01 2010 (r204547)
@@ -79,19 +79,10 @@
*/
#ifdef __ABICALLS__
.abicalls
-#if defined (__mips_n64) || defined(__mips_n32)
-# define PIC_PROLOGUE(x,sr) subu sp,sp,8; sd gp, 0(sp); .cpsetup $25, $24, ## x;
-# define PIC_RESTORE ld gp, 0(sp); addu sp,sp,8;
-# define PIC_CALL(l,sr) la sr, _C_LABEL(l); ld gp, 0(sp); addu sp,sp,8; jr sr
-#else
-# define PIC_PROLOGUE(x,sr) .set noreorder; .cpload sr; .set reorder
-# define PIC_RESTORE
+# define PIC_PROLOGUE(x,sr) .set noreorder; .cpload sr; .set reorder
# define PIC_CALL(l,sr) la sr, _C_LABEL(l); jr sr
-#endif
-
#else
# define PIC_PROLOGUE(x,sr)
-# define PIC_RESTORE
# define PIC_CALL(l,sr) j _C_LABEL(l)
#endif
@@ -132,8 +123,6 @@ LEAF(__sys_ ## x); \
PIC_PROLOGUE(x,t9); \
SYSTRAP(x); \
bne a3,zero,err; \
- nop; \
- PIC_RESTORE; \
j ra; \
err: \
PIC_CALL(__cerror,t9); \
More information about the svn-src-user
mailing list