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