From 13adbc58eb9f5eb5d6f0e4454bd005e9adbb47c8 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Thu, 17 Sep 2026 11:11:20 -0400 Subject: make syscall use non-locking mutexes --- api/error.h | 17 +++++++++++++++++ api/init.h | 21 ++++++++++++--------- 2 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 api/error.h (limited to 'api') diff --git a/api/error.h b/api/error.h new file mode 100644 index 0000000..229c6c8 --- /dev/null +++ b/api/error.h @@ -0,0 +1,17 @@ +#ifndef _JOVE_API_ERROR_H +#define _JOVE_API_ERROR_H 1 + +#define EBADOBJ 1 +#define EOOB 2 +#define EBADPATH 3 +#define EBADARG 4 +#define ETOOSMALL 5 +#define ETOOBIG 6 +#define EBADSIZE 7 +#define ENOMAP 8 +#define EHASMAP 9 +#define EALIGN 10 +#define EEXIST 11 +#define EBUSY 12 + +#endif diff --git a/api/init.h b/api/init.h index a7de43f..d23327f 100644 --- a/api/init.h +++ b/api/init.h @@ -1,15 +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 +enum { + ROOTDIR_DIR_I = 0, + ROOTDIR_PROCESSORS_I, + ROOTDIR_PAGEDIR_I, + ROOTDIR_UNTYPED_I, + ROOTDIR_PCB_I, + ROOTDIR_IOPB_I, + ROOTDIR_ACPI_I, + ROOTDIR_INTERRUPTS_I, + ROOTDIR_INITRD_I, + ROOTDIR_MESSAGE_I, +}; #define ROOTDIR_SERIAL_COM_I 0x80 #define ROOTDIR_FRAMEBUFFER_I 0x81 -- cgit v1.2.3