mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-22 10:59:51 +03:00
Kernel: Move asserts inside platform #if clauses
This commit is contained in:
parent
580006d784
commit
2a4969d281
Notes:
sideshowbarker
2024-07-18 02:45:25 +09:00
Author: https://github.com/jamesmintram Commit: https://github.com/SerenityOS/serenity/commit/2a4969d281a Pull-request: https://github.com/SerenityOS/serenity/pull/10453 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg ✅
@ -118,10 +118,11 @@ struct [[gnu::packed]] RegisterState {
|
||||
|
||||
#if ARCH(I386)
|
||||
# define REGISTER_STATE_SIZE (19 * 4)
|
||||
#else
|
||||
# define REGISTER_STATE_SIZE (22 * 8)
|
||||
#endif
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user