diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-11-20 00:01:13 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-11-20 00:01:13 +0000 |
| commit | 577e571958ab43afb9ffd2526811053731e8d7c1 (patch) | |
| tree | c1501bd57b03e4153e42f28b79dab3d4bd3c779e /apps/debug_menu.c | |
| parent | 091c5e37aefcc6cf1ab1f354a7aa0717293d9373 (diff) | |
| download | rockbox-577e571958ab43afb9ffd2526811053731e8d7c1.zip rockbox-577e571958ab43afb9ffd2526811053731e8d7c1.tar.gz rockbox-577e571958ab43afb9ffd2526811053731e8d7c1.tar.bz2 rockbox-577e571958ab43afb9ffd2526811053731e8d7c1.tar.xz | |
Removed startup_io test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4045 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index c56d4cc..5f9c1a7 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1357,30 +1357,6 @@ bool dbg_save_roms(void) return false; } - -/* test code, to be removed later */ -extern union /* defined in main.c */ -{ - unsigned char port8 [512]; - unsigned short port16[256]; - unsigned port32[128]; -} startup_io; - -bool dbg_save_io(void) /* dump the initial I/O space to disk */ -{ - int fd; - - fd = creat("/startup_io.bin", O_WRONLY); - if(fd >= 0) - { - write(fd, (void *)&startup_io, sizeof(startup_io)); - close(fd); - } - - return false; -} -/* end of test code */ - bool debug_menu(void) { int m; @@ -1388,7 +1364,6 @@ bool debug_menu(void) struct menu_items items[] = { { "Dump ROM contents", dbg_save_roms }, - { "Dump startup I/O", dbg_save_io }, { "View I/O ports", dbg_ports }, #ifdef HAVE_LCD_BITMAP #ifdef HAVE_RTC |