diff options
author | Catalin Patulea <cat@vv.carleton.ca> | 2007-11-20 06:02:05 +0000 |
---|---|---|
committer | Catalin Patulea <cat@vv.carleton.ca> | 2007-11-20 06:02:05 +0000 |
commit | 4c4c9f27b608afa097731bdad1ac2c597c867349 (patch) | |
tree | 8383d8dbfe24d7a46ffe16ac9ecd786768db455c /firmware/target | |
parent | 0a4e217436c48b7a3c9f65efa0da3f741ec5835a (diff) |
m:robe 500i: Fix DSP loader code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15716 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/tms320dm320/dsp-dm320.c | 7 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/dsp_image_helloworld.h | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/tms320dm320/dsp-dm320.c b/firmware/target/arm/tms320dm320/dsp-dm320.c index 673182f3fc..24c0145a01 100644 --- a/firmware/target/arm/tms320dm320/dsp-dm320.c +++ b/firmware/target/arm/tms320dm320/dsp-dm320.c @@ -20,6 +20,7 @@ #include "cpu.h" #include "system.h" #include "debug.h" +#include "string.h" #include "dsp-target.h" /* A "DSP image" is an array of these, terminated by raw_data_size_half = 0. */ @@ -34,7 +35,6 @@ struct dsp_section { #ifdef DEBUG static void dsp_status(void) { - unsigned short addr_7fff = DSP_(0x7fff); unsigned short hpib_ctl = IO_DSPC_HPIB_CONTROL; unsigned short hpib_stat = IO_DSPC_HPIB_STATUS; char buffer1[80], buffer2[80]; @@ -42,9 +42,10 @@ static void dsp_status(void) { DEBUGF("dsp_status(): clkc_hpib=%u clkc_dsp=%u", !!(IO_CLK_MOD0 & (1 << 11)), !!(IO_CLK_MOD0 & (1 << 10))); - DEBUGF("dsp_status(): irq_dsphint=%u scratch_status=0x%04x" + DEBUGF("dsp_status(): irq_dsphint=%u 7fff=%04x scratch_status=%04x" " acked=%04x", - (IO_INTC_IRQ0 >> IRQ_DSPHINT) & 1, DSP_(_status), DSP_(_acked)); + (IO_INTC_IRQ0 >> IRQ_DSPHINT) & 1, DSP_(0x7fff), DSP_(_status), + DSP_(_acked)); #define B(f,w,b,m) if ((w & (1 << b)) == 0) \ strcat(f, "!"); \ strcat(f, #m "|"); diff --git a/firmware/target/arm/tms320dm320/dsp_image_helloworld.h b/firmware/target/arm/tms320dm320/dsp_image_helloworld.h index 2879fcef7c..6cd3352cea 100644 --- a/firmware/target/arm/tms320dm320/dsp_image_helloworld.h +++ b/firmware/target/arm/tms320dm320/dsp_image_helloworld.h @@ -26,5 +26,6 @@ static const struct dsp_section dsp_image_helloworld[] = { /* Symbol table, usable with the DSP_() macro (see dsp-target.h). */
#define _status 0x0000
+#define _acked 0x0000
#endif
|