Skip to content
Snippets Groups Projects
Commit 32770ed9 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Improvements to x86 assembly in redox-exec

parent ebb0507f
No related branches found
No related tags found
No related merge requests found
...@@ -64,10 +64,9 @@ __relibc_internal_fork_wrapper: ...@@ -64,10 +64,9 @@ __relibc_internal_fork_wrapper:
//TODO stmxcsr [esp+16] //TODO stmxcsr [esp+16]
fnstcw [esp+24] fnstcw [esp+24]
mov edi, esp push esp
push edi
call __relibc_internal_fork_impl call __relibc_internal_fork_impl
pop edi pop esp
jmp 2f jmp 2f
.size __relibc_internal_fork_wrapper, . - __relibc_internal_fork_wrapper .size __relibc_internal_fork_wrapper, . - __relibc_internal_fork_wrapper
...@@ -76,13 +75,8 @@ __relibc_internal_fork_wrapper: ...@@ -76,13 +75,8 @@ __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:
mov edi, [esp] // Arguments already on the stack
mov esi, [esp + 4]
push esi
push edi
call __relibc_internal_fork_hook call __relibc_internal_fork_hook
pop edi
pop esi
//TODO ldmxcsr [esp+16] //TODO ldmxcsr [esp+16]
fldcw [esp+24] fldcw [esp+24]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment