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 SECTION .text 16 17 ;------------------------------------------------------------------------------ 18 ; VOID 19 ; EFIAPI 20 ; JumpToKernel ( 21 ; VOID *KernelStart, 22 ; VOID *KernelBootParams 23 ; ); 24 ;------------------------------------------------------------------------------ 25 global ASM_PFX(JumpToKernel) 26 ASM_PFX(JumpToKernel): 27 28 mov esi, [esp + 8] 29 call DWORD [esp + 4] 30 ret 31 32 ;------------------------------------------------------------------------------ 33 ; VOID 34 ; EFIAPI 35 ; JumpToUefiKernel ( 36 ; EFI_HANDLE ImageHandle, 37 ; EFI_SYSTEM_TABLE *SystemTable, 38 ; VOID *KernelBootParams, 39 ; VOID *KernelStart 40 ; ); 41 ;------------------------------------------------------------------------------ 42 global ASM_PFX(JumpToUefiKernel) 43 ASM_PFX(JumpToUefiKernel): 44 45 mov eax, [esp + 12] 46 mov eax, [eax + 0x264] 47 add eax, [esp + 16] 48 jmp eax 49 50