[SPARC]: Fix asm constraints in muldiv.c
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1521.19.1, 2005/01/21 13:59:28-08:00, [email protected] [SPARC]: Fix asm constraints in muldiv.c Signed-off-by: David S. Miller <[email protected]> muldiv.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff -Nru a/arch/sparc/kernel/muldiv.c b/arch/sparc/kernel/muldiv.c --- a/arch/sparc/kernel/muldiv.c 2005-02-01 16:03:31 -08:00 +++ b/arch/sparc/kernel/muldiv.c 2005-02-01 16:03:31 -08:00 @@ -4,6 +4,9 @@ * * Copyright (C) 1996 Jakub Jelinek ([email protected]) * Copyright (C) 1996 David S. Miller ([email protected]) + * + * 2004-12-25 Krzysztof Helt ([email protected]) + * - fixed registers constrains in inline assembly declarations */ #include <linux/kernel.h> @@ -125,7 +128,7 @@ "mov %%o0, %0\n\t" "mov %%o1, %1\n\t" : "=r" (rs1), "=r" (rs2) - : + : "0" (rs1), "1" (rs2) : "o0", "o1", "o2", "o3", "o4", "o5", "o7", "cc"); #ifdef DEBUG_MULDIV printk ("0x%x%08x\n", rs2, rs1); @@ -145,7 +148,7 @@ "mov %%o0, %0\n\t" "mov %%o1, %1\n\t" : "=r" (rs1), "=r" (rs2) - : + : "0" (rs1), "1" (rs2) : "o0", "o1", "o2", "o3", "o4", "o5", "o7", "cc"); #ifdef DEBUG_MULDIV printk ("0x%x%08x\n", rs2, rs1); @@ -174,7 +177,7 @@ "mov %%o1, %0\n\t" "mov %%o0, %1\n\t" : "=r" (rs1), "=r" (rs2) - : "r" (regs->y) + : "r" (regs->y), "0" (rs1), "1" (rs2) : "o0", "o1", "o2", "o3", "o4", "o5", "o7", "g1", "g2", "g3", "cc"); #ifdef DEBUG_MULDIV @@ -203,7 +206,7 @@ "mov %%o1, %0\n\t" "mov %%o0, %1\n\t" : "=r" (rs1), "=r" (rs2) - : "r" (regs->y) + : "r" (regs->y), "0" (rs1), "1" (rs2) : "o0", "o1", "o2", "o3", "o4", "o5", "o7", "g1", "g2", "g3", "cc"); #ifdef DEBUG_MULDIV