diff --git a/src/platform/x86_64/ipc/signal.c b/src/platform/x86_64/ipc/signal.c index f191fa1..26621fa 100644 --- a/src/platform/x86_64/ipc/signal.c +++ b/src/platform/x86_64/ipc/signal.c @@ -63,4 +63,13 @@ int platformSendSignal(Thread *sender, Thread *dest, int signum, uintptr_t handl *stack = dest->signalTrampoline; return 0; +} + +/* platformSigreturn(): restores context before a signal handler was invoked + * params: t - thread to restore + * returns: nothing + */ + +void platformSigreturn(Thread *t) { + memcpy(t->context, t->signalContext, PLATFORM_CONTEXT_SIZE); } \ No newline at end of file