syscall: add task_self, task_get_address_space, and vm_region_kill

This commit is contained in:
2026-02-23 18:43:49 +00:00
parent fd1bc0ad5f
commit 5f0654430d
8 changed files with 533 additions and 28 deletions
+4
View File
@@ -5,6 +5,7 @@
#include <mango/types.h>
extern kern_status_t task_exit(int status);
extern kern_status_t task_self(kern_handle_t *out);
extern kern_status_t task_create(
kern_handle_t parent,
@@ -19,6 +20,9 @@ extern kern_status_t task_create_thread(
uintptr_t *args,
size_t nr_args,
kern_handle_t *out_thread);
extern kern_status_t task_get_address_space(
kern_handle_t task,
kern_handle_t *out);
extern kern_status_t thread_start(kern_handle_t thread);