]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X64/LongJump.asm
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / X64 / LongJump.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; LongJump.Asm\r
13;\r
14; Abstract:\r
15;\r
16; Implementation of _LongJump() on x64.\r
17;\r
18;------------------------------------------------------------------------------\r
19\r
20 .code\r
21\r
22;------------------------------------------------------------------------------\r
23; VOID\r
24; EFIAPI\r
25; InternalLongJump (\r
26; IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer,\r
27; IN UINTN Value\r
28; );\r
29;------------------------------------------------------------------------------\r
30InternalLongJump PROC\r
31 mov rbx, [rcx]\r
32 mov rsp, [rcx + 8]\r
33 mov rbp, [rcx + 10h]\r
34 mov rdi, [rcx + 18h]\r
35 mov rsi, [rcx + 20h]\r
36 mov r12, [rcx + 28h]\r
37 mov r13, [rcx + 30h]\r
38 mov r14, [rcx + 38h]\r
39 mov r15, [rcx + 40h]\r
40 mov rax, rdx ; set return value\r
41 jmp qword ptr [rcx + 48h]\r
42InternalLongJump ENDP\r
43\r
44 END\r