diff options
author | James Mintram <me@jamesrm.com> | 2021-10-12 23:31:40 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-14 01:23:08 +0100 |
commit | 2a4969d281a9a9ff213a24a2eaa0c33f24bb5a74 (patch) | |
tree | 8574c9cb0b2b94e3afb56e9346e18ba5b53cceab /Kernel/Arch/x86 | |
parent | 580006d784832bed35fcdb9520435d192386661a (diff) | |
download | serenity-2a4969d281a9a9ff213a24a2eaa0c33f24bb5a74.zip |
Kernel: Move asserts inside platform #if clauses
Diffstat (limited to 'Kernel/Arch/x86')
-rw-r--r-- | Kernel/Arch/x86/RegisterState.h | 5 |
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) { |