Skip to content

Commit 197ebc5

Browse files
committed
linux/aarch64: make mcontext_t.__reserved pub
The `mcontext_t.__reserved` field is documented to contain extra context, such as FP state and the ESR register.
1 parent eda627e commit 197ebc5

File tree

3 files changed

+6
-3
lines changed
  • src/unix/linux_like

3 files changed

+6
-3
lines changed

src/unix/linux_like/android/b64/aarch64/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ s! {
7474
pub sp: c_ulonglong,
7575
pub pc: c_ulonglong,
7676
pub pstate: c_ulonglong,
77-
__reserved: [u64; 512],
77+
_padding: u64,
78+
pub __reserved: [u8; 4096],
7879
}
7980

8081
pub struct user_fpsimd_struct {

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ s! {
219219
pub sp: c_ulonglong,
220220
pub pc: c_ulonglong,
221221
pub pstate: c_ulonglong,
222-
__reserved: [u64; 512],
222+
_padding: u64,
223+
pub __reserved: [u8; 4096],
223224
}
224225

225226
pub struct user_fpsimd_struct {

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ s! {
103103
pub sp: c_ulong,
104104
pub pc: c_ulong,
105105
pub pstate: c_ulong,
106-
__reserved: [u64; 512],
106+
_padding: u64,
107+
pub __reserved: [u8; 4096],
107108
}
108109

109110
#[repr(align(8))]

0 commit comments

Comments
 (0)