2024-01-29 00:22:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory.h>
|
|
|
|
|
2024-02-01 17:48:55 +00:00
|
|
|
#define CMDLINE_MAX 32
|
|
|
|
#define MMAP_MAX_ENTRY 64
|
2024-01-30 21:46:38 +00:00
|
|
|
|
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;
|
2024-02-01 17:48:55 +00:00
|
|
|
struct memory_segment entries[MMAP_MAX_ENTRY];
|
2024-01-31 17:49:06 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|