[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1214602486-17080-22-git-send-email-gcosta@redhat.com>
Date: Fri, 27 Jun 2008 18:34:28 -0300
From: Glauber Costa <gcosta@...hat.com>
To: linux-kernel@...r.kernel.org
Cc: tglx@...utronix.de, mingo@...e.hu, x86@...nel.org
Subject: [PATCH 21/39] don't use word-size specifiers in putuser files
remove them where unambiguous.
Signed-off-by: Glauber Costa <gcosta@...hat.com>
---
arch/x86/lib/putuser_32.S | 28 ++++++++++++++--------------
arch/x86/lib/putuser_64.S | 14 +++++++-------
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/arch/x86/lib/putuser_32.S b/arch/x86/lib/putuser_32.S
index 5b2a926..b67a37c 100644
--- a/arch/x86/lib/putuser_32.S
+++ b/arch/x86/lib/putuser_32.S
@@ -33,44 +33,44 @@
.text
ENTRY(__put_user_1)
ENTER
- cmpl TI_addr_limit(%ebx),%ecx
+ cmp TI_addr_limit(%ebx),%ecx
jae bad_put_user
1: movb %al,(%ecx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_1)
ENTRY(__put_user_2)
ENTER
- movl TI_addr_limit(%ebx),%ebx
- subl $1,%ebx
- cmpl %ebx,%ecx
+ mov TI_addr_limit(%ebx),%ebx
+ sub $1,%ebx
+ cmp %ebx,%ecx
jae bad_put_user
2: movw %ax,(%ecx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_2)
ENTRY(__put_user_4)
ENTER
- movl TI_addr_limit(%ebx),%ebx
- subl $3,%ebx
- cmpl %ebx,%ecx
+ mov TI_addr_limit(%ebx),%ebx
+ sub $3,%ebx
+ cmp %ebx,%ecx
jae bad_put_user
3: movl %eax,(%ecx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_4)
ENTRY(__put_user_8)
ENTER
- movl TI_addr_limit(%ebx),%ebx
- subl $7,%ebx
- cmpl %ebx,%ecx
+ mov TI_addr_limit(%ebx),%ebx
+ sub $7,%ebx
+ cmp %ebx,%ecx
jae bad_put_user
4: movl %eax,(%ecx)
5: movl %edx,4(%ecx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_8)
diff --git a/arch/x86/lib/putuser_64.S b/arch/x86/lib/putuser_64.S
index 6d7513b..c18fc0f 100644
--- a/arch/x86/lib/putuser_64.S
+++ b/arch/x86/lib/putuser_64.S
@@ -39,10 +39,10 @@
.text
ENTRY(__put_user_1)
ENTER
- cmpq TI_addr_limit(%rbx),%rcx
+ cmp TI_addr_limit(%rbx),%rcx
jae bad_put_user
1: movb %al,(%rcx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_1)
@@ -50,10 +50,10 @@ ENTRY(__put_user_2)
ENTER
mov TI_addr_limit(%rbx),%rbx
sub $1, %rbx
- cmpq %rbx ,%rcx
+ cmp %rbx ,%rcx
jae bad_put_user
2: movw %ax,(%rcx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_2)
@@ -64,7 +64,7 @@ ENTRY(__put_user_4)
cmp %rbx, %rcx
jae bad_put_user
3: movl %eax,(%rcx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_4)
@@ -75,13 +75,13 @@ ENTRY(__put_user_8)
cmp %rbx, %rcx
jae bad_put_user
4: movq %rax,(%rcx)
- xorl %eax,%eax
+ xor %eax,%eax
EXIT
ENDPROC(__put_user_8)
bad_put_user:
CFI_STARTPROC
- movq $(-EFAULT),%rax
+ mov $(-EFAULT),%rax
EXIT
END(bad_put_user)
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists