diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-18 23:10:15 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-18 23:10:15 +0200 |
| commit | 0ae4062bfe9936cc9fd2c7bb924442480b067d93 (patch) | |
| tree | 491b3cfc9c751557c37213ff437e56f66d100a4d /Private/NewBoot/BootKit/BootKit.hxx | |
| parent | 706c58b9b9fa74c63180f490a1f48652d0408944 (diff) | |
MHR-5: initial commit.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit/BootKit.hxx')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 1fbd0aef..be16c2c5 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -18,9 +18,12 @@ class BVersionString; #include <BootKit/HW/ATA.hxx> #include <CompilerKit/Version.hxx> + #ifdef __EFI_x86_64__ +#define kBootVirtualAddress (0xffffff80000000) #include <FirmwareKit/EFI.hxx> #endif // ifdef __EFI_x86_64__ + #include <FirmwareKit/EPM.hxx> #include <NewKit/Defines.hpp> @@ -68,8 +71,10 @@ NewOS::SizeT BSetMem(CharacterTypeUTF8 *src, const CharacterTypeUTF8 byte, /// String length functions. +/// @brief get string length. NewOS::SizeT BStrLen(const CharacterTypeUTF16 *ptr); +/// @brief set memory with custom value. NewOS::SizeT BSetMem(CharacterTypeUTF16 *src, const CharacterTypeUTF16 byte, const NewOS::SizeT len); @@ -169,7 +174,7 @@ inline UInt32 In32(UInt16 port) { /*** * Common processor instructions. -*/ + */ EXTERN_C void rt_hlt(); EXTERN_C void rt_cli(); @@ -221,8 +226,10 @@ class BVersionString final { /// @param namePart the partition's name /// @param namePartLength the partition name's length /// @param bootDev the disk interface. -/// @return +/// @return EXTERN_C Boolean boot_write_epm_partition(const Char *namePart, SizeT namePartLength, BootDevice *bootDev); +/// @brief Bootloader main type. +typedef void (*BootMainKind)(HEL::HandoverInformationHeader* handoverInfo); |
