summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-01 08:48:08 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-01 08:48:08 +0100
commitfcc8bad0b5e0af4f1f68c96449ce086375cb4b81 (patch)
tree0b6ab548c72900b3534a358de23728b4bc1d7275 /Private
parentb052cb4fbb7b83c1292a3098ee7d00e9f3f3fba1 (diff)
See below.
- Add USBRegs in XHCI. - Add brief description in EFIKit/EPM.hxx - Move HCoreKrnl into EFI/BOOT (makefile NewBoot) Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private')
-rw-r--r--Private/EFIKit/EPM.hxx55
-rw-r--r--Private/NewBoot/Source/makefile1
2 files changed, 30 insertions, 26 deletions
diff --git a/Private/EFIKit/EPM.hxx b/Private/EFIKit/EPM.hxx
index 4b88c4cd..f1cb84ba 100644
--- a/Private/EFIKit/EPM.hxx
+++ b/Private/EFIKit/EPM.hxx
@@ -7,6 +7,12 @@
* ========================================================
*/
+/**
+ @brief The Explicit Partition Map use is to tell how many NewFS and other
+ EPM compatible fs. We have in this computer.
+
+*/
+
#ifndef __PARTITION_MAP__
#define __PARTITION_MAP__
@@ -20,31 +26,29 @@ inline consteval int kMagicLen = 4;
* @brief The EPM bootloader block.
* boot code info
*/
-struct __attribute__((packed)) BootBlock
-{
- char magic[kMagicLen];
- char name[kNameLen];
- char uuid[kUUIDLen];
- int version;
- long long int num_blocks;
- long long int sector_sz;
- long long int sector_start;
+struct __attribute__((packed)) BootBlock {
+ char magic[kMagicLen];
+ char name[kNameLen];
+ char uuid[kUUIDLen];
+ int version;
+ long long int num_blocks;
+ long long int sector_sz;
+ long long int sector_start;
};
/**
* @brief The EPM partition block.
* used to explain a partition inside a media.
*/
-struct __attribute__((packed)) PartitionBlock
-{
- char name[32];
- int magic;
- long long int sector_end;
- long long int sector_sz;
- long long int sector_start;
- short type;
- int version;
- char fs[16]; /* ffs_2 */
+struct __attribute__((packed)) PartitionBlock {
+ char name[32];
+ int magic;
+ long long int sector_end;
+ long long int sector_sz;
+ long long int sector_start;
+ short type;
+ int version;
+ char fs[16]; /* ffs_2 */
};
/* @brief AMD64 magic for EPM */
@@ -67,12 +71,11 @@ struct __attribute__((packed)) PartitionBlock
//! version types.
//! use in boot block version field.
-enum
-{
- kEPMMpUx = 0xcf,
- kEPMLinux = 0x8f,
- kEPMBSD = 0x9f,
- kEPMHCore = 0x1f,
+enum {
+ kEPMMpUx = 0xcf,
+ kEPMLinux = 0x8f,
+ kEPMBSD = 0x9f,
+ kEPMHCore = 0x1f,
};
/// END SPECS
@@ -86,4 +89,4 @@ typedef struct PartitionBlock PartitionBlockType;
#define kMag "EPM??"
#endif
-#endif // ifndef __PARTITION_MAP__
+#endif // ifndef __PARTITION_MAP__
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 0a2e1d91..4193f12d 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -17,6 +17,7 @@ bootloader-amd64:
$(CC_GNU) $(FLAG_GNU) HEL/AMD64/*.cxx
$(LD_GNU) *.o -e efi_main -filealign:16 -shared --subsystem=10 -ffreestanding -o HCoreLdr.exe
cp HCoreLdr.exe CDROM/EFI/BOOT/BOOTX64.EFI
+ cp ../../HCoreKrnl.exe CDROM/EFI/BOOT/HCoreKrnl.exe
.PHONY: run-efi-debug
run-efi-debug: