summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2012-11-12 21:53:08 +0100
committerRafaël Carré <funman@videolan.org>2012-11-12 21:53:08 +0100
commit5ed6de3889a2ae285e85becdb23b9845ca79fee4 (patch)
tree1b5d43a0a0f7ed50c83150b6595966910c80a602
parent5ce81fde37b3223236ba69ebeddbe40567e5130e (diff)
downloadrockbox-5ed6de3.tar.gz
rockbox-5ed6de3.zip
AMS: dump ROM content
Change-Id: I171b5f94b8beff571db8da32f28e31428980aaf3
-rw-r--r--apps/debug_menu.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index aec0a9a1a6..ad20fe029f 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1768,6 +1768,18 @@ static bool dbg_save_roms(void)
return false;
}
+#elif CONFIG_CPU == AS3525v2 || CONFIG_CPU == AS3525
+static bool dbg_save_roms(void)
+{
+ int fd = creat("/rom.bin", 0666);
+ if(fd >= 0)
+ {
+ write(fd, (void *)0x80000000, 0x20000);
+ close(fd);
+ }
+
+ return false;
+}
#elif CONFIG_CPU == IMX31L
bool __dbg_dvfs_dptc(void);
static bool dbg_save_roms(void)
@@ -2149,7 +2161,8 @@ static const struct {
} menuitems[] = {
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
(defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \
- CONFIG_CPU == IMX31L || defined(CPU_TCC780X)
+ CONFIG_CPU == IMX31L || defined(CPU_TCC780X) || CONFIG_CPU == AS3525v2 || \
+ CONFIG_CPU == AS3525
{ "Dump ROM contents", dbg_save_roms },
#endif
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \