Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
8059eda1
Commit
8059eda1
authored
4 years ago
by
Alex Crichton
Browse files
Options
Downloads
Patches
Plain Diff
Add ucontext_t/mcontext_t for aarch64 Android
This ended up just getting copied from Linux as it appears to be the same.
parent
ac09d6df
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/unix/linux_like/android/b64/aarch64/align.rs
+22
-0
22 additions, 0 deletions
src/unix/linux_like/android/b64/aarch64/align.rs
with
22 additions
and
0 deletions
src/unix/linux_like/android/b64/aarch64/align.rs
+
22
−
0
View file @
8059eda1
...
...
@@ -5,3 +5,25 @@ s_no_extra_traits! {
priv_
:
[
f32
;
8
]
}
}
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
{
pub
fault_address
:
::
c_ulonglong
,
pub
regs
:
[::
c_ulonglong
;
31
],
pub
sp
:
::
c_ulonglong
,
pub
pc
:
::
c_ulonglong
,
pub
pstate
:
::
c_ulonglong
,
// nested arrays to get the right size/length while being able to
// auto-derive traits like Debug
__reserved
:
[[
u64
;
32
];
16
],
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment