aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/programs')
-rw-r--r--src/userspace/programs/init.c6
-rw-r--r--src/userspace/programs/root.c2
-rw-r--r--src/userspace/programs/sh.c10
3 files changed, 9 insertions, 9 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c
index e749e2f..6cb80ce 100644
--- a/src/userspace/programs/init.c
+++ b/src/userspace/programs/init.c
@@ -1,9 +1,9 @@
+#include <common.h>
+#include <gui.h>
#include <stdio.h>
#include <stdlib.h>
-#include <common.h>
#include <syscall.h>
#include <unistd.h>
-#include <gui.h>
void test(u8 *data)
{
@@ -21,7 +21,7 @@ void main()
printf("Initializing userspace...\n");
// TODO: Find out, why init gets PID 1 and stops
- syscall_map(MAP_KEYBOARD, (u8)&test);
+ syscall_map(MAP_KEYBOARD, (u32)&test);
// TODO: Fix occasional race conditions with cli/sti
// TODO: Fix scheduler turning off randomly..
diff --git a/src/userspace/programs/root.c b/src/userspace/programs/root.c
index d02f72c..86b8bf7 100644
--- a/src/userspace/programs/root.c
+++ b/src/userspace/programs/root.c
@@ -1,6 +1,6 @@
#include <stdio.h>
-#include <unistd.h>
#include <syscall.h>
+#include <unistd.h>
// This process only exists because it can't crash
void main()
diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c
index fc6b6d6..f8f93f3 100644
--- a/src/userspace/programs/sh.c
+++ b/src/userspace/programs/sh.c
@@ -1,10 +1,10 @@
+#include <common.h>
+#include <gui.h>
+#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
-#include <stddef.h>
-#include <common.h>
-#include <unistd.h>
#include <syscall.h>
-#include <gui.h>
+#include <unistd.h>
void main()
{
@@ -18,4 +18,4 @@ void main()
while (1) {
//printf("A");
};
-}
+} \ No newline at end of file