diff options
author | Robin Getz <robin.getz@analog.com> | 2007-06-21 04:34:08 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-06-21 04:34:08 -0400 |
commit | 669b792c77bbc30e9f4d9c95dbc918dc348c49c2 (patch) | |
tree | 2d8403e9e3cf998eda8465a322261d45e24cd26a /arch/blackfin/mach-bf537 | |
parent | 29440a2b4cd37e32dfe0fa60ef1665775b24dab1 (diff) |
Blackfin arch: Clean up trace buffer handling, No major functional changes.
Turns on trace earlier, so crashes at kernel start should print out a
trace, making things easier to debug.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/head.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/head.S b/arch/blackfin/mach-bf537/head.S index 7d902bbd860f..429c8a1019da 100644 --- a/arch/blackfin/mach-bf537/head.S +++ b/arch/blackfin/mach-bf537/head.S | |||
@@ -30,6 +30,8 @@ | |||
30 | #include <linux/linkage.h> | 30 | #include <linux/linkage.h> |
31 | #include <linux/init.h> | 31 | #include <linux/init.h> |
32 | #include <asm/blackfin.h> | 32 | #include <asm/blackfin.h> |
33 | #include <asm/trace.h> | ||
34 | |||
33 | #if CONFIG_BFIN_KERNEL_CLOCK | 35 | #if CONFIG_BFIN_KERNEL_CLOCK |
34 | #include <asm/mach/mem_init.h> | 36 | #include <asm/mach/mem_init.h> |
35 | #endif | 37 | #endif |
@@ -93,6 +95,10 @@ ENTRY(__start) | |||
93 | M2 = r0; | 95 | M2 = r0; |
94 | M3 = r0; | 96 | M3 = r0; |
95 | 97 | ||
98 | trace_buffer_start(p0,r0); | ||
99 | P0 = R1; | ||
100 | R0 = R1; | ||
101 | |||
96 | /* Turn off the icache */ | 102 | /* Turn off the icache */ |
97 | p0.l = (IMEM_CONTROL & 0xFFFF); | 103 | p0.l = (IMEM_CONTROL & 0xFFFF); |
98 | p0.h = (IMEM_CONTROL >> 16); | 104 | p0.h = (IMEM_CONTROL >> 16); |