Skip to content

Commit dc5a755

Browse files
nickdesaulniersgregkh
authored andcommitted
hexagon: work around compiler crash
[ Upstream commit 63e8031 ] Clang cannot translate the string "r30" into a valid register yet. Link: ClangBuiltLinux/linux#755 Link: http://lkml.kernel.org/r/20191028155722.23419-1-ndesaulniers@google.com Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Suggested-by: Sid Manning <sidneym@quicinc.com> Reviewed-by: Brian Cain <bcain@codeaurora.org> Cc: Allison Randal <allison@lohutok.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Richard Fontana <rfontana@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 93814de commit dc5a755

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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)