[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>
This commit is contained in:
committed by
Paul Mackerras
parent
3771f2d9a4
commit
6a923216aa
@@ -158,6 +158,8 @@ static inline void exit(void)
|
||||
platform_ops.exit();
|
||||
for(;;);
|
||||
}
|
||||
#define fatal(args...) { printf(args); exit(); }
|
||||
|
||||
|
||||
#define BSS_STACK(size) \
|
||||
static char _bss_stack[size]; \
|
||||
|
Reference in New Issue
Block a user