Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
abe30ba8
Verified
Commit
abe30ba8
authored
2 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Add i386 __restore_rt
parent
ece0bd09
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/header/signal/redox.rs
+19
-8
19 additions, 8 deletions
src/header/signal/redox.rs
with
19 additions
and
8 deletions
src/header/signal/redox.rs
+
19
−
8
View file @
abe30ba8
use
core
::
arch
::
global_asm
;
use
core
::
arch
::
global_asm
;
// x8 is register, 119 is SIGRETURN
#[cfg(target_arch
=
"aarch64"
)]
global_asm!
(
"
.global __restore_rt
__restore_rt:
mov x8, #119
svc 0
"
);
// Needs to be defined in assembly because it can't have a function prologue
// Needs to be defined in assembly because it can't have a function prologue
//
r
ax is register, 119 is SIGRETURN
//
e
ax is register, 119 is SIGRETURN
#[cfg(target_arch
=
"x86
_64
"
)]
#[cfg(target_arch
=
"x86"
)]
global_asm!
(
global_asm!
(
"
"
.global __restore_rt
.global __restore_rt
__restore_rt:
__restore_rt:
mov
r
ax, 119
mov
e
ax, 119
syscall
int 0x80
"
"
);
);
// x8 is register, 119 is SIGRETURN
// Needs to be defined in assembly because it can't have a function prologue
#[cfg(target_arch
=
"aarch64"
)]
// rax is register, 119 is SIGRETURN
#[cfg(target_arch
=
"x86_64"
)]
global_asm!
(
global_asm!
(
"
"
.global __restore_rt
.global __restore_rt
__restore_rt:
__restore_rt:
mov x
8
,
#
119
mov
ra
x, 119
s
vc 0
s
yscall
"
"
);
);
...
...
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