[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/sparc

vapier at uclibc.org vapier at uclibc.org
Sat Jul 9 00:47:30 UTC 2005


Author: vapier
Date: 2005-07-08 18:47:30 -0600 (Fri, 08 Jul 2005)
New Revision: 10769

Log:
style updates

Modified:
   trunk/uClibc/libc/sysdeps/linux/sparc/__longjmp.S
   trunk/uClibc/libc/sysdeps/linux/sparc/clone.S
   trunk/uClibc/libc/sysdeps/linux/sparc/crti.S
   trunk/uClibc/libc/sysdeps/linux/sparc/crtn.S
   trunk/uClibc/libc/sysdeps/linux/sparc/setjmp.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/sparc/__longjmp.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/__longjmp.S	2005-07-09 00:36:34 UTC (rev 10768)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/__longjmp.S	2005-07-09 00:47:30 UTC (rev 10769)
@@ -25,29 +25,29 @@
 #define ST_FLUSH_WINDOWS 3
 #define RW_FP [%fp + 0x48]
 
-.global   __longjmp;
-.align 4;
-__longjmp: ; 
-.type __longjmp , at function; 
+.global __longjmp
+.type   __longjmp,%function
+.align 4
+__longjmp:
 
 	/* Store our arguments in global registers so we can still
-	   use them while unwinding frames and their register windows.  */
+	 * use them while unwinding frames and their register windows.  */
 
 	ld ENV(o0,JB_FP), %g3	/* Cache target FP in register %g3.  */
 	mov %o0, %g1		/* ENV in %g1 */
-     	orcc %o1, %g0, %g2	/* VAL in %g2 */
-     	be,a 0f			/* Branch if zero; else skip delay slot.  */
-	 mov 1, %g2		/* Delay slot only hit if zero: VAL = 1.  */
+	orcc %o1, %g0, %g2	/* VAL in %g2 */
+	be,a 0f			/* Branch if zero; else skip delay slot.  */
+	mov 1, %g2		/* Delay slot only hit if zero: VAL = 1.  */
 0:
 	xor %fp, %g3, %o0
 	add %fp, 512, %o1
 	andncc %o0, 4095, %o0
 	bne .Lthread
-	 cmp %o1, %g3
+	cmp %o1, %g3
 	bl .Lthread
 
 	/* Now we will loop, unwinding the register windows up the stack
-	   until the restored %fp value matches the target value in %g3.  */
+	 * until the restored %fp value matches the target value in %g3.  */
 
 .Lloop:
 	cmp %fp, %g3		/* Have we reached the target frame? */
@@ -71,7 +71,7 @@
 	sub	%fp, 64, %sp	/* Allocate a register frame. */
 	st	%g3, RW_FP	/* Set saved FP on restore below. */
 	retl
-	 restore %g2, 0, %o0	/* Restore values from above register frame. */
+	restore %g2, 0, %o0	/* Restore values from above register frame. */
 
 .Lfound:
 	/* We have unwound register windows so %fp matches the target.  */
@@ -82,4 +82,4 @@
 	jmp %o0 + 8		/* Return there.  */
 	 mov %g2, %o0		/* Delay slot: set return value.  */
 
-.size  __longjmp , . -  __longjmp
+.size __longjmp,.-__longjmp

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/clone.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/clone.S	2005-07-09 00:36:34 UTC (rev 10768)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/clone.S	2005-07-09 00:47:30 UTC (rev 10769)
@@ -36,37 +36,38 @@
 	/* sanity check arguments */
 	tst	%i0
 	be	.Lerror
-	 orcc	%i1,%g0,%o1
+	orcc	%i1,%g0,%o1
 	be	.Lerror
-	 mov	%i2,%o0
+	mov	%i2,%o0
 
 	/* Do the system call */
 	set	__NR_clone,%g1
 	ta	0x10
 	bcs	.Lerror
-	 tst	%o1
+	tst	%o1
 	bne	__thread_start
-	 nop
+	nop
 	ret
-	 restore %o0,%g0,%o0
+	restore %o0,%g0,%o0
 
 .Lerror:
 	call	__errno_location
-	 or	%g0,EINVAL,%i0
+	or	%g0,EINVAL,%i0
 	st	%i0,[%o0]
 	ret
-	 restore %g0,-1,%o0
+	restore %g0,-1,%o0
 
-	.size	__clone, .-__clone
+.size __clone,.-__clone
 
-	.type	__thread_start, at function
+.type __thread_start,%function
 
 __thread_start:
 	call	%i0
-	 mov	%i3,%o0
+	mov	%i3,%o0
 	call	_exit,0
-	 nop
+	nop
 
-	.size	__thread_start, .-__thread_start
+.size __thread_start,.-__thread_start
 
-.weak    clone    ;        clone    =   __clone
+.weak clone
+	clone = __clone

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/crti.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/crti.S	2005-07-09 00:36:34 UTC (rev 10768)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/crti.S	2005-07-09 00:47:30 UTC (rev 10769)
@@ -3,7 +3,7 @@
 	.section .init
 	.align 4
 	.global _init
-	.type	_init, #function
+	.type	_init, %function
 	.proc	020
 _init:
 	!#PROLOGUE# 0
@@ -15,12 +15,9 @@
 	.section .fini
 	.align 4
 	.global _fini
-	.type	_fini, #function
+	.type	_fini, %function
 	.proc	020
 _fini:
 	!#PROLOGUE# 0
 	save	%sp, -104, %sp
 	.align 4
-	
-	
-	.ident	"GCC: (GNU) 3.3.2"

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/crtn.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/crtn.S	2005-07-09 00:36:34 UTC (rev 10768)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/crtn.S	2005-07-09 00:47:30 UTC (rev 10769)
@@ -3,7 +3,7 @@
 	.section .init
 	.align 4
 	.global _init
-	.type	_init, #function
+	.type	_init, %function
 	.proc	020
 	ret
 	restore
@@ -12,10 +12,8 @@
 	.section .fini
 	.align 4
 	.global _fini
-	.type	_fini, #function
+	.type	_fini, %function
 	.proc	020
 	ret
 	restore
 	.size	_fini, .-_fini
-	
-	.ident	"GCC: (GNU) 3.3.2"

Modified: trunk/uClibc/libc/sysdeps/linux/sparc/setjmp.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/sparc/setjmp.S	2005-07-09 00:36:34 UTC (rev 10768)
+++ trunk/uClibc/libc/sysdeps/linux/sparc/setjmp.S	2005-07-09 00:47:30 UTC (rev 10769)
@@ -23,35 +23,32 @@
 #include <bits/setjmp.h>
 #define ST_FLUSH_WINDOWS 3
 
-.global   _setjmp;
-.align 4;
-.type  _setjmp , at function; 
-
+.global _setjmp
+.type   _setjmp,%function
+.align 4
 _setjmp: 
 	b	1f
-	 set	0, %o1
-.size _setjmp,.-_setjmp;
+	set	0, %o1
+.size _setjmp,.-_setjmp
 
 
 
 
 
-
-.global   setjmp;
-.align 4;
-.type  setjmp , at function; 
-
+.global setjmp
+.type   setjmp,%function
+.align 4
 setjmp: 
 	set	1, %o1
-.size setjmp,.-setjmp;
+.size setjmp,.-setjmp
 
 
 
 
-.global   __sigsetjmp;
-.align 4;
-.type  __sigsetjmp , at function; 
 
+.global __sigsetjmp
+.type   __sigsetjmp,%function
+.align 4
 __sigsetjmp: 
 1:
 	/* Save our PC, SP and FP.  Save the signal mask if requested with
@@ -64,10 +61,10 @@
 
 	mov	%o7, %g1
 	call	__sigjmp_save
-	 mov	%g1, %o7
-.size __sigsetjmp,.-__sigsetjmp;
+	mov	%g1, %o7
+.size __sigsetjmp,.-__sigsetjmp
 
 
 
-.weak   _setjmp    
-.weak   setjmp  
+.weak _setjmp
+.weak setjmp




More information about the uClibc-cvs mailing list