diff options
author | Freya Murphy <freya@freyacat.org> | 2024-01-31 12:49:06 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-01-31 12:49:06 -0500 |
commit | 50fee8495e9329081067e9eb91f7e0ad9adc4025 (patch) | |
tree | 351790da66d5a795462618e768f077e071e4d444 /include/shim.h | |
parent | disable wip code (diff) | |
download | corn-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.h | 14 |
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]; |