]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc86xx/traps.c
Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global
[karo-tx-uboot.git] / cpu / mpc86xx / traps.c
index c84bfbf6aaaad74b0af9fcaaddc22b2818026394..04c2e1331b645c531c1b3a74209f996031e5b1b9 100644 (file)
@@ -34,6 +34,8 @@
 #include <command.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #if defined(CONFIG_CMD_KGDB)
 int (*debugger_exception_handler)(struct pt_regs *) = 0;
 #endif
@@ -50,8 +52,6 @@ extern unsigned long search_exception_table(unsigned long);
 void
 print_backtrace(unsigned long *sp)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        int cnt = 0;
        unsigned long i;