From e7272b29feb855f4678c5c510d331f297351d3a2 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 9 Dec 2024 18:35:54 +0100 Subject: 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. --- kernel/ksbrk.h | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 kernel/ksbrk.h (limited to 'kernel/ksbrk.h') 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 -#include - -void *ksbrk(size_t s); -void *ksbrk_physical(size_t s, void **physical); -#endif -- cgit v1.2.3