mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
Partition Table: Replace __attribute__((packed)) with [[gnu::packed]]
This commit is contained in:
parent
0f81e8d9af
commit
8cde707931
Notes:
sideshowbarker
2024-07-19 09:43:16 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/8cde707931c Pull-request: https://github.com/SerenityOS/serenity/pull/1160 Reviewed-by: https://github.com/awesomekling
@ -34,16 +34,18 @@
|
||||
#define MBR_SIGNATURE 0xaa55
|
||||
#define MBR_PROTECTIVE 0xEE
|
||||
|
||||
struct MBRPartitionEntry {
|
||||
struct [[gnu::packed]] MBRPartitionEntry
|
||||
{
|
||||
u8 status;
|
||||
u8 chs1[3];
|
||||
u8 type;
|
||||
u8 chs2[3];
|
||||
u32 offset;
|
||||
u32 length;
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
struct MBRPartitionHeader {
|
||||
struct [[gnu::packed]] MBRPartitionHeader
|
||||
{
|
||||
u8 code1[218];
|
||||
u16 ts_zero;
|
||||
u8 ts_drive, ts_seconds, ts_minutes, ts_hours;
|
||||
@ -52,7 +54,7 @@ struct MBRPartitionHeader {
|
||||
u16 disk_signature_zero;
|
||||
MBRPartitionEntry entry[4];
|
||||
u16 mbr_signature;
|
||||
} __attribute__((packed));
|
||||
};
|
||||
|
||||
class MBRPartitionTable {
|
||||
AK_MAKE_ETERNAL
|
||||
|
Loading…
Reference in New Issue
Block a user