From ffb2c4adfb8e65e355b39abd39d994eebc649c98 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 3 Jan 2020 04:53:01 +0100 Subject: add (not yet fully working - it can only send through uart now) interrupt-driven uart together with "scheduler" --- PL0_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'PL0_test.c') diff --git a/PL0_test.c b/PL0_test.c index c6cbe18..fed62a2 100644 --- a/PL0_test.c +++ b/PL0_test.c @@ -7,7 +7,9 @@ void PL0_main(void) // implemented correctly, this shall get printed puts("Hello userspace! Type 'f' if you want me to try accessing " "kernel memory!"); - + + + asm volatile("mov r0, #17\n\rsvc #0" ::: "r0"); while (1) { char c = getchar(); -- cgit v1.2.3