forked from len0rd/rockbox
Implement dbg_save_roms for TCC780x.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23408 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aca1d8b50b
commit
ff7931ebd4
1 changed files with 19 additions and 5 deletions
|
|
@ -118,8 +118,8 @@
|
||||||
#include "pmu-target.h"
|
#include "pmu-target.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_USBSTACK
|
#ifdef HAVE_USBSTACK
|
||||||
#include "usb_core.h"
|
#include "usb_core.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*---------------------------------------------------*/
|
/*---------------------------------------------------*/
|
||||||
|
|
@ -1130,8 +1130,8 @@ bool dbg_ports(void)
|
||||||
#if defined(IPOD_ACCESSORY_PROTOCOL)
|
#if defined(IPOD_ACCESSORY_PROTOCOL)
|
||||||
extern unsigned char serbuf[];
|
extern unsigned char serbuf[];
|
||||||
lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x",
|
lcd_putsf(0, line++, "IAP PACKET: %02x %02x %02x %02x %02x %02x %02x %02x",
|
||||||
serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5],
|
serbuf[0], serbuf[1], serbuf[2], serbuf[3], serbuf[4], serbuf[5],
|
||||||
serbuf[6], serbuf[7]);
|
serbuf[6], serbuf[7]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
|
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
|
||||||
|
|
@ -2207,6 +2207,20 @@ static bool dbg_save_roms(void)
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#elif defined(CPU_TCC780X)
|
||||||
|
static bool dbg_save_roms(void)
|
||||||
|
{
|
||||||
|
int fd;
|
||||||
|
|
||||||
|
fd = creat("/eeprom_E0000000-E0001FFF.bin");
|
||||||
|
if (fd >= 0)
|
||||||
|
{
|
||||||
|
write(fd, (void*)0xe0000000, 0x2000);
|
||||||
|
close(fd);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#endif /* CPU */
|
#endif /* CPU */
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
@ -2536,7 +2550,7 @@ struct the_menu_item {
|
||||||
static const struct the_menu_item menuitems[] = {
|
static const struct the_menu_item menuitems[] = {
|
||||||
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
|
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || \
|
||||||
(defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \
|
(defined(CPU_PP) && !(CONFIG_STORAGE & STORAGE_SD)) || \
|
||||||
CONFIG_CPU == IMX31L
|
CONFIG_CPU == IMX31L || defined(CPU_TCC780X)
|
||||||
{ "Dump ROM contents", dbg_save_roms },
|
{ "Dump ROM contents", dbg_save_roms },
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \
|
#if CONFIG_CPU == SH7034 || defined(CPU_COLDFIRE) || defined(CPU_PP) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue