1 #------------------------------------------------------------------------------
3 # Copyright (c) 2006 - 2008, Intel Corporation
4 # All rights reserved. This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 # Implementation of _LongJump() on x64.
20 #------------------------------------------------------------------------------
22 #------------------------------------------------------------------------------
26 # IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer,
29 #------------------------------------------------------------------------------
30 ASM_GLOBAL ASM_PFX(InternalLongJump)
31 ASM_PFX(InternalLongJump):
41 # load non-volatile fp registers
43 movdqu 0x58(%rcx), %xmm6
44 movdqu 0x68(%rcx), %xmm7
45 movdqu 0x78(%rcx), %xmm8
46 movdqu 0x88(%rcx), %xmm9
47 movdqu 0x98(%rcx), %xmm10
48 movdqu 0xA8(%rcx), %xmm11
49 movdqu 0xB8(%rcx), %xmm12
50 movdqu 0xC8(%rcx), %xmm13
51 movdqu 0xD8(%rcx), %xmm14
52 movdqu 0xE8(%rcx), %xmm15
53 mov %rdx, %rax # set return value