aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/memory.c')
-rw-r--r--src/kernel/lib/memory.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/kernel/lib/memory.c b/src/kernel/lib/memory.c
index 6aed060..30f75f9 100644
--- a/src/kernel/lib/memory.c
+++ b/src/kernel/lib/memory.c
@@ -96,24 +96,4 @@ void memory_mmap_init(struct multiboot_tag_mmap *tag)
}
}
total = sum >> 10; // I want kb
-}
-
-int memory_init(uint32_t multiboot_address)
-{
- int ret = 0;
- struct multiboot_tag *tag;
-
- for (tag = (struct multiboot_tag *)(multiboot_address + 8);
- tag->type != MULTIBOOT_TAG_TYPE_END;
- tag = (struct multiboot_tag *)((multiboot_uint8_t *)tag + ((tag->size + 7) & ~7))) {
- if (tag->type == MULTIBOOT_TAG_TYPE_BASIC_MEMINFO) {
- info("Got memory info");
- memory_info_init((struct multiboot_tag_basic_meminfo *)tag);
- } else if (tag->type == MULTIBOOT_TAG_TYPE_MMAP) {
- info("Got memory map");
- memory_mmap_init((struct multiboot_tag_mmap *)tag);
- ret = 1;
- }
- }
- return ret;
} \ No newline at end of file