mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
Kernel/aarch64: Make REGISTER_STATE_SIZE a multiple of 16 bytes
This ensure that the stack pointer also stays 16 byte aligned. This fixes a baremetal issue when getting an exception.
This commit is contained in:
parent
65ed5419ae
commit
55e8ffd122
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,13 @@
|
|||
|
||||
.section .text.vector_table
|
||||
|
||||
#define REGISTER_STATE_SIZE 264
|
||||
// NOTE: This size must be a multiple of 16 bytes, to ensure that the stack pointer
|
||||
// stays 16 byte aligned.
|
||||
#define REGISTER_STATE_SIZE 272
|
||||
#if REGISTER_STATE_SIZE % 16 != 0
|
||||
# error "REGISTER_STATE_SIZE is not a multiple of 16 bytes!"
|
||||
#endif
|
||||
|
||||
#define SPSR_EL1_SLOT (31 * 8)
|
||||
#define ELR_EL1_SLOT (32 * 8)
|
||||
#define SP_EL0_SLOT (33 * 8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue