Skip to content

Commit

Permalink
sched: added signal trampoline and context to thread structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 26, 2024
1 parent 22fe384 commit 2fdd8d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/kernel/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -66,6 +67,7 @@ typedef struct Thread {

struct Thread *next;
void *context; // platform-specific (page tables, registers, etc)
void *signalContext;

uintptr_t highest;
} Thread;
Expand Down

0 comments on commit 2fdd8d7

Please sign in to comment.