Commit 5309143d by Yufeng Zhang Committed by Yufeng Zhang

sysv.S (ffi_closure_SYSV): Use x29 as the main CFA reg; update cfi_rel_offset.

libffi/

	* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
	main CFA reg; update cfi_rel_offset.

From-SVN: r208515
parent 3d05d0c0
2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
main CFA reg; update cfi_rel_offset.
2014-02-17 Eric Botcazou <ebotcazou@adacore.com> 2014-02-17 Eric Botcazou <ebotcazou@adacore.com>
PR libffi/60073 PR libffi/60073
......
...@@ -231,13 +231,13 @@ ffi_closure_SYSV: ...@@ -231,13 +231,13 @@ ffi_closure_SYSV:
cfi_rel_offset (x30, 8) cfi_rel_offset (x30, 8)
mov x29, sp mov x29, sp
cfi_def_cfa_register (x29)
sub sp, sp, #ffi_closure_SYSV_FS sub sp, sp, #ffi_closure_SYSV_FS
cfi_adjust_cfa_offset (ffi_closure_SYSV_FS)
stp x21, x22, [x29, #-16] stp x21, x22, [x29, #-16]
cfi_rel_offset (x21, 0) cfi_rel_offset (x21, -16)
cfi_rel_offset (x22, 8) cfi_rel_offset (x22, -8)
/* Load x21 with &call_context. */ /* Load x21 with &call_context. */
mov x21, sp mov x21, sp
...@@ -295,7 +295,7 @@ ffi_closure_SYSV: ...@@ -295,7 +295,7 @@ ffi_closure_SYSV:
cfi_restore (x22) cfi_restore (x22)
mov sp, x29 mov sp, x29
cfi_adjust_cfa_offset (-ffi_closure_SYSV_FS) cfi_def_cfa_register (sp)
ldp x29, x30, [sp], #16 ldp x29, x30, [sp], #16
cfi_adjust_cfa_offset (-16) cfi_adjust_cfa_offset (-16)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment