From 2dadbfc899df4179ca70c4ea04f74a5e190c2ae7 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 26 Sep 2025 13:17:41 -0400 Subject: fix usermode interrupts. add ability to define custom interrupt handlers --- syscall/invoke-untyped.c | 2 +- syscall/invoke_objdir.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'syscall') 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; } -- cgit v1.2.1