initial commit

This commit is contained in:
2025-03-21 19:55:17 -07:00
commit 92049a5736
15 changed files with 96 additions and 0 deletions

17
multiboot.h Normal file
View File

@@ -0,0 +1,17 @@
/* multiboot.h */
#ifndef MULTIBOOT_H
#define MULTIBOOT_H
#define MULTIBOOT_HEADER_MAGIC 0x1BADB002
#define MULTIBOOT_HEADER_FLAGS 0x00010003 // Set flags as needed
#define MULTIBOOT_HEADER_CHECKSUM -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS)
// Place the multiboot header in a dedicated section so that the bootloader can find it.
__attribute__((section(".multiboot")))
const unsigned int multiboot_header[3] = {
MULTIBOOT_HEADER_MAGIC,
MULTIBOOT_HEADER_FLAGS,
MULTIBOOT_HEADER_CHECKSUM
};
#endif // MULTIBOOT_H