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