Skip to main content

kernel/types/
aligned_stack.rs

1// SPDX-License-Identifier: GPL-3.0-only
2//! 16-byte-aligned stack backing storage.
3//!
4//! Authors: MarioS271
5
6/// An `N`-byte array aligned to a 16-byte boundary, for ABI-compliant stack storage.
7#[repr(align(16))]
8pub struct AlignedStack<const N: usize> {
9    pub array: [u8; N]
10}