aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMarvin Borner2021-02-27 21:59:03 +0100
committerMarvin Borner2021-02-27 21:59:03 +0100
commit2a2f12c64a99749b05507d80ba3ee728d5ed76e1 (patch)
tree58736a040de91442355c074522ae5c579573a42e /kernel
parent7304e20731980078a7bfe138a20a8d13653fed7b (diff)
Reimplemented memory map detection
Diffstat (limited to 'kernel')
-rw-r--r--kernel/inc/boot.h24
1 files changed, 24 insertions, 0 deletions
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