aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/ops.h
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2007-03-21 11:02:44 -0400
committerPaul Mackerras <paulus@samba.org>2007-03-26 01:11:20 -0400
commit6a923216aac01d0f3eeea606377b81541f1a2773 (patch)
tree77e88aa9ce939ba895d49c17ca7dcb28fe8672df /arch/powerpc/boot/ops.h
parent3771f2d9a46ca3b57e473afe929196efad7f3aa6 (diff)
[POWERPC] bootwrapper: Add a fatal error helper
Add a macro fatal that calls printf then exit. User must include stdio.h. Typically replaces 3 lines with 1, although I added back some whitespace. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/ops.h')
-rw-r--r--arch/powerpc/boot/ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/ops.h b/arch/powerpc/boot/ops.h
index 93608b772db5..ea5368caca59 100644
--- a/arch/powerpc/boot/ops.h
+++ b/arch/powerpc/boot/ops.h
@@ -158,6 +158,8 @@ static inline void exit(void)
158 platform_ops.exit(); 158 platform_ops.exit();
159 for(;;); 159 for(;;);
160} 160}
161#define fatal(args...) { printf(args); exit(); }
162
161 163
162#define BSS_STACK(size) \ 164#define BSS_STACK(size) \
163 static char _bss_stack[size]; \ 165 static char _bss_stack[size]; \