summaryrefslogtreecommitdiff
path: root/kernel/ksbrk.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-09 18:35:54 +0100
committerAnton Kling <anton@kling.gg>2024-12-09 19:17:57 +0100
commite7272b29feb855f4678c5c510d331f297351d3a2 (patch)
treea1961628a7466af9320f14827cb528ac688ddb76 /kernel/ksbrk.h
parent906923ad3f2ecb2c73d286924e2ac05f8f3ae502 (diff)
mmu: Make certain allocations physical and virtual mapping linear
Previously it was possible for fragmentation to occur and as a result certain allocations would have a linear virtual address space but not a linear physical address space. This is bad since a lot of calls to kmalloc_align rely upon both being linear, it has now been changed such that all allocations done by kmalloc_align now guarantee this mapping holds for both virtual and physical addresses. It was due to oversight and sheer luck that this had been working for so long.
Diffstat (limited to 'kernel/ksbrk.h')
-rw-r--r--kernel/ksbrk.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/ksbrk.h b/kernel/ksbrk.h
deleted file mode 100644
index fba060e..0000000
--- a/kernel/ksbrk.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef KSBRK_H
-#define KSBRK_H
-#include <stddef.h>
-#include <typedefs.h>
-
-void *ksbrk(size_t s);
-void *ksbrk_physical(size_t s, void **physical);
-#endif