about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/clone.S42
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/socket.S24
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/syscall.S12
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sysdep.h2
4 files changed, 40 insertions, 40 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/clone.S b/sysdeps/unix/sysv/linux/powerpc/clone.S
index d255abfe0f..068b14c538 100644
--- a/sysdeps/unix/sysv/linux/powerpc/clone.S
+++ b/sysdeps/unix/sysv/linux/powerpc/clone.S
@@ -29,45 +29,45 @@
 
 ENTRY(__clone)
 	/* Set up stack frame, save registers.  */
-	stwu 1,-32(1)
-	stw 31,16(1)
-	stw 30,20(1)
+	stwu  %r1,-32(%r1)
+	stw   %r31,16(%r1)
+	stw   %r30,20(%r1)
 
 	/* Check for child_stack == NULL || fn == NULL.  */
-	cmpwi 0,4,0
-	cmpwi 1,3,0
-	cror 2+0*4,2+0*4,2+1*4
-	beq- 0,badargs
+	cmpwi %cr0,%r4,0
+	beq-  %cr0,badargs
+	cmpwi %cr1,%r3,0
+	beq-  %cr1,badargs
 
 	/* Set up stack frame for child.  */
-	addi 4,4,-16
-	clrrwi 4,4,4
-	li 0,0
-	stw 0,0(4)
+	addi  %r4,%r4,-16
+	clrrwi %r4,%r4,4
+	li    %r0,0
+	stw   %r0,0(%r4)
 
 	/* Save new stack, fn, args across syscall.  */
-	mr 30,3		/* Function in r30.  */
-	mr 31,6		/* Arguments in r31.  */
+	mr    %r30,%r3		/* Function in r30.  */
+	mr    %r31,%r6		/* Arguments in r31.  */
 
 	/* 'flags' argument is first parameter to clone syscall. (The other
 	   argument is the stack pointer, already in r4.)  */
-	mr 3,5
+	mr    %r3,%r5
 
 	/* Do the call.  */
 	DO_CALL(SYS_ify(clone))
-	bso- error
-	beq child
+	bso-  error
+	beq   child
 
 	/* Parent.  Restore registers & return.  */
-	lwz 31,16(1)
-	lwz 30,20(1)
-	addi 1,1,32
+	lwz   %r31,16(%r1)
+	lwz   %r30,20(%r1)
+	addi  %r1,%r1,32
 	blr
 
 child:
 	/* Call procedure.  */
-	mtlr 30
-	mr 3,31
+	mtlr  %r30
+	mr    %r3,%r31
 	blrl
 	/* Call _exit with result from procedure.  */
 #ifdef PIC
diff --git a/sysdeps/unix/sysv/linux/powerpc/socket.S b/sysdeps/unix/sysv/linux/powerpc/socket.S
index 12417faac6..305aba9281 100644
--- a/sysdeps/unix/sysv/linux/powerpc/socket.S
+++ b/sysdeps/unix/sysv/linux/powerpc/socket.S
@@ -43,38 +43,38 @@
 
 	.text
 ENTRY(P(__,socket))
-	stwu 1,-48(1)
+	stwu %r1,-48(%r1)
 #if NARGS >= 1
-	stw 3,stackblock(1)
+	stw  %r3,stackblock(%r1)
 #endif
 #if NARGS >= 2
-	stw 4,4+stackblock(1)
+	stw  %r4,4+stackblock(%r1)
 #endif
 #if NARGS >= 3
-	stw 5,8+stackblock(1)
+	stw  %r5,8+stackblock(%r1)
 #endif
 #if NARGS >= 4
-	stw 6,12+stackblock(1)
+	stw  %r6,12+stackblock(%r1)
 #endif
 #if NARGS >= 5
-	stw 7,16+stackblock(1)
+	stw  %r7,16+stackblock(%r1)
 #endif
 #if NARGS >= 6
-	stw 8,20+stackblock(1)
+	stw  %r8,20+stackblock(%r1)
 #endif
 #if NARGS >= 7
-	stw 9,24+stackblock(1)
+	stw  %r9,24+stackblock(%r1)
 #endif
 #if NARGS >= 8
-	stw 10,28+stackblock(1)
+	stw  %r10,28+stackblock(%r1)
 #endif
 #if NARGS >= 9
 #error too many arguments!
 #endif
-	li 3,P(SOCKOP_,socket)
-	addi 4,1,stackblock
+	li   %r3,P(SOCKOP_,socket)
+	addi %r4,%r1,stackblock
 	DO_CALL(SYS_ify(socketcall))
-	addi 1,1,48
+	addi %r1,%r1,48
 	bnslr
 #ifdef PIC
 	b __syscall_error@plt
diff --git a/sysdeps/unix/sysv/linux/powerpc/syscall.S b/sysdeps/unix/sysv/linux/powerpc/syscall.S
index 441dd5d433..2cb548245b 100644
--- a/sysdeps/unix/sysv/linux/powerpc/syscall.S
+++ b/sysdeps/unix/sysv/linux/powerpc/syscall.S
@@ -20,12 +20,12 @@
 
 	.text
 ENTRY (syscall)
-	mr	0,3
-	mr	3,4
-	mr	4,5
-	mr	5,6
-	mr	6,7
-	mr	7,8
+	mr   %r0,%r3
+	mr   %r3,%r4
+	mr   %r4,%r5
+	mr   %r5,%r6
+	mr   %r6,%r7
+	mr   %r7,%r8
 	sc
 	bnslr
 #ifdef PIC
diff --git a/sysdeps/unix/sysv/linux/powerpc/sysdep.h b/sysdeps/unix/sysv/linux/powerpc/sysdep.h
index 6cad9ae087..577809acb8 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sysdep.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sysdep.h
@@ -50,7 +50,7 @@
     b __syscall_error@plt
 #else
 #define PSEUDO(name, syscall_name, args)                                      \
-  .text;								      \
+  .section ".text";							      \
   ENTRY (name)                                                                \
     DO_CALL (SYS_ify (syscall_name));				              \
     bnslr;                                                                    \