From 79b0d059f2afa836406330eec1fff74dc8b9ce8a Mon Sep 17 00:00:00 2001 From: Matheus Date: Fri, 5 Dec 2025 18:21:53 -0300 Subject: [PATCH] context: zero by default --- kernel-src/include/x86-64/arch/context.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel-src/include/x86-64/arch/context.h b/kernel-src/include/x86-64/arch/context.h index 66a4a021..5aa370e6 100644 --- a/kernel-src/include/x86-64/arch/context.h +++ b/kernel-src/include/x86-64/arch/context.h @@ -47,6 +47,7 @@ typedef struct { extern size_t arch_xsave_size; #define CTX_INIT(x,u,interrupts) \ + memset(x, 0, sizeof(context_t)); \ if (u) { \ (x)->cs = 0x23; \ (x)->ds = (x)->es = (x)->ss = 0x1b; \