From 2fdd8d74712d335f4c4f60ce6f27171025c4bfb0 Mon Sep 17 00:00:00 2001 From: jewelcodes Date: Tue, 26 Nov 2024 14:45:56 -0500 Subject: [PATCH] sched: added signal trampoline and context to thread structure --- src/include/kernel/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/kernel/sched.h b/src/include/kernel/sched.h index bf7a7c0..69ba277 100644 --- a/src/include/kernel/sched.h +++ b/src/include/kernel/sched.h @@ -58,6 +58,7 @@ typedef struct Thread { void *signals; SignalQueue *signalQueue; + uintptr_t signalTrampoline; SyscallRequest syscall; // for when the thread is blocked int exitStatus; // for zombie threads @@ -66,6 +67,7 @@ typedef struct Thread { struct Thread *next; void *context; // platform-specific (page tables, registers, etc) + void *signalContext; uintptr_t highest; } Thread;