From 0ae4062bfe9936cc9fd2c7bb924442480b067d93 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 18 Apr 2024 23:10:15 +0200 Subject: MHR-5: initial commit. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/BootKit.hxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Private/NewBoot/BootKit/BootKit.hxx') 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 #include + #ifdef __EFI_x86_64__ +#define kBootVirtualAddress (0xffffff80000000) #include #endif // ifdef __EFI_x86_64__ + #include #include @@ -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); -- cgit v1.2.3