Skip to content

Commit 63e8031

Browse files
nickdesaulnierstorvalds
authored andcommitted
hexagon: work around compiler crash
Clang cannot translate the string "r30" into a valid register yet. Link: ClangBuiltLinux#755 Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Nick Desaulniers <[email protected]> Suggested-by: Sid Manning <[email protected]> Reviewed-by: Brian Cain <[email protected]> Cc: Allison Randal <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Richard Fontana <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 780a0cf commit 63e8031

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/hexagon/kernel/stacktrace.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include <linux/thread_info.h>
1212
#include <linux/module.h>
1313

14-
register unsigned long current_frame_pointer asm("r30");
15-
1614
struct stackframe {
1715
unsigned long fp;
1816
unsigned long rets;
@@ -30,7 +28,7 @@ void save_stack_trace(struct stack_trace *trace)
3028

3129
low = (unsigned long)task_stack_page(current);
3230
high = low + THREAD_SIZE;
33-
fp = current_frame_pointer;
31+
fp = (unsigned long)__builtin_frame_address(0);
3432

3533
while (fp >= low && fp <= (high - sizeof(*frame))) {
3634
frame = (struct stackframe *)fp;

0 commit comments

Comments
 (0)