summaryrefslogtreecommitdiffstats
path: root/lib/untyped-retype.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-09-04 12:01:44 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-09-04 12:01:44 -0400
commit032a7bc4d79efea100a00cf3464bea3249a07ff6 (patch)
treedab1be8053ac540e4163ffbff850fefa4f22171f /lib/untyped-retype.c
parentd26eb8b54969e79d933a8e20f2725343cd42deab (diff)
downloadjove-kernel-main.tar.gz
jove-kernel-main.tar.bz2
jove-kernel-main.zip
syscall message unmaps upon invokemain
Diffstat (limited to 'lib/untyped-retype.c')
-rw-r--r--lib/untyped-retype.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/untyped-retype.c b/lib/untyped-retype.c
new file mode 100644
index 0000000..70fb4d2
--- /dev/null
+++ b/lib/untyped-retype.c
@@ -0,0 +1,11 @@
+#include <object.h>
+#include <memory.h>
+#include <stddef.h>
+#include <error.h>
+
+int
+ko_untyped_retype_objdir(objdir_entry_t *target)
+{
+ size_t *untyped = ko_entry_data(target);
+ if(*untyped != 0x1000) return -KE_BADSIZE;
+}