mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Make sure the PCB is aligned on 8 bytes, we may use ldrd/strd to access it,
which may have strong alignment requirements.
This commit is contained in:
parent
3f9d41ed10
commit
3acd1dbcd3
1 changed files with 5 additions and 1 deletions
|
|
@ -81,7 +81,11 @@ struct pcb {
|
|||
struct pcb_arm32 un_32;
|
||||
struct vfp_state pcb_vfpstate; /* VP/NEON state */
|
||||
u_int pcb_vfpcpu; /* VP/NEON last cpu */
|
||||
};
|
||||
} __aligned(8); /*
|
||||
* We need the PCB to be aligned on 8 bytes, as we may
|
||||
* access it using ldrd/strd, and some CPUs require it
|
||||
* to by aligned on 8 bytes.
|
||||
*/
|
||||
|
||||
/*
|
||||
* No additional data for core dumps.
|
||||
|
|
|
|||
Loading…
Reference in a new issue