diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2013-07-18 23:55:35 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2013-11-24 00:10:36 +0100 |
commit | 8e633385912494ff5e871ec4c264d3a7db46fb98 (patch) | |
tree | a8d6b23861969b7df72bb79695ad742082ce2b02 /utils/hwstub/tools/hwstub_shell.cpp | |
parent | 1ed57aaa5049d2bbe4e94bed6674bd405e98a4a5 (diff) | |
download | rockbox-8e633385912494ff5e871ec4c264d3a7db46fb98.tar.gz rockbox-8e633385912494ff5e871ec4c264d3a7db46fb98.zip |
hwstub rk27xx port
Change-Id: I85ac57117911544b65ccd56eb16303e30be67cab
Diffstat (limited to 'utils/hwstub/tools/hwstub_shell.cpp')
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 1e77e511ba..d70fd6dc06 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -826,24 +826,6 @@ int main(int argc, char **argv) | |||
826 | goto Lerr; | 826 | goto Lerr; |
827 | } | 827 | } |
828 | } | 828 | } |
829 | |||
830 | // dump ROM | ||
831 | if(!g_quiet) | ||
832 | { | ||
833 | void *rom = malloc(64 * 1024); | ||
834 | ret = hwstub_rw_mem(&g_hwdev, 1, 0xc0000000, rom, 64 * 1024); | ||
835 | if(ret != 64 * 1024) | ||
836 | { | ||
837 | printf("Cannot read ROM: %d\n", ret); | ||
838 | goto Lerr; | ||
839 | } | ||
840 | |||
841 | printf("ROM successfully read!\n"); | ||
842 | FILE *f = fopen("rom.bin", "wb"); | ||
843 | fwrite(rom, 64 * 1024, 1, f); | ||
844 | fclose(f); | ||
845 | } | ||
846 | |||
847 | /** Init lua */ | 829 | /** Init lua */ |
848 | 830 | ||
849 | // create lua state | 831 | // create lua state |