Save/Restore xmm6-xmm15 in function setJump/longJump for GAS.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8507 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy
2009-06-10 08:07:37 +00:00
parent 9b9641c6d9
commit 63b65a9e4f
2 changed files with 24 additions and 0 deletions

View File

@@ -37,5 +37,17 @@ ASM_PFX(SetJump):
mov %r14,0x38(%rcx)
mov %r15,0x40(%rcx)
mov %rdx,0x48(%rcx)
# save non-volatile fp registers
stmxcsr 0x50(%rcx)
movdqa %xmm6, 0x58(%rcx)
movdqa %xmm7, 0x68(%rcx)
movdqa %xmm8, 0x78(%rcx)
movdqa %xmm9, 0x88(%rcx)
movdqa %xmm10, 0x98(%rcx)
movdqa %xmm11, 0xA8(%rcx)
movdqa %xmm12, 0xB8(%rcx)
movdqa %xmm13, 0xC8(%rcx)
movdqa %xmm14, 0xD8(%rcx)
movdqa %xmm15, 0xE8(%rcx)
xor %rax,%rax
jmpq *%rdx