aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main.zig b/src/main.zig
index 2ac40fa..443e440 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -6,15 +6,13 @@ comptime {
const debug = @import("debugcon.zig");
const console = @import("console.zig");
-const ALIGN = 1 << 0;
-const MEMINFO = 1 << 1;
const MAGIC = 0xE85250D6;
-const FLAGS = 0;
+const ARCHITECTURE = 0;
const MultibootHeader = extern struct {
magic: u32,
- flags: u32,
- len: u32,
+ architecture: u32,
+ header_len: u32,
checksum: u32,
tag0: u16,
@@ -24,9 +22,9 @@ const MultibootHeader = extern struct {
export const multiboot2 align(4) linksection(".multiboot") = MultibootHeader{
.magic = MAGIC,
- .flags = FLAGS,
- .len = 24,
- .checksum = 0x100000000 - (MAGIC + FLAGS + 24),
+ .architecture = ARCHITECTURE,
+ .header_len = 24,
+ .checksum = 0x100000000 - (MAGIC + ARCHITECTURE + 24),
.tag0 = 0,
.tag1 = 0,
.tag2 = 8,