diff options
author | Rafaël Carré <funman@videolan.org> | 2012-11-12 21:53:08 +0100 |
---|---|---|
committer | Rafaël Carré <funman@videolan.org> | 2012-11-12 21:53:08 +0100 |
commit | 5ed6de3889a2ae285e85becdb23b9845ca79fee4 (patch) | |
tree | 1b5d43a0a0f7ed50c83150b6595966910c80a602 | |
parent | 5ce81fde37b3223236ba69ebeddbe40567e5130e (diff) | |
download | rockbox-5ed6de3889a2ae285e85becdb23b9845ca79fee4.tar.gz rockbox-5ed6de3889a2ae285e85becdb23b9845ca79fee4.zip |
AMS: dump ROM content
Change-Id: I171b5f94b8beff571db8da32f28e31428980aaf3
-rw-r--r-- | apps/debug_menu.c | 15 |
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) | |||
1768 | 1768 | ||
1769 | return false; | 1769 | return false; |
1770 | } | 1770 | } |
1771 | #elif CONFIG_CPU == AS3525v2 || CONFIG_CPU == AS3525 | ||
1772 | static bool dbg_save_roms(void) | ||
1773 | { | ||
1774 | int fd = creat("/rom.bin", 0666); | ||
1775 | if(fd >= 0) | ||
1776 | { | ||
1777 | write(fd, (void *)0x80000000, 0x20000); | ||
1778 | close(fd); | ||
1779 | } | ||
1780 | |||
1781 | return false; | ||
1782 | } | ||
1771 | #elif CONFIG_CPU == IMX31L | 1783 | #elif CONFIG_CPU == IMX31L |
1772 | bool __dbg_dvfs_dptc(void); | 1784 | bool __dbg_dvfs_dptc(void); |
1773 | static bool dbg_save_roms(void) | 1785 | static bool dbg_save_roms(void) |
@@ -2149,7 +2161,8 @@ static const struct { | |||
2149 | } menuitems[] = { | 2161 | } menuitems[] = { |
2150 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ | 2162 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \ |
2151 | (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \ | 2163 | (defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \ |
2152 | CONFIG_CPU == IMX31L || defined(CPU_TCC780X) | 2164 | CONFIG_CPU == IMX31L || defined(CPU_TCC780X) || CONFIG_CPU == AS3525v2 || \ |
2165 | CONFIG_CPU == AS3525 | ||
2153 | { "Dump ROM contents", dbg_save_roms }, | 2166 | { "Dump ROM contents", dbg_save_roms }, |
2154 | #endif | 2167 | #endif |
2155 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ | 2168 | #if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \ |