summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86/TrapFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/x86/TrapFrame.h')
-rw-r--r--Kernel/Arch/x86/TrapFrame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/TrapFrame.h b/Kernel/Arch/x86/TrapFrame.h
index 4a6b1e6143..41c39b1173 100644
--- a/Kernel/Arch/x86/TrapFrame.h
+++ b/Kernel/Arch/x86/TrapFrame.h
@@ -32,7 +32,7 @@ struct TrapFrame {
# define TRAP_FRAME_SIZE (3 * 8)
#endif
-static_assert(TRAP_FRAME_SIZE == sizeof(TrapFrame));
+static_assert(AssertSize<TrapFrame, TRAP_FRAME_SIZE>());
extern "C" void enter_trap_no_irq(TrapFrame* trap) __attribute__((used));
extern "C" void enter_trap(TrapFrame*) __attribute__((used));