summaryrefslogtreecommitdiff
path: root/kernel/src/boot/tag.h
diff options
context:
space:
mode:
authorTyler Murphy <=>2023-07-17 19:34:52 -0400
committerTyler Murphy <=>2023-07-17 19:34:52 -0400
commit7a912d1b668ab86ffe088eca3ac7e6f78a04a0c5 (patch)
tree4e86ff20e73171285156631db043e12aaf63bf04 /kernel/src/boot/tag.h
parentpaging (diff)
downloadfinix-7a912d1b668ab86ffe088eca3ac7e6f78a04a0c5.tar.gz
finix-7a912d1b668ab86ffe088eca3ac7e6f78a04a0c5.tar.bz2
finix-7a912d1b668ab86ffe088eca3ac7e6f78a04a0c5.zip
refactoring
Diffstat (limited to 'kernel/src/boot/tag.h')
-rw-r--r--kernel/src/boot/tag.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/kernel/src/boot/tag.h b/kernel/src/boot/tag.h
deleted file mode 100644
index a81e443..0000000
--- a/kernel/src/boot/tag.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-
-#include <stdbool.h>
-#include <stdint.h>
-
-#include "acpi/acpi.h"
-#include "memory/memory.h"
-
-#define CMDLINE_MAX 32
-
-struct BootTag {
- uint8_t valid;
- uint32_t type;
- uint32_t size;
- union {
- char cmdline[CMDLINE_MAX];
- struct MemoryMap *memory_map;
- struct RootSystemDescriptionPointer *rsdp;
- } data;
-};
-
-struct BootInfo {
- uint32_t total_size;
- uint32_t reserved;
- struct BootTag tags[21];
-};
-
-enum BootTagID {
- ID_CMDLINE = 0,
- iD_MEMORYMAP = 6,
- ID_RSDP = 14
-};
-
-void load_boot_info(void* boot_info);
-bool get_boot_tag(enum BootTagID id, struct BootTag **tag);