aboutsummaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-03 16:23:18 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-03 16:23:18 +0100
commitc76b34db77f06450ba1c957e87a0b1df3c6c29b4 (patch)
treea89c304fdcbf8650b1262500a3ccea911878b880 /kernel.c
parent401bf03070458cf3a5ee6947bd01a8f397fe2909 (diff)
downloadrpi-MMU-example-c76b34db77f06450ba1c957e87a0b1df3c6c29b4.tar.gz
rpi-MMU-example-c76b34db77f06450ba1c957e87a0b1df3c6c29b4.zip
separate libkernel setus, PL0 code setup and jump to PL0 code into different functions
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel.c b/kernel.c
index f23ef78..1a3b87d 100644
--- a/kernel.c
+++ b/kernel.c
@@ -27,6 +27,12 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
// prints some info and sets upp translation table, turns on MMU
setup_flat_map();
+ demo_setup_libkernel();
+
+ demo_setup_PL0();
+
+ demo_go_unprivileged();
+
// prints some info and sets up a section for PL0 code, loads a blob
// there and jumps to it... never, ever, ever returns
demo_go_unprivileged();