aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/mm/physical_mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/mm/physical_mm.h')
-rw-r--r--kernel/include/mm/physical_mm.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/kernel/include/mm/physical_mm.h b/kernel/include/mm/physical_mm.h
index 7ad97d9..0058cc5 100644
--- a/kernel/include/mm/physical_mm.h
+++ b/kernel/include/mm/physical_mm.h
@@ -19,11 +19,10 @@
#ifndef __mm_physical_mm_h
#define __mm_physical_mm_h
+#include <common.h>
#include <stdbool.h>
#include <stdint.h>
-#include <common.h>
-
/* TODO: Update this to 2MiB when PAE is enabled */
#define BLOCK_SIZE (4 * KiB)
@@ -32,6 +31,10 @@
/* This is the maximum number of blocks for a 4GiB system. */
#define MAX_BLOCKS 1048576
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void physical_mm_init(void);
uint32_t physical_mm_find_free_block(void);
@@ -47,4 +50,8 @@ void physical_mm_set_usable(const uint32_t bit,
uint32_t *memory_map);
bool physical_mm_test_bit(const uint32_t bit, uint32_t *memory_map);
+#ifdef __cplusplus
+}
+#endif
+
#endif