aboutsummaryrefslogtreecommitdiff
path: root/apps/init.c
diff options
context:
space:
mode:
authorMarvin Borner2021-03-14 16:12:44 +0100
committerGitHub2021-03-14 16:12:44 +0100
commit268f3ccdb90ab4b9bd70ca176478797aae97ca05 (patch)
tree2dbc3e52d90dab4aae8021773f09b6b72a74b8cb /apps/init.c
parent4309322f9d2b3e31421a3cc5399ab1f4368e0652 (diff)
parent6dec7db5158447b66f31a3f786ce2916cab83cec (diff)
Added memory management using paging
This was quite a roller-coaster and most things are slower now, but it works and is way more secure. I still need to implement things like shared memory for the WM/GUI system but other than that everything is supported.
Diffstat (limited to 'apps/init.c')
-rw-r--r--apps/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/init.c b/apps/init.c
index 87f0d82..c59e3bf 100644
--- a/apps/init.c
+++ b/apps/init.c
@@ -6,12 +6,14 @@
#include <str.h>
#include <sys.h>
+#include <cpu.h>
+
int main(int argc, char **argv)
{
- (void)argc;
- log("%s loaded\n", argv[0]);
+ UNUSED(argc);
+ UNUSED(argv);
- int wm = exec("/bin/wm", "wm", argv[1], NULL);
+ int wm = exec("/bin/wm", "wm", NULL);
int test = exec("/bin/window", "test", NULL);
return wm + test;