mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Test metering, prove that system can resume after a hang error with a range of meter sizes
This commit is contained in:
parent
9d9e7542fc
commit
ac1975a820
14 changed files with 222 additions and 53 deletions
13
test/basic_syscalls/rom/Makefile
Normal file
13
test/basic_syscalls/rom/Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
TOPDIR=../../../
|
||||
PROJECT:=$(shell basename ${PWD})
|
||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/crt0.S
|
||||
all: all_common
|
||||
@# Convert ROM to C file and header
|
||||
@xxd -i ${PROJECT}.bin > ${PROJECT}-header.c
|
||||
@echo "extern unsigned char ${PROJECT}_bin[]; extern int ${PROJECT}_bin_len;" > ${PROJECT}-header.h
|
||||
|
||||
test: test_common
|
||||
clean: clean_common
|
||||
rm -f ${PROJECT}-header.h ${PROJECT}-header.c
|
||||
|
||||
include ${TOPDIR}/apps/makefile.common
|
||||
10
test/basic_syscalls/rom/rom.c
Normal file
10
test/basic_syscalls/rom/rom.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "uvm32_target.h"
|
||||
|
||||
void main(void) {
|
||||
println("Hello world");
|
||||
print("Hello world");
|
||||
printdec(42);
|
||||
printhex(0xDEADBEEF);
|
||||
putc('G');
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue