summaryrefslogtreecommitdiffstats
path: root/include/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/object.h')
-rw-r--r--include/object.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/object.h b/include/object.h
index c8621ee..4cf5159 100644
--- a/include/object.h
+++ b/include/object.h
@@ -2,17 +2,7 @@
#define _JOVE_OBJECT_H
#include <stdint.h>
-
-enum {
- INIT_OBJECT_ROOTDIR = 0,
- INIT_OBJECT_PAGEMAP,
- INIT_OBJECT_PROCESSOR_DIR,
- INIT_OBJECT_UNTYPED_DIR,
- INIT_OBJECT_INITRD_DIR,
- INIT_OBJECT_TCB,
- INIT_OBJECT_MESSAGE,
- INIT_OBJECT_LOG
-};
+#include <stddef.h>
enum
{
@@ -64,13 +54,18 @@ typedef struct jove_ObjectDirectory
objdir_entry_t *objdir_seek(objdir_t *dir, uint8_t *path, unsigned long pathw);
unsigned long objdir_pathw(objdir_t *dir, uint8_t *path);
+void *ko_entry_data(objdir_entry_t *entry);
+uintptr_t ko_data_toentry(uintptr_t vptr);
+
int ko_message_unmap(objdir_entry_t *message, uintptr_t *saveptr);
int ko_message_remap(objdir_entry_t *message);
void ko_message_move(objdir_entry_t *message, uintptr_t vptr);
+int ko_untyped_split(objdir_entry_t *untyped, objdir_entry_t *dest, size_t bytes);
+
int ko_untyped_retype_objdir(objdir_entry_t *target);
int ko_untyped_retype_memory_mapping(objdir_entry_t *target);
int ko_untyped_retype_tcb(objdir_entry_t *target);
-int ko_untyped_retype_message(objdir_entry_t *target);
+int ko_untyped_retype_message(objdir_entry_t *target, uintptr_t vptr);
#endif