From 813272cd88cc6c0a1dfbb121d2130fc849042c8a Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 20 Oct 2014 18:54:18 +0200 Subject: 1st userspace programm and partial newlib support! --- kernel/kernel.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index 811f4c1..3372b75 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -18,9 +18,6 @@ uint32_t c1,c2,c3; volatile uint8_t proc; uint32_t cpu_counter[SMP_MAX_PROC]; -volatile int16_t mouse_x; -volatile int16_t mouse_y; - void kernel_ap() { proc++; @@ -35,12 +32,16 @@ void kernel_ap() } } + +volatile int16_t mouse_x; +volatile int16_t mouse_y; + + // // KERNEL MAIN // this is the very heart of our operating system! // - void kernel_main(uint32_t initial_stack, int mp) { @@ -60,7 +61,7 @@ void kernel_main(uint32_t initial_stack, int mp) proc=c1=c2=c3=0; for(int i=0;i