Files
slimbootloader/BootloaderCommonPkg/Library/ModuleEntryLib/X64/SecEntry.nasm
Maurice Ma d3c42e575d Fix GCC build issue in x64 (#620)
Due to missing normal function implementations in some x64 code, GCC
optimized many code off from the final image which caused synbol
patching issue later on. This patch fixed this.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2020-04-02 07:28:57 -07:00

24 lines
611 B
NASM

;------------------------------------------------------------------------------
;
; Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; SecEntry.nasm
;
; Abstract:
;
; This is the code that goes from real-mode to protected mode.
; It consumes the reset vector.
;
;------------------------------------------------------------------------------
SECTION .text
extern ASM_PFX(SecStartup)
global ASM_PFX(_ModuleEntryPoint)
ASM_PFX(_ModuleEntryPoint):
jmp ASM_PFX(SecStartup) ; Jump to C code