From a783cc865f1f261c20f6ef55cb37d4839f519865 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 15 Sep 2026 10:03:20 -0400 Subject: move constants to api. centralize interrupts. fix rootdir lock hang --- api/init.h | 18 ++++++++++++++++++ api/obj.h | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 api/init.h (limited to 'api') diff --git a/api/init.h b/api/init.h new file mode 100644 index 0000000..a7de43f --- /dev/null +++ b/api/init.h @@ -0,0 +1,18 @@ +#ifndef _JOVE_API_INIT_H +#define _JOVE_API_INIT_H 1 + +#define ROOTDIR_PROCESSORS_I 0x0 +#define ROOTDIR_PAGEDIR_I 0x01 +#define ROOTDIR_UNTYPED_I 0x02 +#define ROOTDIR_PCB_I 0x03 +#define ROOTDIR_IOPB_I 0x04 +#define ROOTDIR_ACPI_I 0x05 +#define ROOTDIR_INTERRUPTS_I 0x06 +#define ROOTDIR_INITRD_I 0x07 +#define ROOTDIR_MESSAGE_I 0x08 + +#define ROOTDIR_SERIAL_COM_I 0x80 +#define ROOTDIR_FRAMEBUFFER_I 0x81 +#define ROOTDIR_VIRTTERM_I 0x82 + +#endif diff --git a/api/obj.h b/api/obj.h index 64171a2..10f7b65 100644 --- a/api/obj.h +++ b/api/obj.h @@ -10,8 +10,9 @@ enum JOVE_OBJ_OBJDIR, JOVE_OBJ_PAGEDIR, JOVE_OBJ_PROCESSOR, + JOVE_OBJ_ACPI_TABLE, + JOVE_OBJ_INT_HANDLE, JOVE_OBJ_PROCESS, - JOVE_OBJ_PAGEFRAME, JOVE_OBJ_INITRD_FILE, JOVE_OBJ_FRAMEBUFFER, JOVE_OBJ_VIRTTERM, -- cgit v1.2.3