|
@@ -125,9 +125,12 @@ pub(crate) fn tc_handler_make(major: u32, minor: u32) -> u32 {
|
|
#[macro_export]
|
|
#[macro_export]
|
|
macro_rules! include_bytes_aligned {
|
|
macro_rules! include_bytes_aligned {
|
|
($path:literal) => {{
|
|
($path:literal) => {{
|
|
|
|
+ #[repr(align(32))]
|
|
|
|
+ pub struct Aligned32;
|
|
|
|
+
|
|
#[repr(C)]
|
|
#[repr(C)]
|
|
pub struct Aligned<Bytes: ?Sized> {
|
|
pub struct Aligned<Bytes: ?Sized> {
|
|
- pub _align: [u32; 0],
|
|
|
|
|
|
+ pub _align: [Aligned32; 0],
|
|
pub bytes: Bytes,
|
|
pub bytes: Bytes,
|
|
}
|
|
}
|
|
|
|
|