[patch] CONFIG_CPU_CP15 may not be defined

Eugene Teo eteo@redhat.com
Wed Jul 4 16:57:00 GMT 2007


I have tested this on Nokia N800. Kindly commit the patch. Thanks.

Eugene

diff -uprN src.default/runtime/ChangeLog src/runtime/ChangeLog
--- src.default/runtime/ChangeLog       2007-07-02 15:14:36.000000000 +0800
+++ src/runtime/ChangeLog       2007-07-05 08:15:12.000000000 +0800
@@ -1,3 +1,7 @@
+2007-07-05  Eugene Teo  <eteo@redhat.com>
+
+       * regs.c (_stp_print_regs): #ifdef CONFIG_CPU_CP15 instead.
+
 2007-07-02  Martin Hunt  <hunt@redhat.com>

        * sym.c (_stp_kallsyms_lookup): Improve heuristic
diff -uprN src.default/runtime/regs.c src/runtime/regs.c
--- src.default/runtime/regs.c  2007-06-15 23:19:30.000000000 +0800
+++ src/runtime/regs.c  2007-07-05 08:10:42.000000000 +0800
@@ -253,7 +253,7 @@ void _stp_print_regs(struct pt_regs * re
                processor_modes[processor_mode(regs)],
                thumb_mode(regs) ? " (T)" : "",
                get_fs() == get_ds() ? "kernel" : "user");
-#if CONFIG_CPU_CP15
+#ifdef CONFIG_CPU_CP15
        {
                unsigned int ctrl;
                  __asm__ (




More information about the Systemtap mailing list