summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/Arch/x86/RegisterState.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Arch/x86/RegisterState.h b/Kernel/Arch/x86/RegisterState.h
index ceb7f3ec73..4affaa55ea 100644
--- a/Kernel/Arch/x86/RegisterState.h
+++ b/Kernel/Arch/x86/RegisterState.h
@@ -118,10 +118,11 @@ struct [[gnu::packed]] RegisterState {
#if ARCH(I386)
# define REGISTER_STATE_SIZE (19 * 4)
-#else
+static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>());
+#elif ARCH(X86_64)
# define REGISTER_STATE_SIZE (22 * 8)
-#endif
static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>());
+#endif
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs)
{