diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-18 13:52:58 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-18 13:52:58 -0400 |
commit | ddc4fbc15223e362896a9f42beca73f05f48e664 (patch) | |
tree | 30f8ffc989bc66d9d9e67c7321b3d7a9c46dc130 /arch/x86_64/syscall | |
parent | cfc793e204ba63d281e778a36992b8c86dd0ad88 (diff) | |
download | jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.gz jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.tar.bz2 jove-kernel-ddc4fbc15223e362896a9f42beca73f05f48e664.zip |
move usermode-critical info to include/api
Diffstat (limited to 'arch/x86_64/syscall')
-rw-r--r-- | arch/x86_64/syscall/invoke-mapping.c | 2 | ||||
-rw-r--r-- | arch/x86_64/syscall/invoke-untyped-retype.c | 2 | ||||
-rw-r--r-- | arch/x86_64/syscall/syscall.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86_64/syscall/invoke-mapping.c b/arch/x86_64/syscall/invoke-mapping.c index 5fde8be..186b420 100644 --- a/arch/x86_64/syscall/invoke-mapping.c +++ b/arch/x86_64/syscall/invoke-mapping.c @@ -2,7 +2,7 @@ #include "arch/x86_64/syscall.h" #include "arch/x86_64/page.h" #include <stddef.h> -#include "error.h" +#include "api/error.h" #include "lock.h" #include "string.h" #include "memory.h" diff --git a/arch/x86_64/syscall/invoke-untyped-retype.c b/arch/x86_64/syscall/invoke-untyped-retype.c index 4db91b9..3057f25 100644 --- a/arch/x86_64/syscall/invoke-untyped-retype.c +++ b/arch/x86_64/syscall/invoke-untyped-retype.c @@ -1,5 +1,5 @@ #include <object.h> -#include <error.h> +#include "api/error.h" int ko_untyped_retype_memory_mapping( diff --git a/arch/x86_64/syscall/syscall.c b/arch/x86_64/syscall/syscall.c index 5582336..7ddd179 100644 --- a/arch/x86_64/syscall/syscall.c +++ b/arch/x86_64/syscall/syscall.c @@ -2,7 +2,7 @@ #include "syscall/handles.h" #include "print.h" #include "lock.h" -#include "error.h" +#include "api/error.h" #include <stddef.h> static inline int @@ -27,7 +27,7 @@ _syscall_handler_arch(objdir_t *root_dir, objdir_entry_t *target, uint8_t *paylo default: klogf("Missing implementation of invoke for type %i\n", target->type); mtx_release(&target->lock); - return -KE_BADTYPE; + return KE_BADTYPE; } } |