aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/mm/memory_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/mm/memory_map.h')
-rw-r--r--kernel/include/mm/memory_map.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/include/mm/memory_map.h b/kernel/include/mm/memory_map.h
index 428c99f..d72abc0 100644
--- a/kernel/include/mm/memory_map.h
+++ b/kernel/include/mm/memory_map.h
@@ -19,13 +19,16 @@
#ifndef __mm_memory_map_h
#define __mm_memory_map_h
-#include <stdint.h>
-
#include <mm/multiboot.h>
+#include <stdint.h>
/* TODO: Practically, do we need more than 32? */
#define MAX_FREE_REGIONS 32
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
uint8_t n_regions;
multiboot_memory_map_t *region_list[MAX_FREE_REGIONS];
@@ -34,4 +37,8 @@ typedef struct {
void memory_map_load(multiboot_info_t *mmap);
free_memory_regions_t *memory_map_get_free_regions(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif