Changed alignment.

This commit is contained in:
Maciej Suminski 2013-09-16 09:51:24 +02:00
parent b907e74d37
commit e0f3e2900b
2 changed files with 10 additions and 3 deletions

View File

@ -41,7 +41,7 @@
.text .text
.globl jump_fcontext .globl jump_fcontext
.type jump_fcontext,@function .type jump_fcontext,@function
.align 16 .align 8
jump_fcontext: jump_fcontext:
movq %rbx, (%rdi) /* save RBX */ movq %rbx, (%rdi) /* save RBX */
movq %r12, 0x8(%rdi) /* save R12 */ movq %r12, 0x8(%rdi) /* save R12 */

View File

@ -40,8 +40,12 @@
.text .text
.globl make_fcontext .globl make_fcontext
#ifndef __APPLE__
.type make_fcontext,@function .type make_fcontext,@function
.align 16 #endif
.align 8
make_fcontext: make_fcontext:
leaq -0x58(%rdi), %rax /* reserve space for fcontext_t at top of context stack */ leaq -0x58(%rdi), %rax /* reserve space for fcontext_t at top of context stack */
@ -70,5 +74,8 @@ finish:
xorq %rdi, %rdi /* exit code is zero */ xorq %rdi, %rdi /* exit code is zero */
call _exit@PLT /* exit application */ call _exit@PLT /* exit application */
hlt hlt
.size make_fcontext,.-make_fcontext
#ifndef __APPLE__
.size make_fcontext,.-make_fcontext
#endif