Skip to content

Commit 9f34749

Browse files
committed
NetBSD: Fix the type of mcontext_t.__fpregs
Link: https://github.com/NetBSD/src/blob/6017cb90fd7d83ed6e45d93129b12d525978c2fa/sys/arch/amd64/include/mcontext.h#L59-L65 (backport <#4782>) (cherry picked from commit a47db53)
1 parent e5958b8 commit 9f34749

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/unix/bsd/netbsdlike/netbsd/x86_64.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ use crate::PT_FIRSTMACH;
44
pub type c___greg_t = u64;
55
pub type __cpu_simple_lock_nv_t = c_uchar;
66

7+
// FIXME(alignment): Type is `__aligned(8)`
8+
type __fpregset_t = [c_char; 512];
9+
710
s! {
811
pub struct mcontext_t {
912
pub __gregs: [c___greg_t; 26],
1013
pub _mc_tlsbase: c___greg_t,
11-
pub __fpregs: [[c_char; 32]; 16],
14+
pub __fpregs: __fpregset_t,
1215
}
1316

1417
pub struct ucontext_t {

0 commit comments

Comments
 (0)