summaryrefslogtreecommitdiff
path: root/include/shim.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-01-31 12:49:06 -0500
committerFreya Murphy <freya@freyacat.org>2024-01-31 12:49:06 -0500
commit50fee8495e9329081067e9eb91f7e0ad9adc4025 (patch)
tree351790da66d5a795462618e768f077e071e4d444 /include/shim.h
parentdisable wip code (diff)
downloadcorn-50fee8495e9329081067e9eb91f7e0ad9adc4025.tar.gz
corn-50fee8495e9329081067e9eb91f7e0ad9adc4025.tar.bz2
corn-50fee8495e9329081067e9eb91f7e0ad9adc4025.zip
better mboot and kalloc
Diffstat (limited to 'include/shim.h')
-rw-r--r--include/shim.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/shim.h b/include/shim.h
index 9f80abc..dc8c19c 100644
--- a/include/shim.h
+++ b/include/shim.h
@@ -4,8 +4,20 @@
#define CMDLINE_MAX 32
+struct memory_segment {
+ uint64_t addr;
+ uint64_t len;
+ uint32_t type;
+};
+
+struct memory_map {
+ uint32_t entry_count;
+ uint32_t entry_length;
+ struct memory_segment *entries;
+};
+
struct boot_info {
- struct memory_map *map;
+ struct memory_map map;
void *symbol_table;
void *acpi_table;
char cmdline[CMDLINE_MAX];