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
41c1f465
Unverified
Commit
41c1f465
authored
1 year ago
by
uuuvn
Browse files
Options
Downloads
Patches
Plain Diff
Fix misaligned stack pointer on aarch64
parent
3997cd95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/platform/redox/clone.rs
+4
-7
4 additions, 7 deletions
src/platform/redox/clone.rs
src/platform/redox/redox-exec/src/arch/aarch64.rs
+14
-26
14 additions, 26 deletions
src/platform/redox/redox-exec/src/arch/aarch64.rs
with
18 additions
and
33 deletions
src/platform/redox/clone.rs
+
4
−
7
View file @
41c1f465
...
@@ -97,13 +97,10 @@ core::arch::global_asm!(
...
@@ -97,13 +97,10 @@ core::arch::global_asm!(
.p2align 6
.p2align 6
__relibc_internal_rlct_clone_ret:
__relibc_internal_rlct_clone_ret:
# Load registers
# Load registers
ldr x8, [sp], #8
ldp x0, x8, [sp], #16
ldr x0, [sp], #8
ldp x2, x1, [sp], #16
ldr x1, [sp], #8
ldp x4, x3, [sp], #16
ldr x2, [sp], #8
ldr x5, [sp], #16
ldr x3, [sp], #8
ldr x4, [sp], #8
ldr x5, [sp], #8
# Call entry point
# Call entry point
blr x8
blr x8
...
...
This diff is collapsed.
Click to expand it.
src/platform/redox/redox-exec/src/arch/aarch64.rs
+
14
−
26
View file @
41c1f465
...
@@ -50,18 +50,12 @@ core::arch::global_asm!(
...
@@ -50,18 +50,12 @@ core::arch::global_asm!(
.globl __relibc_internal_fork_wrapper
.globl __relibc_internal_fork_wrapper
.type __relibc_internal_fork_wrapper, @function
.type __relibc_internal_fork_wrapper, @function
__relibc_internal_fork_wrapper:
__relibc_internal_fork_wrapper:
str x19, [sp, #-8]!
stp x29, x30, [sp, #-16]!
str x20, [sp, #-8]!
stp x27, x28, [sp, #-16]!
str x21, [sp, #-8]!
stp x25, x26, [sp, #-16]!
str x22, [sp, #-8]!
stp x23, x24, [sp, #-16]!
str x23, [sp, #-8]!
stp x21, x22, [sp, #-16]!
str x24, [sp, #-8]!
stp x19, x20, [sp, #-16]!
str x25, [sp, #-8]!
str x26, [sp, #-8]!
str x27, [sp, #-8]!
str x28, [sp, #-8]!
str x29, [sp, #-8]!
str x30, [sp, #-8]!
sub sp, sp, #32
sub sp, sp, #32
...
@@ -77,8 +71,7 @@ __relibc_internal_fork_wrapper:
...
@@ -77,8 +71,7 @@ __relibc_internal_fork_wrapper:
.globl __relibc_internal_fork_ret
.globl __relibc_internal_fork_ret
.type __relibc_internal_fork_ret, @function
.type __relibc_internal_fork_ret, @function
__relibc_internal_fork_ret:
__relibc_internal_fork_ret:
ldr x0, [sp]
ldp x0, x1, [sp]
ldr x1, [sp, #8]
bl __relibc_internal_fork_hook
bl __relibc_internal_fork_hook
//TODO: load floating point regs
//TODO: load floating point regs
...
@@ -88,18 +81,13 @@ __relibc_internal_fork_ret:
...
@@ -88,18 +81,13 @@ __relibc_internal_fork_ret:
.p2align 4
.p2align 4
2:
2:
add sp, sp, #32
add sp, sp, #32
ldr x30, [sp], #8
ldp x19, x20, [sp], #16
ldr x29, [sp], #8
ldp x21, x22, [sp], #16
ldr x28, [sp], #8
ldp x23, x24, [sp], #16
ldr x27, [sp], #8
ldp x25, x26, [sp], #16
ldr x26, [sp], #8
ldp x27, x28, [sp], #16
ldr x25, [sp], #8
ldp x29, x30, [sp], #16
ldr x24, [sp], #8
ldr x23, [sp], #8
ldr x22, [sp], #8
ldr x21, [sp], #8
ldr x20, [sp], #8
ldr x19, [sp], #8
ret
ret
.size __relibc_internal_fork_ret, . - __relibc_internal_fork_ret"
.size __relibc_internal_fork_ret, . - __relibc_internal_fork_ret"
...
...
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