+++ /dev/null
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, Intel Corporation\r
-; All rights reserved. This program and the accompanying materials\r
-; are licensed and made available under the terms and conditions of the BSD License\r
-; which accompanies this distribution. The full text of the license may be found at\r
-; http://opensource.org/licenses/bsd-license.php\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-; SetJump.Asm\r
-;\r
-; Abstract:\r
-;\r
-; Implementation of SetJump() on x64.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
- .code\r
-\r
-EXTERNDEF InternalAssertJumpBuffer:PROC\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; SetJump (\r
-; OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer\r
-; );\r
-;------------------------------------------------------------------------------\r
-SetJump PROC\r
- push rcx\r
- add rsp, -20h\r
- call InternalAssertJumpBuffer\r
- add rsp, 20h\r
- pop rcx\r
- pop rdx\r
- mov [rcx], rbx\r
- mov [rcx + 8], rsp\r
- mov [rcx + 10h], rbp\r
- mov [rcx + 18h], rdi\r
- mov [rcx + 20h], rsi\r
- mov [rcx + 28h], r12\r
- mov [rcx + 30h], r13\r
- mov [rcx + 38h], r14\r
- mov [rcx + 40h], r15\r
- mov [rcx + 48h], rdx\r
- xor rax, rax\r
- jmp rdx\r
-SetJump ENDP\r
-\r
- END\r