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; \