diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2024-05-22 13:00:41 -0400 |
commit | ace65b453151845bc361f21f3e5b651c35f9f126 (patch) | |
tree | 262ebd29b0ca1d8584f0b6f1efa7a00d9f4f3e43 /boot/boot.h | |
parent | f004c1ade8d617a82cea2fe249434cccb47a2358 (diff) | |
download | jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.gz jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.tar.bz2 jove-kernel-ace65b453151845bc361f21f3e5b651c35f9f126.zip |
Diffstat (limited to 'boot/boot.h')
-rw-r--r-- | boot/boot.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/boot/boot.h b/boot/boot.h deleted file mode 100644 index cfdfa68..0000000 --- a/boot/boot.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef JOVE_BOOT_H -#define JOVE_BOOT_H 1 - -#include <stdint.h> -#include <stddef.h> -#include <stdbool.h> - -struct MemoryMapEntry { - uintptr_t base; - size_t length; - bool usable; -}; - -#define MEMORY_MAP_MAX_ENTRIES 128 -struct MemoryMap { - size_t count; - struct MemoryMapEntry entries[MEMORY_MAP_MAX_ENTRIES]; -}; - -#define BOOT_MODULE_MAX_ENTRIES 4 -struct BootModule { - char *path; - char *cmdline; - size_t size; - uintptr_t addr; -}; - -#define KERNEL_INITIAL_STACK_WIDTH (0x1000 * 4) -extern void *boot_kernel_initial_stack_base; -extern uintptr_t boot_kernel_physical_address; -extern const char *boot_kernel_cmdline; - -extern struct MemoryMap boot_memorymap; - -extern struct BootModule boot_modules[BOOT_MODULE_MAX_ENTRIES]; -extern size_t boot_module_count; - -#define boot_kernel_virtual_base 0xFFFFFFFF80000000ULL - -#endif |