diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 19:29:01 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 19:29:42 +0100 |
| commit | f06d0703a5813841f5a6dacd294c5cfbe9394037 (patch) | |
| tree | b6626ef96cd0fe290e889054c8a934e04d556eef /Private/NewBoot | |
| parent | 4a789fd64c44e38ed0c3d9fb597e62afd17a337d (diff) | |
Kernel: Update SPECIFICATION.TXT, Implement Shared objects primitives.
Kernel: Working on EFI reimplementation.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot')
| -rw-r--r-- | Private/NewBoot/Source/HEL/AMD64/PartitionMap.hxx | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/Private/NewBoot/Source/HEL/AMD64/PartitionMap.hxx b/Private/NewBoot/Source/HEL/AMD64/PartitionMap.hxx index 69914b36..9dcd967f 100644 --- a/Private/NewBoot/Source/HEL/AMD64/PartitionMap.hxx +++ b/Private/NewBoot/Source/HEL/AMD64/PartitionMap.hxx @@ -7,8 +7,8 @@ * ======================================================== */ -#ifndef __PARTITION_MAP_H__ -#define __PARTITION_MAP_H__ +#ifndef __PARTITION_MAP__ +#define __PARTITION_MAP__ #define UUID_LEN 37 @@ -18,7 +18,7 @@ * @brief The EPM bootloader block. * boot code info */ -struct boot_block +struct __attribute__((packed)) BootBlock { char magic[4]; char name[32]; @@ -33,7 +33,7 @@ struct boot_block * @brief The EPM partition block. * used to explain a partition inside a media. */ -struct part_block +struct __attribute__((packed)) PartitionBlock { char name[32]; int magic; @@ -45,28 +45,25 @@ struct part_block char fs[16]; /* ffs_2 */ }; -typedef struct part_block part_block_t; -typedef struct boot_block boot_block_t; - /* @brief AMD64 magic for EPM */ -#define EPM_MAGIC_X86 "EPMAM" +#define PM_MAGIC_X86 "EPMAM" /* @brief RISC-V magic for EPM */ -#define EPM_MAGIC_RV "EPMRV" +#define PM_MAGIC_RV "EPMRV" /* @brief ARM magic for EPM */ -#define EPM_MAGIC_ARM "EPMAR" +#define PM_MAGIC_ARM "EPMAR" /* @brief 64x0 magic for EPM */ -#define EPM_MAGIC_64x0 "EPM64" +#define PM_MAGIC_64x0 "EPM64" /* @brief 32x0 magic for EPM */ -#define EPM_MAGIC_32x0 "EPM32" +#define PM_MAGIC_32x0 "EPM32" -#define EPM_MAX_BLKS 128 +#define PM_MAX_BLKS 128 -#define EPM_BOOT_BLK_SZ sizeof(struct boot_block) -#define EPM_PART_BLK_SZ sizeof(struct part_block) +#define PM_BOOT_BLK_SZ sizeof(struct boot_block) +#define PM_PART_BLK_SZ sizeof(struct part_block) //! version types. //! use in boot block version field. @@ -81,13 +78,13 @@ enum /// END SPECS -typedef boot_block_t BootBlockType; -typedef part_block_t PartitionBlockType; +typedef struct BootBlock BootBlockType; +typedef struct PartitionBlock PartitionBlockType; #ifdef __x86_64__ -#define PM_MAG EPM_MAGIC_X86 +#define PM_MAG PM_MAGIC_X86 #else #define PM_MAG "?" #endif -#endif // ifndef __PARTITION_MAP_H__ +#endif // ifndef __PARTITION_MAP__ |
