123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- /*++
- 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:
- keinit.h
- Abstract:
- This header contains private definitions for the Kernel Executive
- initialization.
- Author:
- Evan Green 30-Jan-2013
- --*/
- //
- // ------------------------------------------------------------------- Includes
- //
- #include <minoca/kernel/bootload.h>
- //
- // ---------------------------------------------------------------- Definitions
- //
- //
- // ------------------------------------------------------ Data Type Definitions
- //
- //
- // -------------------------------------------------------------------- Globals
- //
- //
- // -------------------------------------------------------- Function Prototypes
- //
- KSTATUS
- KepArchInitialize (
- PKERNEL_INITIALIZATION_BLOCK Parameters,
- ULONG Phase
- );
- /*++
- Routine Description:
- This routine performs architecture-specific initialization for the kernel
- executive.
- Arguments:
- Parameters - Supplies a pointer to the kernel initialization parameters
- from the loader.
- Phase - Supplies the initialization phase.
- Return Value:
- Status code.
- --*/
- KSTATUS
- KepInitializeSystemResources (
- PKERNEL_INITIALIZATION_BLOCK Parameters,
- ULONG Phase
- );
- /*++
- Routine Description:
- This routine initializes the system resource manager.
- Arguments:
- Parameters - Supplies a pointer to the kernel initialization block.
- Phase - Supplies the phase. Valid values are 0 and 1.
- Return Value:
- Status code.
- --*/
- PSYSTEM_RESOURCE_HEADER
- KepGetSystemResource (
- SYSTEM_RESOURCE_TYPE ResourceType,
- BOOL Acquire
- );
- /*++
- Routine Description:
- This routine attempts to find an unacquired system resource of the given
- type.
- Arguments:
- ResourceType - Supplies the type of builtin resource to acquire.
- Acquire - Supplies a boolean indicating if the resource should be acquired
- or not.
- Return Value:
- Returns a pointer to a resource of the given type on success.
- NULL on failure.
- --*/
- KSTATUS
- KepInitializeCrashDumpSupport (
- VOID
- );
- /*++
- Routine Description:
- This routine initializes system crash dump support.
- Arguments:
- None.
- Return Value:
- Status code.
- --*/
- KSTATUS
- KepInitializeBaseVideo (
- PKERNEL_INITIALIZATION_BLOCK Parameters
- );
- /*++
- Routine Description:
- This routine initializes the built in base video library, which is used in
- case of emergencies to display to the screen.
- Arguments:
- Parameters - Supplies a pointer to the kernel initialization block.
- Return Value:
- Status code.
- --*/
|