mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix typo, enforce alignment on the RawPage structure
I think i recall somewhere that an alignment of 16 is required for certain structures in Rust for the RV32 target; since anything could be put in there, let's enforce that.
This commit is contained in:
parent
7ebfdf3ecd
commit
5fa955f507
1 changed files with 2 additions and 2 deletions
|
|
@ -26,14 +26,14 @@ pub struct SwapDescriptor {
|
|||
#[repr(C)]
|
||||
pub struct SwapSourceHeader {
|
||||
pub version: u32,
|
||||
pub parital_nonce: [u8; 8],
|
||||
pub partial_nonce: [u8; 8],
|
||||
pub mac_offset: u32,
|
||||
pub aad_len: u32,
|
||||
// aad is limited to 64 bytes!
|
||||
pub aad: [u8; 64],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[repr(C, align(16))]
|
||||
pub struct RawPage {
|
||||
pub data: [u8; 4096],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue