diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-25 13:55:16 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-25 13:55:16 -0400 |
commit | 2cb274ca77815eab565106d16f2e7592cd5c3650 (patch) | |
tree | ff323c5d0cd8ea4e96fcd6b5826f383957e02b23 /firmware/panic.c | |
parent | 6ffb8ffeeed9aca75c278906785a957d72b3ef57 (diff) | |
download | rockbox-2cb274ca77815eab565106d16f2e7592cd5c3650.tar.gz rockbox-2cb274ca77815eab565106d16f2e7592cd5c3650.zip |
panicf doesn't return so why not tell GCC and $AVE :
Change-Id: I6096576f539bfb02b340b82fabc5019f6756b722
Diffstat (limited to 'firmware/panic.c')
-rw-r--r-- | firmware/panic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c index 3f01689922..7b2c79a872 100644 --- a/firmware/panic.c +++ b/firmware/panic.c | |||
@@ -44,12 +44,13 @@ static char panic_buf[128]; | |||
44 | void panicf_f( const char *fmt, ...); | 44 | void panicf_f( const char *fmt, ...); |
45 | 45 | ||
46 | /* we wrap panicf() here with naked function to catch SP value */ | 46 | /* we wrap panicf() here with naked function to catch SP value */ |
47 | void panicf( const char *fmt, ...) | 47 | void __attribute__((naked)) panicf( const char *fmt, ...) |
48 | { | 48 | { |
49 | (void)fmt; | 49 | (void)fmt; |
50 | asm volatile ("mov r4, sp \n" | 50 | asm volatile ("mov r4, sp \n" |
51 | "b panicf_f \n" | 51 | "b panicf_f \n" |
52 | ); | 52 | ); |
53 | while (1); | ||
53 | } | 54 | } |
54 | 55 | ||
55 | /* | 56 | /* |