diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 682bcaf456..12d5f435b7 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -86,6 +86,7 @@ | |||
86 | #ifdef IAUDIO_X5 | 86 | #ifdef IAUDIO_X5 |
87 | #include "ds2411.h" | 87 | #include "ds2411.h" |
88 | #endif | 88 | #endif |
89 | #include "hwcompat.h" | ||
89 | 90 | ||
90 | #ifndef SIMULATOR | 91 | #ifndef SIMULATOR |
91 | static bool dbg_list(char *title, int count, int selection_size, | 92 | static bool dbg_list(char *title, int count, int selection_size, |
@@ -405,8 +406,8 @@ static bool dbg_hw_info(void) | |||
405 | { | 406 | { |
406 | #if CONFIG_CPU == SH7034 | 407 | #if CONFIG_CPU == SH7034 |
407 | char buf[32]; | 408 | char buf[32]; |
408 | int bitmask = *(unsigned short*)0x20000fc; | 409 | int bitmask = HW_MASK; |
409 | int rom_version = *(unsigned short*)0x20000fe; | 410 | int rom_version = ROM_VERSION; |
410 | unsigned manu, id; /* flash IDs */ | 411 | unsigned manu, id; /* flash IDs */ |
411 | bool got_id; /* flag if we managed to get the flash IDs */ | 412 | bool got_id; /* flag if we managed to get the flash IDs */ |
412 | unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ | 413 | unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ |
@@ -564,7 +565,7 @@ static bool dbg_hw_info(void) | |||
564 | char buf[32]; | 565 | char buf[32]; |
565 | int button; | 566 | int button; |
566 | int currval = 0; | 567 | int currval = 0; |
567 | int rom_version = *(unsigned short*)0x20000fe; | 568 | int rom_version = ROM_VERSION; |
568 | unsigned manu, id; /* flash IDs */ | 569 | unsigned manu, id; /* flash IDs */ |
569 | bool got_id; /* flag if we managed to get the flash IDs */ | 570 | bool got_id; /* flag if we managed to get the flash IDs */ |
570 | unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ | 571 | unsigned rom_crc = 0xffffffff; /* CRC32 of the boot ROM */ |