coreboot/src/lib
David Hendricks 560c643e32 Primitive memory test
This adds a generic primitive memory test. We should look into
using tests in src/lib/ramtest.c, but they seem to rely too heavily
on x86 asm and this test has been useful on multiple ARM platforms.

BUG=none
BRANCH=none
TEST=builds and runs on nyan
Signed-off-by: David Hendricks <dhendrix@chromium.org>

Original-Change-Id: Ia0fb4e12bc59bf708be13faf63c346b531eb3aed
Original-Reviewed-on: https://chromium-review.googlesource.com/186309
Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Queue: David Hendricks <dhendrix@chromium.org>
Original-Tested-by: David Hendricks <dhendrix@chromium.org>
(cherry picked from commit e7625c1541)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Conflicts:
	src/lib/Makefile.inc

Change-Id: I34e7aedfd167199fd5db4cd4a766b2b80ddda79b
Reviewed-on: http://review.coreboot.org/8150
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
2015-01-09 16:50:55 +01:00
..
loaders misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
bootmem.c coreboot: introduce notion of bootmem for memory map at boot 2014-03-03 21:47:27 +01:00
bootmode.c ChromeOS: Remove oprom_is_loaded 2014-05-01 15:39:26 +02:00
cbfs.c aarch64: Fix 64-bit pointer related casts 2014-12-09 18:40:09 +01:00
cbfs_core.c lib/cbfs: Use linker symbols over .c include in cbfs.c 2014-11-19 00:13:26 +01:00
cbfs_core.h lib/cbfs: Use linker symbols over .c include in cbfs.c 2014-11-19 00:13:26 +01:00
cbfs_spi.c Provide a common CBFS wrapper for SPI storage 2014-12-30 19:29:47 +01:00
cbmem.c CBMEM console: Fix boards with BROKEN_CAR_MIGRATE 2014-12-16 20:41:02 +01:00
cbmem_common.c CBMEM: Rename utility file 2015-01-07 06:09:42 +01:00
cbmem_console.c CBMEM console: Fix boards with BROKEN_CAR_MIGRATE 2014-12-16 20:41:02 +01:00
clog2.c src/lib/clog2.c: Fix style and clarity, remove some cruft 2014-06-20 08:06:51 +02:00
compute_ip_checksum.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
coreboot_table.c Export board-status info. 2014-11-26 23:18:47 +01:00
debug.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
delay.c
dynamic_cbmem.c CBMEM console: Fix boards with BROKEN_CAR_MIGRATE 2014-12-16 20:41:02 +01:00
edid.c edid: fill reserved bits fields in cb_framebuffer 2014-12-29 11:14:34 +01:00
fallback_boot.c lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcc.c lib: Trivial - drop trailing blank lines at EOF 2014-07-08 13:52:15 +02:00
gcov-glue.c coverage: use boot state callbacks 2013-05-01 07:08:44 +02:00
gcov-io.c Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
gcov-io.h lib: Fix spelling 2013-07-10 20:17:51 +02:00
gcov-iov.h Implement GCC code coverage analysis 2013-01-12 19:09:55 +01:00
generic_dump_spd.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
generic_sdram.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
halt.c Introduce halt() 2014-11-30 12:20:05 +01:00
hardwaremain.c timestamps: Switch from tsc_t to uint64_t 2015-01-05 22:21:49 +01:00
hexdump.c lib/hexdump: Use size_t for length parameter of hexdump32() 2014-05-05 08:59:05 +02:00
jpeg.c Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
jpeg.h Random cosmetic fixes (trivial). 2010-02-22 16:41:49 +00:00
libgcov.c Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00
lzma.c lib/lzma.c: Use header over .c include 2014-11-19 00:13:44 +01:00
lzmadecode.c RISCV: get RISCV to build again 2014-12-04 19:17:51 +01:00
lzmadecode.h Since some people disapprove of white space cleanups mixed in regular commits 2010-04-27 06:56:47 +00:00
Makefile.inc Primitive memory test 2015-01-09 16:50:55 +01:00
malloc.c lib/malloc.c: Remove pre-proc guard around include 2014-11-11 12:33:01 +01:00
memchr.c Add an implementation for the memchr library function 2012-03-09 20:00:53 +01:00
memcmp.c
memcpy.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
memmove.c
memrange.c mtrr: only add prefetchable resources as WRCOMB for VGA devices 2014-02-09 22:08:53 +01:00
memset.c fix compiler warnings (trivial) 2009-01-20 21:40:16 +00:00
primitive_memtest.c Primitive memory test 2015-01-09 16:50:55 +01:00
ramstage_cache.c RELOCATABLE_RAMSTAGE: Fix weak symbols with ramstage_cache 2014-12-28 19:56:58 +01:00
ramtest.c misc: Drop print_ implementation from non-romcc boards 2015-01-09 06:12:22 +01:00
reg_script.c baytrail: add more iosf access functions 2014-05-10 06:31:00 +02:00
rmodule.c x86: provide symmetry between arm for cache_sync_instructions() 2014-12-09 18:40:50 +01:00
rmodule.ld src/lib/rmodule.ld: DISCARD (.note|.note.*) sections 2014-11-12 18:13:37 +01:00
selfboot.c Print segment clean up information only when required. 2014-12-31 05:26:27 +01:00
stack.c stack check: cosmetics 2014-09-12 22:03:53 +02:00
thread.c Possible thread stack implementation. 2014-08-07 23:55:15 +02:00
timer_queue.c coreboot: add timer queue implementation 2013-05-01 07:19:12 +02:00
timestamp.c timestamps: Switch from tsc_t to uint64_t 2015-01-05 22:21:49 +01:00
trace.c GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
version.c Export board-status info. 2014-11-26 23:18:47 +01:00