]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/ResetVector/JumpToSec.asm
Add missing EFIAPI instances on several functions.
[mirror_edk2.git] / OvmfPkg / ResetVector / JumpToSec.asm
CommitLineData
49ba9447 1;------------------------------------------------------------------------------\r
2;\r
3; Copyright (c) 2008, Intel Corporation\r
4; All rights reserved. This program and the accompanying materials\r
5; are licensed and made available under the terms and conditions of the BSD License\r
6; which accompanies this distribution. The full text of the license may be found at\r
7; http://opensource.org/licenses/bsd-license.php\r
8;\r
9; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11;\r
12; Module Name:\r
13;\r
14; JumpToSec.asm\r
15;\r
16; Abstract:\r
17;\r
18; Jump from the reset vector binary to SEC\r
19;\r
20;------------------------------------------------------------------------------\r
21\r
22BITS 32\r
23\r
24TransitionFrom16RealTo32FlatComplete:\r
25\r
26 OneTimeCall Flat32SearchForBfvBase\r
27\r
28 OneTimeCall Flat32SearchForSecAndPeiEntries\r
29\r
30 ;\r
31 ; ESI - SEC Core entry point\r
32 ; EDI - PEI Core entry point\r
33 ; EBP - Start of BFV\r
34 ;\r
35 ; Jump to SEC Core entry point\r
36 ;\r
37\r
38%ifdef ARCH_IA32\r
39\r
40 jmp esi\r
41\r
42%else\r
43\r
44 OneTimeCall Transition32FlatTo64Flat\r
45BITS 64\r
46\r
47 mov rax, 0x00000000ffffffff\r
48 and rsi, rax\r
49 and rdi, rax\r
50 and rbp, rax\r
51 ;\r
52 ; RSI - SEC Core entry point\r
53 ; RDI - PEI Core entry point\r
54 ; RBP - Start of BFV\r
55 ;\r
56 ; Jump to SEC Core entry point\r
57 ;\r
58\r
59 jmp rsi\r
60\r
61%endif\r
62\r
63\r