From 2a2f12c64a99749b05507d80ba3ee728d5ed76e1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 27 Feb 2021 21:59:03 +0100 Subject: Reimplemented memory map detection --- kernel/inc/boot.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'kernel') diff --git a/kernel/inc/boot.h b/kernel/inc/boot.h index 6bacc31..052a56f 100644 --- a/kernel/inc/boot.h +++ b/kernel/inc/boot.h @@ -12,4 +12,28 @@ struct vid_info { u32 *vbe; }; +enum mmap_type { + MEMORY_AVAILABLE = 1, + MEMORY_RESERVED, + MEMORY_ACPI, + MEMORY_NVS, + MEMORY_DEFECT, + MEMORY_DISABLED +}; + +struct mmap_boot { + u32 lbase; + u32 hbase; + u32 lsize; + u32 hsize; + u32 type; + u32 acpi; +}; + +struct mem_info { + struct mmap_boot *start; + u32 *end; + u32 size; +}; + #endif -- cgit v1.2.3