diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-09-26 13:17:41 -0400 |
commit | 2dadbfc899df4179ca70c4ea04f74a5e190c2ae7 (patch) | |
tree | b166aaa9af42406cd07fbaf150f93aefeb2fbe33 /syscall | |
parent | ddc4fbc15223e362896a9f42beca73f05f48e664 (diff) | |
download | jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.tar.gz jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.tar.bz2 jove-kernel-2dadbfc899df4179ca70c4ea04f74a5e190c2ae7.zip |
fix usermode interrupts. add ability to define custom interrupt handlersmain
Diffstat (limited to 'syscall')
-rw-r--r-- | syscall/invoke-untyped.c | 2 | ||||
-rw-r--r-- | syscall/invoke_objdir.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/syscall/invoke-untyped.c b/syscall/invoke-untyped.c index ae9482f..1168d77 100644 --- a/syscall/invoke-untyped.c +++ b/syscall/invoke-untyped.c @@ -70,7 +70,7 @@ s_handle_invoke_untyped_split( }; size_t *split = ko_entry_data(dest_entry); -*untyped -= dest_bytes; + *untyped -= dest_bytes; *split = dest_bytes; #ifdef DBG_SYSCALL diff --git a/syscall/invoke_objdir.c b/syscall/invoke_objdir.c index 8f0a923..86dc40c 100644 --- a/syscall/invoke_objdir.c +++ b/syscall/invoke_objdir.c @@ -36,9 +36,6 @@ s_handle_invoke_objdir_lastmemb( size_t payload_at ) { - path_byte_t *dest; - SYSCALL_PAYLOAD_TAKEP(payload, payload_at, dest, path_byte_t); - uint8_t lastfull = 0; for(int i = 1; i < 256; i++) { if(target_dir->entries[i].type != KO_NONE) lastfull = i; @@ -47,7 +44,7 @@ s_handle_invoke_objdir_lastmemb( #ifdef DBG_SYSCALL klogf("%i\n", lastfull); #endif - *dest = lastfull; + payload[0] = lastfull; return 0; } |