syscall: task: implement thread_self

This commit is contained in:
2026-03-22 19:02:31 +00:00
parent 86f6c81781
commit 110f625f04
6 changed files with 84 additions and 48 deletions

View File

@@ -10,6 +10,7 @@ static const virt_addr_t syscall_table[] = {
SYSCALL_TABLE_ENTRY(TASK_CREATE, task_create),
SYSCALL_TABLE_ENTRY(TASK_CREATE_THREAD, task_create_thread),
SYSCALL_TABLE_ENTRY(TASK_GET_ADDRESS_SPACE, task_get_address_space),
SYSCALL_TABLE_ENTRY(THREAD_SELF, thread_self),
SYSCALL_TABLE_ENTRY(THREAD_START, thread_start),
SYSCALL_TABLE_ENTRY(THREAD_EXIT, thread_exit),
SYSCALL_TABLE_ENTRY(THREAD_CONFIG_GET, thread_config_get),