]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/LoadLinuxLib/Ia32/JumpToKernel.asm
OvmfPkg LoadLinuxLib: Use kernel's EFI entry point where available
[mirror_edk2.git] / OvmfPkg / Library / LoadLinuxLib / Ia32 / JumpToKernel.asm
CommitLineData
3c0a051f 1;------------------------------------------------------------------------------\r
2;\r
dd71f6e2 3; Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
3c0a051f 4;\r
5; This program and the accompanying materials\r
6; are licensed and made available under the terms and conditions of the BSD License\r
7; which accompanies this distribution. The full text of the license may be found at\r
8; http://opensource.org/licenses/bsd-license.php.\r
9;\r
10; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12;\r
13;------------------------------------------------------------------------------\r
14\r
15 .586p\r
16 .model flat,C\r
17 .code\r
18\r
19;------------------------------------------------------------------------------\r
20; VOID\r
21; EFIAPI\r
22; JumpToKernel (\r
23; VOID *KernelStart,\r
24; VOID *KernelBootParams\r
25; );\r
26;------------------------------------------------------------------------------\r
27JumpToKernel PROC\r
28\r
29 mov esi, [esp + 8]\r
30 call DWORD PTR [esp + 4]\r
31 ret\r
32\r
33JumpToKernel ENDP\r
34\r
dd71f6e2 35;------------------------------------------------------------------------------\r
36; VOID\r
37; EFIAPI\r
38; JumpToUefiKernel (\r
39; EFI_HANDLE ImageHandle,\r
40; EFI_SYSTEM_TABLE *SystemTable,\r
41; VOID *KernelBootParams,\r
42; VOID *KernelStart\r
43; );\r
44;------------------------------------------------------------------------------\r
45JumpToUefiKernel PROC\r
46\r
47 mov eax, [esp + 12]\r
48 mov eax, [eax + 264h]\r
49 add eax, [esp + 16]\r
50 jmp eax\r
51\r
52JumpToUefiKernel ENDP\r
53\r
3c0a051f 54END\r