diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-17 11:11:20 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-17 11:11:20 -0400 |
| commit | 13adbc58eb9f5eb5d6f0e4454bd005e9adbb47c8 (patch) | |
| tree | a15e55bc70c60d3faa053db3b7b9a17fe75589bc /api | |
| parent | a783cc865f1f261c20f6ef55cb37d4839f519865 (diff) | |
| download | jove-kernel-13adbc58eb9f5eb5d6f0e4454bd005e9adbb47c8.tar.gz jove-kernel-13adbc58eb9f5eb5d6f0e4454bd005e9adbb47c8.tar.bz2 jove-kernel-13adbc58eb9f5eb5d6f0e4454bd005e9adbb47c8.zip | |
make syscall use non-locking mutexes
Diffstat (limited to 'api')
| -rw-r--r-- | api/error.h | 17 | ||||
| -rw-r--r-- | api/init.h | 21 |
2 files changed, 29 insertions, 9 deletions
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 @@ -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 |
