You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
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>
24 lines
611 B
NASM
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
|