|
NeKernel dev
|
#include <BootKit/BootKit.h>#include <BootKit/BootThread.h>#include <FirmwareKit/EFI.h>#include <FirmwareKit/EFI/API.h>#include <FirmwareKit/Handover.h>#include <KernelKit/MSDOS.h>#include <KernelKit/PE.h>#include <KernelKit/PEF.h>#include <NeKit/Macros.h>#include <NeKit/Ref.h>#include <modules/CoreGfx/CoreGfx.h>#include <modules/CoreGfx/TextGfx.h>Macros | |
| #define | kExpectedWidth (800) |
| #define | kExpectedHeight (600) |
Functions | |
| EXTERN_C Void | rt_reset_hardware () |
| STATIC Bool | boot_init_fb () |
| Finds and stores the GOP object. | |
| EFI_EXTERN_C EFI_API Int32 | BootloaderMain (EfiHandlePtr image_handle, EfiSystemTable *sys_table) |
| BootloaderMain EFI entrypoint. | |
Variables | |
| STATIC EfiGraphicsOutputProtocol * | kGop = nullptr |
| STATIC UInt16 | kGopStride = 0U |
| STATIC EFI_GUID | kGopGuid |
| EXTERN EfiBootServices * | BS |
| #define kExpectedHeight (600) |
| #define kExpectedWidth (800) |
| EFI_EXTERN_C EFI_API Int32 BootloaderMain | ( | EfiHandlePtr | image_handle, |
| EfiSystemTable * | sys_table ) |
BootloaderMain EFI entrypoint.
| image_handle | Handle of this image. |
| sys_table | The system table of it. |
! Init the EFI library.
| STATIC EfiGraphicsOutputProtocol* kGop = nullptr |
Graphics related.