diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-03 16:23:18 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-03 16:23:18 +0100 |
commit | c76b34db77f06450ba1c957e87a0b1df3c6c29b4 (patch) | |
tree | a89c304fdcbf8650b1262500a3ccea911878b880 /kernel.c | |
parent | 401bf03070458cf3a5ee6947bd01a8f397fe2909 (diff) | |
download | rpi-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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(); |