aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2010-08-02 22:42:32 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:25:40 -0400
commit36f217d9df3e6bf8e6ae7647827b485b79dbaf8e (patch)
tree0e80e87501c94a0bf1fa5973956fd2c5c174403f /arch
parent220937b1aa97025a0e2fff0604b00ee6e9b7ccd3 (diff)
MIPS: MTX1: Fix build.
CC arch/mips/alchemy/mtx-1/board_setup.o {standard input}: Assembler messages: {standard input}:263: Error: opcode not supported on this processor: mips1 (mips1) `sync' {standard input}:274: Error: opcode not supported on this processor: mips1 (mips1) `sync' {standard input}:296: Error: opcode not supported on this processor: mips1 (mips1) `sync' [...] Any .set mipsX statement other than .set mips0 at the end of inline assembler is a big fat bug. Introduced by 9482eabeca315c0276ffb50026b7482481b7097b (linux-mips.org) rsp. 32fd6901a6d8d19f94e4de6be4e4b552ab078620 (kernel.org). While at it, fix the same issue in arch/mips/alchemy/devboards/pb1000/board_setup.c arch/mips/alchemy/xxs1500/board_setup.c as well. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/alchemy/devboards/pb1000/board_setup.c5
-rw-r--r--arch/mips/alchemy/mtx-1/board_setup.c5
-rw-r--r--arch/mips/alchemy/xxs1500/board_setup.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/arch/mips/alchemy/devboards/pb1000/board_setup.c b/arch/mips/alchemy/devboards/pb1000/board_setup.c
index 4ef50d86b18..46fdc8c9b99 100644
--- a/arch/mips/alchemy/devboards/pb1000/board_setup.c
+++ b/arch/mips/alchemy/devboards/pb1000/board_setup.c
@@ -49,7 +49,10 @@ static void board_power_off(void)
49{ 49{
50 printk(KERN_ALERT "It's now safe to remove power\n"); 50 printk(KERN_ALERT "It's now safe to remove power\n");
51 while (1) 51 while (1)
52 asm volatile (".set mips3 ; wait ; .set mips1"); 52 asm volatile (
53 " .set mips32 \n"
54 " wait \n"
55 " .set mips0 \n");
53} 56}
54 57
55void __init board_setup(void) 58void __init board_setup(void)
diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
index 52d883d37dd..def1a75d756 100644
--- a/arch/mips/alchemy/mtx-1/board_setup.c
+++ b/arch/mips/alchemy/mtx-1/board_setup.c
@@ -62,7 +62,10 @@ static void mtx1_power_off(void)
62{ 62{
63 printk(KERN_ALERT "It's now safe to remove power\n"); 63 printk(KERN_ALERT "It's now safe to remove power\n");
64 while (1) 64 while (1)
65 asm volatile (".set mips3 ; wait ; .set mips1"); 65 asm volatile (
66 " .set mips32 \n"
67 " wait \n"
68 " .set mips0 \n");
66} 69}
67 70
68void __init board_setup(void) 71void __init board_setup(void)
diff --git a/arch/mips/alchemy/xxs1500/board_setup.c b/arch/mips/alchemy/xxs1500/board_setup.c
index 47b42927607..7868aeab245 100644
--- a/arch/mips/alchemy/xxs1500/board_setup.c
+++ b/arch/mips/alchemy/xxs1500/board_setup.c
@@ -44,7 +44,10 @@ static void xxs1500_power_off(void)
44{ 44{
45 printk(KERN_ALERT "It's now safe to remove power\n"); 45 printk(KERN_ALERT "It's now safe to remove power\n");
46 while (1) 46 while (1)
47 asm volatile (".set mips3 ; wait ; .set mips1"); 47 asm volatile (
48 " .set mips32 \n"
49 " wait \n"
50 " .set mips0 \n");
48} 51}
49 52
50void __init board_setup(void) 53void __init board_setup(void)