From 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 12 Jul 2021 18:14:44 +0200 Subject: Renamed files to match presentation --- src/loader/inc/memory.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/loader/inc/memory.h (limited to 'src/loader/inc/memory.h') diff --git a/src/loader/inc/memory.h b/src/loader/inc/memory.h new file mode 100644 index 0000000..1a74884 --- /dev/null +++ b/src/loader/inc/memory.h @@ -0,0 +1,32 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#ifndef MEMORY_H +#define MEMORY_H + +#include + +enum memory_entry_type { + MEMORY_NONE, + MEMORY_USABLE, + MEMORY_RESERVED, + MEMORY_RECLAIMABLE, + MEMORY_ACPI_NVS, + MEMORY_UNUSABLE, +}; + +// Generalised memory map entry struct +struct memory_entry { + u32 base; + u32 length; + u32 type; +}; + +struct memory_map { + struct memory_entry *entry; + u32 count; +}; + +void memory_map(void); +struct memory_map *memory_map_get(void); + +#endif -- cgit v1.2.3