aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/mm/memory_map.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-01-31 00:25:36 -0500
committerRaghuram Subramani <raghus2247@gmail.com>2025-01-31 00:25:36 -0500
commiteadb94693002a2f5435722f2d967d7fa08866a1d (patch)
treee1f98cc27b8891e939c8f051628c709e4fe056ca /kernel/include/mm/memory_map.h
parent4959f61efcf664f80e8526c834f6ed35413af7ea (diff)
(misc): Add support for C++
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