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