]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/LoadLinuxLib/Ia32/JumpToKernel.S
OvmfPkg LoadLinuxLib: Use kernel's EFI entry point where available
[mirror_edk2.git] / OvmfPkg / Library / LoadLinuxLib / Ia32 / JumpToKernel.S
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 ASM_GLOBAL ASM_PFX(JumpToKernel)
16 ASM_GLOBAL ASM_PFX(JumpToUefiKernel)
17
18 #------------------------------------------------------------------------------
19 # VOID
20 # EFIAPI
21 # JumpToKernel (
22 # VOID *KernelStart,
23 # VOID *KernelBootParams
24 # );
25 #------------------------------------------------------------------------------
26 ASM_PFX(JumpToKernel):
27 movl 0x8(%esp), %esi
28 calll 0x4(%esp)
29 ret
30
31 #------------------------------------------------------------------------------
32 # VOID
33 # EFIAPI
34 # JumpToUefiKernel (
35 # EFI_HANDLE ImageHandle,
36 # EFI_SYSTEM_TABLE *SystemTable,
37 # VOID *KernelBootParams,
38 # VOID *KernelStart
39 # );
40 #------------------------------------------------------------------------------
41 ASM_PFX(JumpToUefiKernel):
42 movl 0xc(%esp), %eax
43 movl 0x264(%eax), %eax
44 addl 0x10(%esp), %eax
45 jmp %eax
46