Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c569cac8 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

arch/tile: support new info op generated by compiler



This just syncs the backtracing support in the kernel to the
upstream backtrace library.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 29507663
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -146,7 +146,10 @@ enum {


	CALLER_SP_IN_R52_BASE = 4,
	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
};
};




+4 −0
Original line number Original line Diff line number Diff line
@@ -369,6 +369,10 @@ static void find_caller_pc_and_caller_sp(CallerLocation *location,
					/* Weird; reserved value, ignore it. */
					/* Weird; reserved value, ignore it. */
					continue;
					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
				/* Skip info ops which are not in the
				 * "one_ago" mode we want right now.
				 * "one_ago" mode we want right now.