[BOOT] Rename efistatus.c to efiinit.c

This commit is contained in:
Quinn Stephens 2024-05-30 12:22:04 -04:00
parent 9f7a91a5a7
commit 472b48ffd6
7 changed files with 21 additions and 18 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@
*.make *.make
Makefile Makefile
/BUILD/ /BUILD/
/UNUSED/
# Prerequisites # Prerequisites
*.d *.d

View File

@ -44,7 +44,7 @@ Return Value:
--*/ --*/
{ {
PBOOT_APPLICATION_PARAMETERS InputParameters; PBOOT_INPUT_PARAMETERS InputParameters;
// //
// Create firmware-independent input structure from EFI parameters. // Create firmware-independent input structure from EFI parameters.

View File

@ -17,7 +17,7 @@ Abstract:
NTSTATUS NTSTATUS
BmMain ( BmMain (
IN PBOOT_APPLICATION_PARAMETERS Parameters IN PBOOT_INPUT_PARAMETERS InputParameters
) )
/*++ /*++
@ -28,7 +28,7 @@ Routine Description:
Arguments: Arguments:
Parameters - Input parameters for the boot manager. InputParameters - Input parameters for the boot manager.
Return Value: Return Value:
@ -38,9 +38,9 @@ Return Value:
--*/ --*/
{ {
(VOID)Parameters; (VOID)InputParameters;
/* Not implemented */ /* TODO: Implement this */
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }

View File

@ -18,17 +18,17 @@ Abstract:
#include <nt.h> #include <nt.h>
#define BOOT_APPLICATION_PARAMETERS_SIGNATURE 0x50504120544f4f42 /* "BOOT APP" */ #define BOOT_INPUT_PARAMETERS_SIGNATURE 0x50504120544f4f42 /* "BOOT APP" */
#define BOOT_APPLICATION_PARAMETERS_VERSION 2 #define BOOT_INPUT_PARAMETERS_VERSION 2
typedef struct { typedef struct {
ULONGLONG Signature; ULONGLONG Signature;
ULONG Version; ULONG Version;
} BOOT_APPLICATION_PARAMETERS, *PBOOT_APPLICATION_PARAMETERS; } BOOT_INPUT_PARAMETERS, *PBOOT_INPUT_PARAMETERS;
NTSTATUS NTSTATUS
BmMain ( BmMain (
IN PBOOT_APPLICATION_PARAMETERS Parameters IN PBOOT_INPUT_PARAMETERS InputParameters
); );
#endif #endif

View File

@ -20,7 +20,7 @@ Abstract:
#include "bootmgr.h" #include "bootmgr.h"
#include "efi.h" #include "efi.h"
PBOOT_APPLICATION_PARAMETERS PBOOT_INPUT_PARAMETERS
EfiInitCreateInputParameters ( EfiInitCreateInputParameters (
IN EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable IN EFI_SYSTEM_TABLE *SystemTable

View File

@ -18,7 +18,7 @@ Abstract:
UCHAR EfiInitScratch[2048]; UCHAR EfiInitScratch[2048];
PBOOT_APPLICATION_PARAMETERS PBOOT_INPUT_PARAMETERS
EfiInitCreateInputParameters ( EfiInitCreateInputParameters (
IN EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable IN EFI_SYSTEM_TABLE *SystemTable
@ -44,15 +44,17 @@ Return Value:
{ {
ULONG ScratchUsed = 0; ULONG ScratchUsed = 0;
PBOOT_APPLICATION_PARAMETERS InputParameters; PBOOT_INPUT_PARAMETERS InputParameters;
(VOID)ImageHandle; (VOID)ImageHandle;
(VOID)SystemTable; (VOID)SystemTable;
InputParameters = (PBOOT_APPLICATION_PARAMETERS)(&EfiInitScratch[ScratchUsed]); InputParameters = (PBOOT_INPUT_PARAMETERS)(&EfiInitScratch[ScratchUsed]);
InputParameters->Signature = BOOT_APPLICATION_PARAMETERS_SIGNATURE; InputParameters->Signature = BOOT_INPUT_PARAMETERS_SIGNATURE;
InputParameters->Version = BOOT_APPLICATION_PARAMETERS_VERSION; InputParameters->Version = BOOT_INPUT_PARAMETERS_VERSION;
ScratchUsed += sizeof(BOOT_APPLICATION_PARAMETERS); ScratchUsed += sizeof(BOOT_INPUT_PARAMETERS);
/* TODO: Create additional parameter structures */
return InputParameters; return InputParameters;
} }

View File

@ -5,11 +5,11 @@ Provided under the BSD 3-Clause license.
Module Name: Module Name:
efistatus.c efilib.c
Abstract: Abstract:
Provides EFI status code utilities. Provides EFI utilities.
--*/ --*/