9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f1ba76ba21458461c28d2a690b02dacfcb166530
parent caea963b44dd8501386c632c1ad64c93b7940349
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed, 17 Oct 2018 14:15:54 +0100

[test] Fix test1

Change-Id: Ie6b0840c8316a18fdd58b7d928c2e2aa13b1f416
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Mtest/test1/test.c | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/test/test1/test.c b/test/test1/test.c @@ -1,4 +1,5 @@ #include <assert.h> +#include <stdio.h> #include <stdlib.h> #include <rcode.h> @@ -15,6 +16,7 @@ main(int argc, char *argv[]) for (j = 0; j < 256; j++) { cmd.imm1 = i; cmd.imm2 = j; + bss->cmd = &cmd; dbg("%u\t%u\t", i, j); if (!setjmp(cmd.recover)) rmc(&cmd); @@ -24,12 +26,19 @@ main(int argc, char *argv[]) } void -halt(const char *msg) +halt(void) { abort(); } void +dopanic(void) +{ + printf("%s\n", bss->errstr); + halt(); +} + +void swtch(struct trapframe *fp) { panic("swtch() not implemented");