summaryrefslogtreecommitdiff
path: root/kernel/include/multiboot2.h
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 06:56:01 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 08:45:09 +0100
commit239900af293f192931391dc5579afab39a43e6c6 (patch)
tree72d7f87ee6adf5aa84b78436197e03e61fba8d97 /kernel/include/multiboot2.h
parentaaa23fffd02fb49cdbc56a480dbb5a8fa95bff38 (diff)
clang-format
Diffstat (limited to 'kernel/include/multiboot2.h')
-rw-r--r--kernel/include/multiboot2.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/kernel/include/multiboot2.h b/kernel/include/multiboot2.h
index ff91092..5891a56 100644
--- a/kernel/include/multiboot2.h
+++ b/kernel/include/multiboot2.h
@@ -43,7 +43,7 @@ struct mb2_tag_module {
uint32_t size;
uint32_t mod_start;
uint32_t mod_end;
- char* name;
+ char *name;
};
typedef struct mb2_tag_module mb2_tag_module;
@@ -55,26 +55,25 @@ typedef struct mmap_t mmap_t;
extern mmap_t mmap;
-
// multiboot2 magic check
-#define MB2_MAGIC 0x36D76289
+#define MB2_MAGIC 0x36D76289
// multiboot2 tag
-#define MB2_TAG_END 0
-#define MB2_TAG_CMDLINE 1
-#define MB2_TAG_BOOTLOADER 2
-#define MB2_TAG_MODULE 3
-#define MB2_TAG_MEM 4
-#define MB2_TAG_BIOS 5
-#define MB2_TAG_MMAP 6
-#define MB2_TAG_VBE 7
-#define MB2_TAG_FB 8
+#define MB2_TAG_END 0
+#define MB2_TAG_CMDLINE 1
+#define MB2_TAG_BOOTLOADER 2
+#define MB2_TAG_MODULE 3
+#define MB2_TAG_MEM 4
+#define MB2_TAG_BIOS 5
+#define MB2_TAG_MMAP 6
+#define MB2_TAG_VBE 7
+#define MB2_TAG_FB 8
-extern mb2_tag_module* ext2_module;
+extern mb2_tag_module *ext2_module;
-void read_mb2(mb2_tag_header* multiboot_bootinfo, uint32_t multiboot_magic);
-void init_fb(mb2_tag_fb* tag_fb);
-void init_mmap(mb2_tag_mmap* tag_mmap);
-void init_module(mb2_tag_module* tag_module);
+void read_mb2(mb2_tag_header *multiboot_bootinfo, uint32_t multiboot_magic);
+void init_fb(mb2_tag_fb *tag_fb);
+void init_mmap(mb2_tag_mmap *tag_mmap);
+void init_module(mb2_tag_module *tag_module);
#endif