]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/SetJump.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / X64 / SetJump.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 # 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
8 #
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.
11 #
12 # Module Name:
13 #
14 # SetJump.S
15 #
16 # Abstract:
17 #
18 # Implementation of SetJump() on x86_64
19 #
20 #------------------------------------------------------------------------------
21 #include <EdkIIGlueBase.h>
22 .extern InternalAssertJumpBuffer;
23 .globl ASM_PFX(SetJump)
24 ASM_PFX(SetJump):
25 push %rcx
26 add $0xffffffffffffffe0,%rsp
27 call _InternalAssertJumpBuffer
28 add $0x20,%rsp
29 pop %rcx
30 pop %rdx
31 mov %rbx,(%rcx)
32 mov %rsp,0x8(%rcx)
33 mov %rbp,0x10(%rcx)
34 mov %rdi,0x18(%rcx)
35 mov %rsi,0x20(%rcx)
36 mov %r12,0x28(%rcx)
37 mov %r13,0x30(%rcx)
38 mov %r14,0x38(%rcx)
39 mov %r15,0x40(%rcx)
40 mov %rdx,0x48(%rcx)
41 xor %rax,%rax
42 jmpq *%rdx