[Glibc-bsd-commits] r1312 - in trunk/glibc-2.3-head: linuxthreads/kfreebsd/x86_64 sysdeps/kfreebsd/x86_64

Petr Salinger ps-guest at costa.debian.org
Mon Mar 6 09:31:09 UTC 2006


Author: ps-guest
Date: 2006-03-06 09:31:07 +0000 (Mon, 06 Mar 2006)
New Revision: 1312

Modified:
   trunk/glibc-2.3-head/linuxthreads/kfreebsd/x86_64/sysdep-cancel.h
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/start_thread.S
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/syscall.S
   trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h
Log:
[amd64] apply zero-extending


Modified: trunk/glibc-2.3-head/linuxthreads/kfreebsd/x86_64/sysdep-cancel.h
===================================================================
--- trunk/glibc-2.3-head/linuxthreads/kfreebsd/x86_64/sysdep-cancel.h	2006-03-05 00:39:38 UTC (rev 1311)
+++ trunk/glibc-2.3-head/linuxthreads/kfreebsd/x86_64/sysdep-cancel.h	2006-03-06 09:31:07 UTC (rev 1312)
@@ -48,11 +48,11 @@
     RESTSTK_##args							      \
     /* The return value from CENABLE is argument for CDISABLE.  */	      \
     movq %rax, (%rsp);							      \
-    movq $SYS_ify (syscall_name), %rax;					      \
+    movl $SYS_ify (syscall_name), %eax;					      \
     syscall;								      \
     popq %rdi; cfi_adjust_cfa_offset(-8);				      \
     pushfq; cfi_adjust_cfa_offset(8);					      \
-    /* Save %rax since it's the error code from the syscall.  */	      \
+    /* Save %rax since it's the return/error code from the syscall.  */	      \
     movq %rax, 8(%rsp);							      \
     CDISABLE								      \
     popfq; cfi_adjust_cfa_offset(-8);                                         \

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S	2006-03-05 00:39:38 UTC (rev 1311)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/pipe.S	2006-03-06 09:31:07 UTC (rev 1312)
@@ -24,7 +24,7 @@
 	jb SYSCALL_ERROR_LABEL
         movl %eax, 0(%rdi)
         movl %edx, 4(%rdi)
-        xorq %rax, %rax
+        xorl %eax, %eax
 L(pseudo_end):
 	ret
 PSEUDO_END (__pipe)

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/start_thread.S
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/start_thread.S	2006-03-05 00:39:38 UTC (rev 1311)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/start_thread.S	2006-03-06 09:31:07 UTC (rev 1312)
@@ -64,7 +64,7 @@
 	jnz	L(complex)
 
         /* Do the system call.  */
-	movq    $SYS_ify(rfork),%rax
+	movl    $SYS_ify(rfork),%eax
         /* End FDE now, because in the child the unwind info will be
            wrong.  */
         cfi_endproc;
@@ -82,7 +82,7 @@
 
         /* Clear the frame pointer.  The ABI suggests this be done, to mark
            the outermost frame obviously.  */
-        xorq    %rbp, %rbp
+        xorl    %ebp, %ebp
 
 L(thread_start2):
 
@@ -111,12 +111,12 @@
         movq    %rsi,8(%rsp)
 
         /* Block all signals.  */
-        movq    $-1, %rax
+        orq     $-1, %rax
         movq    %rax, 16(%rsp)
         movq    %rax, 24(%rsp)
 
         leaq    16(%rsp), %rsi
-        movq    $SIG_SETMASK, %rdi
+        movl    $SIG_SETMASK, %edi
         movq    %rsi,%rdx
         DO_CALL (sigprocmask, 3)
         jb      L(error)
@@ -145,9 +145,9 @@
         movq    %rax, 0(%rsp)
 
         /* Restore the previous signal mask.  */
-        movq    $SIG_SETMASK, %rdi
+        movl    $SIG_SETMASK, %edi
         leaq    16(%rsp), %rsi
-        movq    $0,%rdx
+        xorl    %edx,%edx
         DO_CALL (sigprocmask, 3)
 
         /* Return the child pid, saved on stack.  */
@@ -164,7 +164,7 @@
         /* Restore the previous signal mask.  */
         movq    $SIG_SETMASK, %rdi
         leaq    16(%rsp), %rsi
-        movq    $0,%rdx
+        xorl    %edx,%edx
         DO_CALL (sigprocmask, 3)
 
 	/* load saved error code */
@@ -181,11 +181,11 @@
 
         /* Clear the frame pointer.  The ABI suggests this be done, to mark
            the outermost frame obviously.  */
-        xorq    %rbp, %rbp
+        xorl    %ebp, %ebp
 
         /* Restore the previous signal mask.  */
         movq    $SIG_SETMASK, %rdi
-        movq    $0,%rdx
+        xorl    %edx,%edx
         DO_CALL (sigprocmask, 3)
 
         addq    $16, %rsp

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/syscall.S
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/syscall.S	2006-03-05 00:39:38 UTC (rev 1311)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/syscall.S	2006-03-06 09:31:07 UTC (rev 1312)
@@ -22,7 +22,7 @@
 	.text
 ENTRY (syscall)
 	movq %rcx, %r10
-	movq $SYS_ify (syscall), %rax
+	movl $SYS_ify (syscall), %eax
 	syscall
 	jb SYSCALL_ERROR_LABEL
 L(pseudo_end):

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h	2006-03-05 00:39:38 UTC (rev 1311)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/x86_64/sysdep.h	2006-03-06 09:31:07 UTC (rev 1312)
@@ -171,7 +171,7 @@
 #undef	DO_CALL
 #define DO_CALL(syscall_name, args)		\
     DOARGS_##args				\
-    movq $SYS_ify (syscall_name), %rax;		\
+    movl $SYS_ify (syscall_name), %eax;		\
     syscall;
 
 #define DOARGS_0 /* nothing */




More information about the Glibc-bsd-commits mailing list