u-boot/common
Paul Gortmaker 87b22b7787 mem_mtest: fix error reporting, allow escape with ^C
The basic memtest function tries to watch for ^C after each
pattern pass as an escape mechanism, but if things are horribly
wrong, we'll be stuck in an inner loop flooding the console with
error messages and never check for ^C.  To make matters worse,
if the user waits for all the error messages to complete, we
then incorrectly report the test passed without errors.

Adding a check for ^C after any error is printed will give
the end user an escape mechanism from a console flood without
slowing down the overall test speed on a slow processor.

Also, the more extensive memtest quit after just a single error,
which is inconsistent with the normal memtest, and not useful if
if you are doing dynamic environmental impact testing, such as
heating/cooling etc.

Both tests now track the error count and report it properly
at test completion.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
2009-10-18 22:57:06 +02:00
..
bedbug.c common: Move conditional compilation to Makefile 2008-08-13 01:40:38 +02:00
circbuf.c Add support for Siemens SX1 mobile phone; 2004-03-12 00:14:09 +00:00
cmd_ambapp.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_bdinfo.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_bedbug.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_bmp.c video: move extern declarations from C to headers 2009-07-25 23:13:51 +02:00
cmd_boot.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_bootldr.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_bootm.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
cmd_cache.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_console.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
cmd_cplbinfo.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_dataflash_mmc_mux.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_date.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
cmd_dcr.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_df.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_diag.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_display.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_dtt.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_eeprom.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_elf.c Less verbose output when loading vxworks 6.x images 2009-07-27 00:15:53 +02:00
cmd_ext2.c Fix ext2load return code 2009-07-28 22:38:53 +02:00
cmd_fat.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_fdc.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_fdos.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_fdt.c cmd_fdt.c: fix parse of byte streams and strings 2009-09-24 21:57:30 -04:00
cmd_flash.c cmd_flash.c: fix fix compile error for boards with DataFlash 2009-07-19 19:36:14 +02:00
cmd_fpga.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_i2c.c cmd_i2c: bugfix: add missing brace 2009-07-18 10:17:53 +02:00
cmd_ide.c mucmc52, uc101: delete ata@3a00 node, if no CF card is detected 2009-09-25 01:22:13 +02:00
cmd_immap.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_irq.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_itest.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_jffs2.c Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
cmd_license.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_load.c Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
cmd_log.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
cmd_mac.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_mem.c mem_mtest: fix error reporting, allow escape with ^C 2009-10-18 22:57:06 +02:00
cmd_mfsl.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_mgdisk.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_mii.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_misc.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_mmc.c cmd_mmc: make curr_device static 2009-07-17 22:14:41 +02:00
cmd_mp.c 8xxx: Removed CONFIG_NUM_CPUS from 85xx/86xx 2009-08-28 17:12:38 -05:00
cmd_mtdparts.c cmd_mtdparts.c: fix compiler warning in debug code 2009-09-04 22:58:57 +02:00
cmd_nand.c Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
cmd_net.c Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
cmd_nvedit.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_onenand.c nand/onenand: Fix missing argument checking for "markbad" command 2009-07-07 17:58:05 -05:00
cmd_otp.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_pci.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_pcmcia.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_portio.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_reginfo.c ppc4xx: Rework cmd reginfo 2009-10-07 09:15:26 +02:00
cmd_reiser.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_sata.c sata: namespace curr_device variable 2009-07-17 22:15:27 +02:00
cmd_scsi.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_setexpr.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_sf.c Command for accessing serial flash update 2009-07-14 09:46:39 -05:00
cmd_source.c Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
cmd_spi.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_spibootldr.c Blackfin: new spibootldr command 2009-06-14 20:01:04 -04:00
cmd_strings.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_terminal.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
cmd_tsi148.c cmd_tsi148: General cleanup 2009-07-23 21:33:02 +02:00
cmd_ubi.c ubi: help message correction 2009-07-20 23:54:57 +02:00
cmd_ubifs.c Command improvements for ubifs 2009-07-09 13:04:25 +02:00
cmd_universe.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_usb.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_vfd.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_ximg.c General help message cleanup 2009-06-12 20:47:16 +02:00
cmd_yaffs2.c General help message cleanup 2009-06-12 20:47:16 +02:00
command.c General help message cleanup 2009-06-12 20:47:16 +02:00
console.c bugfix CONFIG_SYS_CONSOLE_INFO_QUIET 2009-08-30 21:00:21 +02:00
ddr_spd.c fsl-ddr: add the DDR3 SPD infrastructure 2009-03-30 13:33:50 -05:00
dlmalloc.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
dlmalloc.src * Code cleanup: 2003-06-27 21:31:46 +00:00
env_common.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
env_dataflash.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_eeprom.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
env_embedded.c env: only build env_embedded and envcrc when needed 2009-10-18 22:53:18 +02:00
env_flash.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_mgdisk.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_nand.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_nowhere.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_nvram.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
env_onenand.c Fix compiler warnings after loff_t change 2009-07-27 00:08:50 +02:00
env_sf.c env: kill off default_environment_size 2009-08-09 22:41:42 +02:00
exports.c export SPI functions to standalone apps 2009-08-09 22:34:51 +02:00
fdt_support.c fdt: Fix fdt_pci_dma_ranges handling of 64-bit ranges 2009-08-09 23:13:56 +02:00
flash.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
hush.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
hwconfig.c Add simple hwconfig infrastructure 2009-07-16 22:23:53 +02:00
image.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
iomux.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
kallsyms.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
kgdb.c common/{hush, kgdb, serial}.c: build by COBJS-$(...) in Makefile 2009-02-11 23:05:57 +01:00
lcd.c video: move extern declarations from C to headers 2009-07-25 23:13:51 +02:00
lynxkdi.c Fix implicit declaration of function 'eth_[gs]etenv_enetaddr' 2009-03-28 20:16:16 +01:00
main.c Remove inline qualifier from show_boot_progress() 2009-05-15 22:04:04 +02:00
Makefile env: only build env_embedded and envcrc when needed 2009-10-18 22:53:18 +02:00
memsize.c Sequential accesses to non-existent memory must be synchronized, 2006-11-06 17:06:36 +01:00
miiphyutil.c Cleanup: use constant 2009-10-18 22:41:33 +02:00
modem.c make MODEM SUPPORT generic instead of duplicate it 2009-06-12 20:45:47 +02:00
s_record.c Initial revision 2002-08-17 09:36:01 +00:00
serial.c Conditionally perform common relocation fixups 2009-10-03 10:17:57 +02:00
stdio.c arm/microblaze/nios/nios2/sh: Remove relocation fixups 2009-10-03 10:17:57 +02:00
system_map.c Add support for Linux-like kallsysms 2009-06-12 20:45:48 +02:00
update.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
usb.c usb_scan_devices: fix output with no devices 2009-01-28 19:57:31 +01:00
usb_kbd.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
usb_storage.c Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
xyzModem.c common: fix 'dummy' is used uninitialized in this function warning 2009-07-19 21:37:02 +02:00