diff options
| author | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 | 
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2024-01-08 00:21:28 +0300 | 
| commit | 1b6a04ca5504955c571d1c97504fb45ea0befee4 (patch) | |
| tree | 7579f518b23313e8a9748a88ab6173d5e030b227 /vendor/libc/src/unix/bsd/apple/b64/aarch64 | |
| parent | 5ecd8cf2cba827454317368b68571df0d13d7842 (diff) | |
| download | fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.tar.xz fparkan-1b6a04ca5504955c571d1c97504fb45ea0befee4.zip  | |
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
Diffstat (limited to 'vendor/libc/src/unix/bsd/apple/b64/aarch64')
| -rw-r--r-- | vendor/libc/src/unix/bsd/apple/b64/aarch64/align.rs | 55 | ||||
| -rw-r--r-- | vendor/libc/src/unix/bsd/apple/b64/aarch64/mod.rs | 14 | 
2 files changed, 69 insertions, 0 deletions
diff --git a/vendor/libc/src/unix/bsd/apple/b64/aarch64/align.rs b/vendor/libc/src/unix/bsd/apple/b64/aarch64/align.rs new file mode 100644 index 0000000..131e15b --- /dev/null +++ b/vendor/libc/src/unix/bsd/apple/b64/aarch64/align.rs @@ -0,0 +1,55 @@ +pub type mcontext_t = *mut __darwin_mcontext64; + +s_no_extra_traits! { +    #[allow(missing_debug_implementations)] +    pub struct max_align_t { +        priv_: f64 +    } +} + +s! { +    pub struct ucontext_t { +        pub uc_onstack: ::c_int, +        pub uc_sigmask: ::sigset_t, +        pub uc_stack: ::stack_t, +        pub uc_link: *mut ::ucontext_t, +        pub uc_mcsize: usize, +        pub uc_mcontext: mcontext_t, +    } + +    pub struct __darwin_mcontext64 { +        pub __es: __darwin_arm_exception_state64, +        pub __ss: __darwin_arm_thread_state64, +        pub __ns: __darwin_arm_neon_state64, +    } + +    pub struct __darwin_arm_exception_state64 { +        pub __far: u64, +        pub __esr: u32, +        pub __exception: u32, +    } + +    pub struct __darwin_arm_thread_state64 { +        pub __x: [u64; 29], +        pub __fp: u64, +        pub __lr: u64, +        pub __sp: u64, +        pub __pc: u64, +        pub __cpsr: u32, +        pub __pad: u32, +    } + +    // This type natively uses a uint128, but for a while we hacked +    // it in with repr(align) and `[u64; 2]`. uint128 isn't available +    // all the way back to our earliest supported versions so we +    // preserver the old shim. +    #[cfg_attr(not(libc_int128), repr(align(16)))] +    pub struct __darwin_arm_neon_state64 { +        #[cfg(libc_int128)] +        pub __v: [::__uint128_t; 32], +        #[cfg(not(libc_int128))] +        pub __v: [[u64; 2]; 32], +        pub __fpsr: u32, +        pub __fpcr: u32, +    } +} diff --git a/vendor/libc/src/unix/bsd/apple/b64/aarch64/mod.rs b/vendor/libc/src/unix/bsd/apple/b64/aarch64/mod.rs new file mode 100644 index 0000000..79e9ac8 --- /dev/null +++ b/vendor/libc/src/unix/bsd/apple/b64/aarch64/mod.rs @@ -0,0 +1,14 @@ +pub type boolean_t = ::c_int; + +s! { +    pub struct malloc_zone_t { +        __private: [::uintptr_t; 18], // FIXME: needs arm64 auth pointers support +    } +} + +cfg_if! { +    if #[cfg(libc_align)] { +        mod align; +        pub use self::align::*; +    } +}  | 
