diff options
author | Eugeniy Meshcheryakov <eugen@debian.org> | 2009-12-12 00:56:36 +0100 |
---|---|---|
committer | Eugeniy Meshcheryakov <eugen@debian.org> | 2009-12-13 18:33:40 +0100 |
commit | 958c58e8231563e9349e4d8ea56c04c25e1501c0 (patch) | |
tree | 3998fe8025b213db24b1e72e155a067e949f0d48 /runtime/regs.c | |
parent | 81bcf6d6dd9ce44667951bf6212b6b3c8febaf31 (diff) | |
download | systemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.tar.gz systemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.tar.xz systemtap-steved-958c58e8231563e9349e4d8ea56c04c25e1501c0.zip |
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.
Diffstat (limited to 'runtime/regs.c')
-rw-r--r-- | runtime/regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |