From 958c58e8231563e9349e4d8ea56c04c25e1501c0 Mon Sep 17 00:00:00 2001 From: Eugeniy Meshcheryakov Date: Sat, 12 Dec 2009 00:56:36 +0100 Subject: Do not use condition_codes() on arm It does not exist in recent kernels. Use regs->ARM_cpsr instead, this should work with all versions of linux found in git repo (versions >=2.6.12-rc2). Difference between condition_codes() and regs->ARM_cpsr should not matter for systemtap. --- runtime/regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/regs.c') diff --git a/runtime/regs.c b/runtime/regs.c index e963affa..61f2f317 100644 --- a/runtime/regs.c +++ b/runtime/regs.c @@ -267,7 +267,7 @@ static const char *processor_modes[]= static void _stp_print_regs(struct pt_regs * regs) { - unsigned long flags = condition_codes(regs); + unsigned long flags = regs->ARM_cpsr; #ifdef CONFIG_SMP _stp_printf(" CPU: %d", smp_processor_id()); -- cgit