mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:57:34 +00:00
Kernel: Move asserts inside platform #if clauses
This commit is contained in:
parent
580006d784
commit
2a4969d281
1 changed files with 4 additions and 3 deletions
|
@ -118,10 +118,11 @@ struct [[gnu::packed]] RegisterState {
|
||||||
|
|
||||||
#if ARCH(I386)
|
#if ARCH(I386)
|
||||||
# define REGISTER_STATE_SIZE (19 * 4)
|
# define REGISTER_STATE_SIZE (19 * 4)
|
||||||
#else
|
|
||||||
# define REGISTER_STATE_SIZE (22 * 8)
|
|
||||||
#endif
|
|
||||||
static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>());
|
static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>());
|
||||||
|
#elif ARCH(X86_64)
|
||||||
|
# define REGISTER_STATE_SIZE (22 * 8)
|
||||||
|
static_assert(AssertSize<RegisterState, REGISTER_STATE_SIZE>());
|
||||||
|
#endif
|
||||||
|
|
||||||
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs)
|
inline void copy_kernel_registers_into_ptrace_registers(PtraceRegisters& ptrace_regs, const RegisterState& kernel_regs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue