From 44c31c3f130aa5b337eeae73f4875f05cf0440de Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 23 Oct 2019 19:51:55 +0200 Subject: Added es:di manual setting --- src/kernel/paging/kheap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/kernel/paging/kheap.c') diff --git a/src/kernel/paging/kheap.c b/src/kernel/paging/kheap.c index 9af33f7..17fc0e7 100644 --- a/src/kernel/paging/kheap.c +++ b/src/kernel/paging/kheap.c @@ -19,13 +19,11 @@ uint32_t kmalloc_int(uint32_t sz, int align, uint32_t *phys) { return (uint32_t) addr; } else { if (align == 1 && (placement_address & 0xFFFFF000)) { - placement_address &= 0xFFFFF000; placement_address += 0x1000; } - if (phys) { + if (phys) *phys = placement_address; - } uint32_t tmp = placement_address; placement_address += sz; return tmp; -- cgit v1.2.3