]> git.proxmox.com Git - mirror_edk2.git/blame - 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
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
15ASM_GLOBAL ASM_PFX(JumpToKernel)\r
dd71f6e2 16ASM_GLOBAL ASM_PFX(JumpToUefiKernel)\r
3c0a051f 17\r
18#------------------------------------------------------------------------------\r
19# VOID\r
20# EFIAPI\r
21# JumpToKernel (\r
22# VOID *KernelStart,\r
23# VOID *KernelBootParams\r
24# );\r
25#------------------------------------------------------------------------------\r
26ASM_PFX(JumpToKernel):\r
27 movl 0x8(%esp), %esi\r
28 calll 0x4(%esp)\r
29 ret\r
30\r
dd71f6e2 31#------------------------------------------------------------------------------\r
32# VOID\r
33# EFIAPI\r
34# JumpToUefiKernel (\r
35# EFI_HANDLE ImageHandle,\r
36# EFI_SYSTEM_TABLE *SystemTable,\r
37# VOID *KernelBootParams,\r
38# VOID *KernelStart\r
39# );\r
40#------------------------------------------------------------------------------\r
41ASM_PFX(JumpToUefiKernel):\r
42 movl 0xc(%esp), %eax\r
43 movl 0x264(%eax), %eax\r
44 addl 0x10(%esp), %eax\r
45 jmp %eax\r
46\r