From 577e571958ab43afb9ffd2526811053731e8d7c1 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 20 Nov 2003 00:01:13 +0000 Subject: Removed startup_io test code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4045 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index c56d4cc2c0..5f9c1a7bf9 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 -- cgit v1.2.3