summaryrefslogtreecommitdiffstats
path: root/include/object.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-09-18 13:52:58 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-09-18 13:52:58 -0400
commitddc4fbc15223e362896a9f42beca73f05f48e664 (patch)
tree30f8ffc989bc66d9d9e67c7321b3d7a9c46dc130 /include/object.h
parentcfc793e204ba63d281e778a36992b8c86dd0ad88 (diff)
downloadjove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.gz
jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.bz2
jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.zip
move usermode-critical info to include/api
Diffstat (limited to 'include/object.h')
-rw-r--r--include/object.h27
1 files changed, 3 insertions, 24 deletions
diff --git a/include/object.h b/include/object.h
index 4cf5159..255cf98 100644
--- a/include/object.h
+++ b/include/object.h
@@ -3,30 +3,9 @@
#include <stdint.h>
#include <stddef.h>
-
-enum
-{
- /* Generic objects */
- KO_NONE = 0,
- KO_OBJECT_DIRECTORY,
- KO_MEMORY_UNTYPED,
- KO_MEMORY_MAPPING, //4KiB aligned fixed width
- KO_INITRD_FILE,
- KO_TCB,
- KO_MESSAGE,
- /* Device objects*/
- KO_DEV_INVALID = 0x100,
- KO_DEV_PROCESSOR,
- KO_DEV_UART
-};
-
-#define KO_MESSAGE_BYTES 4096
-#define KO_MESSAGE_ALIGN 0x1000
-
-#define KODE_EX_MESSAGE_MAPPED 0b1
+#include "api/object.h"
typedef uint8_t path_byte_t;
-typedef uint16_t obj_type_t;
typedef struct jove_ObjectDirectoryEntry
{
@@ -41,8 +20,6 @@ typedef struct jove_ObjectDirectoryEntry
uintmax_t data;
} objdir_entry_t;
-#define OBJECT_DIRECTORY_MAX_ENTRIES 256
-
typedef struct jove_ObjectDirectory
{
union {
@@ -51,6 +28,8 @@ typedef struct jove_ObjectDirectory
};
} objdir_t;
+#define KODE_EX_MESSAGE_MAPPED 0b1
+
objdir_entry_t *objdir_seek(objdir_t *dir, uint8_t *path, unsigned long pathw);
unsigned long objdir_pathw(objdir_t *dir, uint8_t *path);