]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/SetJump.asm
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / X64 / SetJump.asm
1 ; Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
2 ; This program and the accompanying materials
3 ; are licensed and made available under the terms and conditions of the BSD License
4 ; which accompanies this distribution. The full text of the license may be found at
5 ; http://opensource.org/licenses/bsd-license.php
6 ;
7 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9 ;
10 ; Module Name:
11 ;
12 ; SetJump.Asm
13 ;
14 ; Abstract:
15 ;
16 ; Implementation of SetJump() on x64.
17 ;
18 ;------------------------------------------------------------------------------
19
20 .code
21
22 EXTERNDEF InternalAssertJumpBuffer:PROC
23
24 ;------------------------------------------------------------------------------
25 ; UINTN
26 ; EFIAPI
27 ; SetJump (
28 ; OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
29 ; );
30 ;------------------------------------------------------------------------------
31 SetJump PROC
32 push rcx
33 add rsp, -20h
34 call InternalAssertJumpBuffer
35 add rsp, 20h
36 pop rcx
37 pop rdx
38 mov [rcx], rbx
39 mov [rcx + 8], rsp
40 mov [rcx + 10h], rbp
41 mov [rcx + 18h], rdi
42 mov [rcx + 20h], rsi
43 mov [rcx + 28h], r12
44 mov [rcx + 30h], r13
45 mov [rcx + 38h], r14
46 mov [rcx + 40h], r15
47 mov [rcx + 48h], rdx
48 xor rax, rax
49 jmp rdx
50 SetJump ENDP
51
52 END