Basic memory test

This commit is contained in:
Toby Jaffey 2025-12-11 17:46:20 +00:00
parent 6878c5210f
commit 0ded19d04a
4 changed files with 286 additions and 0 deletions

13
apps/memtest/Makefile Normal file
View file

@ -0,0 +1,13 @@
TOPDIR=../../
PROJECT:=$(shell basename ${PWD})
HEAP_SIZE=$(shell echo "1024 * 1024 * 32" | bc)
OPT=-Os
CFLAGS=-DHEAP_SIZE=${HEAP_SIZE}
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S barr_memtest.c
HOST_EXTRA=-e ${HEAP_SIZE} -i 4294967295
all: all_common
test: test_common
clean: clean_common
include ${TOPDIR}/apps/makefile.common