diff options
Diffstat (limited to 'arch/mips/fw/arc/misc.c')
-rw-r--r-- | arch/mips/fw/arc/misc.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/arch/mips/fw/arc/misc.c b/arch/mips/fw/arc/misc.c index f9f5307434c2..19f710117d97 100644 --- a/arch/mips/fw/arc/misc.c +++ b/arch/mips/fw/arc/misc.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org) | 9 | * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org) |
10 | * Copyright (C) 1999 Silicon Graphics, Inc. | 10 | * Copyright (C) 1999 Silicon Graphics, Inc. |
11 | */ | 11 | */ |
12 | #include <linux/compiler.h> | ||
12 | #include <linux/init.h> | 13 | #include <linux/init.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
14 | #include <linux/irqflags.h> | 15 | #include <linux/irqflags.h> |
@@ -19,50 +20,55 @@ | |||
19 | #include <asm/sgialib.h> | 20 | #include <asm/sgialib.h> |
20 | #include <asm/bootinfo.h> | 21 | #include <asm/bootinfo.h> |
21 | 22 | ||
22 | VOID | 23 | VOID __noreturn |
23 | ArcHalt(VOID) | 24 | ArcHalt(VOID) |
24 | { | 25 | { |
25 | bc_disable(); | 26 | bc_disable(); |
26 | local_irq_disable(); | 27 | local_irq_disable(); |
27 | ARC_CALL0(halt); | 28 | ARC_CALL0(halt); |
28 | never: goto never; | 29 | |
30 | unreachable(); | ||
29 | } | 31 | } |
30 | 32 | ||
31 | VOID | 33 | VOID __noreturn |
32 | ArcPowerDown(VOID) | 34 | ArcPowerDown(VOID) |
33 | { | 35 | { |
34 | bc_disable(); | 36 | bc_disable(); |
35 | local_irq_disable(); | 37 | local_irq_disable(); |
36 | ARC_CALL0(pdown); | 38 | ARC_CALL0(pdown); |
37 | never: goto never; | 39 | |
40 | unreachable(); | ||
38 | } | 41 | } |
39 | 42 | ||
40 | /* XXX is this a soft reset basically? XXX */ | 43 | /* XXX is this a soft reset basically? XXX */ |
41 | VOID | 44 | VOID __noreturn |
42 | ArcRestart(VOID) | 45 | ArcRestart(VOID) |
43 | { | 46 | { |
44 | bc_disable(); | 47 | bc_disable(); |
45 | local_irq_disable(); | 48 | local_irq_disable(); |
46 | ARC_CALL0(restart); | 49 | ARC_CALL0(restart); |
47 | never: goto never; | 50 | |
51 | unreachable(); | ||
48 | } | 52 | } |
49 | 53 | ||
50 | VOID | 54 | VOID __noreturn |
51 | ArcReboot(VOID) | 55 | ArcReboot(VOID) |
52 | { | 56 | { |
53 | bc_disable(); | 57 | bc_disable(); |
54 | local_irq_disable(); | 58 | local_irq_disable(); |
55 | ARC_CALL0(reboot); | 59 | ARC_CALL0(reboot); |
56 | never: goto never; | 60 | |
61 | unreachable(); | ||
57 | } | 62 | } |
58 | 63 | ||
59 | VOID | 64 | VOID __noreturn |
60 | ArcEnterInteractiveMode(VOID) | 65 | ArcEnterInteractiveMode(VOID) |
61 | { | 66 | { |
62 | bc_disable(); | 67 | bc_disable(); |
63 | local_irq_disable(); | 68 | local_irq_disable(); |
64 | ARC_CALL0(imode); | 69 | ARC_CALL0(imode); |
65 | never: goto never; | 70 | |
71 | unreachable(); | ||
66 | } | 72 | } |
67 | 73 | ||
68 | LONG | 74 | LONG |