aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/load.h
diff options
context:
space:
mode:
authorMarvin Borner2020-04-01 22:58:54 +0200
committerMarvin Borner2020-04-01 22:58:54 +0200
commitce13b28b90e8f7d8083658e083831c6528847099 (patch)
tree54882764e8bdad831c6a787b7c1d5d52d1ae4f48 /src/kernel/fs/load.h
parentf79ada76d2e4056ff5a81b53998d6d2696523d0f (diff)
Static address linking approach for userspace
Kinda works but loading an statically linked binary into memory via kmalloc seems to create a crash which results in a bootloop.
Diffstat (limited to 'src/kernel/fs/load.h')
-rw-r--r--src/kernel/fs/load.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/kernel/fs/load.h b/src/kernel/fs/load.h
new file mode 100644
index 0000000..2adefee
--- /dev/null
+++ b/src/kernel/fs/load.h
@@ -0,0 +1,19 @@
+#ifndef MELVIX_LOAD_H
+#define MELVIX_LOAD_H
+
+#include <stdint.h>
+
+uint32_t userspace;
+
+struct font *font;
+
+struct font {
+ uint16_t font_32[758][32];
+ uint16_t font_24[758][24];
+ uint8_t font_16[758][16];
+ uint16_t cursor[19];
+};
+
+void load_binaries();
+
+#endif