aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig
index 017a377..fdb2ea4 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -5,13 +5,14 @@ const MEMINFO = 1 << 1;
const MAGIC = 0x1BADB002;
const FLAGS = ALIGN | MEMINFO;
-const MultibootHeader = packed struct {
- magic: i32 = MAGIC,
+const MultibootHeader = extern struct {
+ magic: i32,
flags: i32,
checksum: i32,
};
-export var multiboot align(4) linksection(".multiboot") = MultibootHeader{
+export const multiboot align(4) linksection(".multiboot") = MultibootHeader{
+ .magic = MAGIC,
.flags = FLAGS,
.checksum = -(MAGIC + FLAGS),
};