123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- /*++
- Copyright (c) 2013 Minoca Corp.
- This file is licensed under the terms of the GNU General Public License
- version 3. Alternative licensing terms are available. Contact
- info@minocacorp.com for details. See the LICENSE file at the root of this
- project for complete licensing information.
- Module Name:
- entry.S
- Abstract:
- This module implements the entry point for the loader.
- Author:
- Evan Green 18-Aug-2013
- Environment:
- Kernel mode
- --*/
- ##
- ## ------------------------------------------------------------------ Includes
- ##
- #include <minoca/kernel/x86.inc>
- ##
- ## ---------------------------------------------------------------------- Code
- ##
- ##
- ## .text specifies that this code belongs in the executable section.
- ##
- ## .code32 specifies that this is 32-bit protected mode code.
- ##
- .text
- .code32
- ##
- ## .globl allows this label to be visible to the linker.
- ##
- .globl _start
- ##
- ## void
- ## start (
- ## )
- ##
- /*++
- Routine Description:
- This routine implements the entry point for the firmware. It jumps to the
- main C routine. It is called by the file system specific boot code.
- Arguments:
- None.
- Return Value:
- TRUE if interrupts are enabled in the processor.
- FALSE if interrupts are globally disabled.
- --*/
- _start:
- jmp EfiBiosMain # Just do it.
- ##
- ## --------------------------------------------------------- Internal Functions
- ##
|