aboutsummaryrefslogtreecommitdiff
path: root/PL0_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'PL0_test.c')
-rw-r--r--PL0_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/PL0_test.c b/PL0_test.c
index 1b93024..2216436 100644
--- a/PL0_test.c
+++ b/PL0_test.c
@@ -5,6 +5,9 @@ void PL0_main(void)
{
uart_puts("hello PL0! Switching to user mode!\n\r");
+ asm("cps #0b10000\n\r"
+ "isb" ::: "memory");
+
// if all went correct, Success! gets printed
uart_puts("Success!\n\r");