mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
Partition Table: Replace __attribute__((packed)) with [[gnu::packed]]
This commit is contained in:
parent
0f81e8d9af
commit
8cde707931
1 changed files with 6 additions and 4 deletions
|
@ -34,16 +34,18 @@
|
||||||
#define MBR_SIGNATURE 0xaa55
|
#define MBR_SIGNATURE 0xaa55
|
||||||
#define MBR_PROTECTIVE 0xEE
|
#define MBR_PROTECTIVE 0xEE
|
||||||
|
|
||||||
struct MBRPartitionEntry {
|
struct [[gnu::packed]] MBRPartitionEntry
|
||||||
|
{
|
||||||
u8 status;
|
u8 status;
|
||||||
u8 chs1[3];
|
u8 chs1[3];
|
||||||
u8 type;
|
u8 type;
|
||||||
u8 chs2[3];
|
u8 chs2[3];
|
||||||
u32 offset;
|
u32 offset;
|
||||||
u32 length;
|
u32 length;
|
||||||
} __attribute__((packed));
|
};
|
||||||
|
|
||||||
struct MBRPartitionHeader {
|
struct [[gnu::packed]] MBRPartitionHeader
|
||||||
|
{
|
||||||
u8 code1[218];
|
u8 code1[218];
|
||||||
u16 ts_zero;
|
u16 ts_zero;
|
||||||
u8 ts_drive, ts_seconds, ts_minutes, ts_hours;
|
u8 ts_drive, ts_seconds, ts_minutes, ts_hours;
|
||||||
|
@ -52,7 +54,7 @@ struct MBRPartitionHeader {
|
||||||
u16 disk_signature_zero;
|
u16 disk_signature_zero;
|
||||||
MBRPartitionEntry entry[4];
|
MBRPartitionEntry entry[4];
|
||||||
u16 mbr_signature;
|
u16 mbr_signature;
|
||||||
} __attribute__((packed));
|
};
|
||||||
|
|
||||||
class MBRPartitionTable {
|
class MBRPartitionTable {
|
||||||
AK_MAKE_ETERNAL
|
AK_MAKE_ETERNAL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue