aboutsummaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2019-12-10 15:32:22 +0100
committervetch <vetch97@gmail.com>2019-12-10 15:32:22 +0100
commit5662aacc5688bba4873367ed9ab51fb83fbd1feb (patch)
tree429aae32ff3163bf8472fcb52f3ba444c14e374c /kernel.c
parentb0a6351d52af8bdf6fa9cca0d313df323249a520 (diff)
parentc76b34db77f06450ba1c957e87a0b1df3c6c29b4 (diff)
downloadrpi-MMU-example-5662aacc5688bba4873367ed9ab51fb83fbd1feb.tar.gz
rpi-MMU-example-5662aacc5688bba4873367ed9ab51fb83fbd1feb.zip
Merge branch 'bob' of https://repo.or.cz/RPi-MMU-example into alice
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 81d261f..3c2f4f9 100644
--- a/kernel.c
+++ b/kernel.c
@@ -29,6 +29,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();