corn/include/shim.h

25 lines
352 B
C
Raw Normal View History

2024-01-29 00:22:09 +00:00
#pragma once
#include <memory.h>
2024-01-30 21:46:38 +00:00
#define CMDLINE_MAX 32
2024-01-31 17:49:06 +00:00
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;
};
2024-01-29 00:22:09 +00:00
struct boot_info {
2024-01-31 17:49:06 +00:00
struct memory_map map;
2024-01-30 21:55:15 +00:00
void *symbol_table;
2024-01-30 21:46:38 +00:00
void *acpi_table;
char cmdline[CMDLINE_MAX];
2024-01-29 00:22:09 +00:00
};