kernel: misc fixes

This commit is contained in:
Matheus
2025-12-06 18:48:48 -03:00
parent 9c1c363df4
commit 81f9e758dc
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ bool signal_check(struct thread_t *thread, context_t *context, bool syscall, uin
memset(&sigframe->siginfo, 0, sizeof(siginfo_t));
if (signal == SIGSEGV)
sigframe->siginfo.__si_fields.__sigfault.si_addr = CTX_TRAP_ADDR(context);
sigframe->siginfo.__si_fields.__sigfault.si_addr = (void *)CTX_TRAP_ADDR(context);
if (usercopy_touser(stack, sigframe, ARCH_SIGFRAME_SIZE)) {
printf("signal: bad user stack %p (altstack %p) handling signal %d trapno %lu\n", stack, altstack, signal, sigframe->mcontext.gregs[MCONTEXT_REG_TRAPNO]);