aboutsummaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2019-11-26 17:49:32 +0100
committervetch <vetch97@gmail.com>2019-11-26 17:49:32 +0100
commit9487ce965249da010b27034e4903b6ebda4b7641 (patch)
treeef8ff57cc65821e1ec58cd8e57dbdcd49b44bb9e /kernel.c
parent92d10d0a60294e1b9acb4ed0733bb5bcdd5fd7a5 (diff)
downloadrpi-MMU-example-9487ce965249da010b27034e4903b6ebda4b7641.tar.gz
rpi-MMU-example-9487ce965249da010b27034e4903b6ebda4b7641.zip
slight update
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel.c b/kernel.c
index f2e556c..d169ffe 100644
--- a/kernel.c
+++ b/kernel.c
@@ -1,6 +1,7 @@
#include "uart.h"
#include "demo_functionality.h"
#include "paging.h"
+#include "interrupts.h"
void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
{
@@ -18,6 +19,7 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
uart_puts("Hello, kernel World!\r\n");
+ enable_interrupt();
// prints some info
demo_paging_support();
@@ -30,7 +32,8 @@ void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags)
// 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();
-
+
+
while(1);
while (1)