mirror of
https://git.stationery.faith/corn/corn.git
synced 2024-09-19 21:21:41 +00:00
32 lines
485 B
C
32 lines
485 B
C
#pragma once
|
|
|
|
#include <memory.h>
|
|
|
|
#define CMDLINE_MAX 32
|
|
#define MMAP_MAX_ENTRY 64
|
|
|
|
struct memory_segment {
|
|
uint64_t addr;
|
|
uint64_t len;
|
|
};
|
|
|
|
struct memory_map {
|
|
uint32_t entry_count;
|
|
struct memory_segment entries[MMAP_MAX_ENTRY];
|
|
};
|
|
|
|
//struct framebuffer {
|
|
// uint64_t addr;
|
|
// uint32_t pitch;
|
|
// uint32_t width;
|
|
// uint32_t height;
|
|
// uint8_t bit_depth;
|
|
//};
|
|
|
|
struct boot_info {
|
|
struct memory_map map;
|
|
void *symbol_table;
|
|
void *acpi_table;
|
|
char cmdline[CMDLINE_MAX];
|
|
};
|