Created
December 18, 2020 13:00
-
-
Save lu-zero/e770b7c3c01277a7ccac51b2af692632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/unix/linux_like/linux/musl/b64/aarch64/align.rs b/src/unix/linux_like/linux/musl/b64/aarch64/align.rs | |
index e114eaecd..637ea4e5a 100644 | |
--- a/src/unix/linux_like/linux/musl/b64/aarch64/align.rs | |
+++ b/src/unix/linux_like/linux/musl/b64/aarch64/align.rs | |
@@ -1,25 +1,27 @@ | |
s_no_extra_traits! { | |
#[allow(missing_debug_implementations)] | |
#[repr(align(16))] | |
pub struct max_align_t { | |
priv_: [f32; 8] | |
} | |
} | |
-s!{ | |
+s! { | |
pub struct ucontext_t { | |
pub uc_flags: ::c_ulong, | |
pub uc_link: *mut ucontext_t, | |
pub uc_stack: ::stack_t, | |
pub uc_sigmask: ::sigset_t, | |
pub uc_mcontext: mcontext_t, | |
} | |
#[repr(align(16))] | |
pub struct mcontext_t { | |
- // What we want here is a single [u64; 36 + 512], but splitting things | |
- // up allows Debug to be auto-derived. | |
- __regs1: [[u64; 18]; 2], // 36 | |
- __regs2: [[u64; 32]; 16], // 512 | |
+ pub fault_address: ::c_ulong; | |
+ pub regs: :: [c_ulong; 31]; | |
+ pub sp: ::c_ulong, | |
+ pub pc: ::c_ulong, | |
+ pub pstate: ::c_ulong, | |
+ pub __reserved: [u128; 256]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment