]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X64/SetJump.S
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / SetJump.S
CommitLineData
b1ff428c 1#------------------------------------------------------------------------------\r
2#\r
bb817c56
HT
3# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
4# This program and the accompanying materials\r
b1ff428c 5# are licensed and made available under the terms and conditions of the BSD License\r
6# which accompanies this distribution. The full text of the license may be found at\r
7# http://opensource.org/licenses/bsd-license.php\r
8#\r
9# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11#\r
12# Module Name:\r
13#\r
14# SetJump.S\r
15#\r
16# Abstract:\r
17#\r
18# Implementation of SetJump() on x86_64\r
19#\r
20#------------------------------------------------------------------------------\r
21\r
d5172f91 22ASM_GLOBAL ASM_PFX(SetJump)\r
b1ff428c 23ASM_PFX(SetJump):\r
24 push %rcx\r
25 add $0xffffffffffffffe0,%rsp\r
26 call ASM_PFX(InternalAssertJumpBuffer)\r
27 add $0x20,%rsp\r
28 pop %rcx\r
29 pop %rdx\r
30 mov %rbx,(%rcx)\r
31 mov %rsp,0x8(%rcx)\r
32 mov %rbp,0x10(%rcx)\r
33 mov %rdi,0x18(%rcx)\r
34 mov %rsi,0x20(%rcx)\r
35 mov %r12,0x28(%rcx)\r
36 mov %r13,0x30(%rcx)\r
37 mov %r14,0x38(%rcx)\r
38 mov %r15,0x40(%rcx)\r
39 mov %rdx,0x48(%rcx)\r
63b65a9e 40 # save non-volatile fp registers\r
41 stmxcsr 0x50(%rcx)\r
ebdad7f8 42 movdqu %xmm6, 0x58(%rcx) \r
43 movdqu %xmm7, 0x68(%rcx)\r
44 movdqu %xmm8, 0x78(%rcx)\r
45 movdqu %xmm9, 0x88(%rcx)\r
46 movdqu %xmm10, 0x98(%rcx)\r
47 movdqu %xmm11, 0xA8(%rcx)\r
48 movdqu %xmm12, 0xB8(%rcx)\r
49 movdqu %xmm13, 0xC8(%rcx)\r
50 movdqu %xmm14, 0xD8(%rcx)\r
51 movdqu %xmm15, 0xE8(%rcx) \r
b1ff428c 52 xor %rax,%rax\r
53 jmpq *%rdx\r