Skip to content

Commit

Permalink
arch/tile: support new info op generated by compiler
Browse files Browse the repository at this point in the history
This just syncs the backtracing support in the kernel to the
upstream backtrace library.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Chris Metcalf committed Oct 15, 2010
1 parent 2950766 commit c569cac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/tile/include/asm/backtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ enum {

CALLER_SP_IN_R52_BASE = 4,

CALLER_SP_OFFSET_BASE = 8
CALLER_SP_OFFSET_BASE = 8,

/* Marks the entry point of certain functions. */
ENTRY_POINT_INFO_OP = 16
};


Expand Down
4 changes: 4 additions & 0 deletions arch/tile/kernel/backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ static void find_caller_pc_and_caller_sp(CallerLocation *location,
/* Weird; reserved value, ignore it. */
continue;
}
if (info_operand & ENTRY_POINT_INFO_OP) {
/* This info op is ignored by the backtracer. */
continue;
}

/* Skip info ops which are not in the
* "one_ago" mode we want right now.
Expand Down

0 comments on commit c569cac

Please sign in to comment.