From e520b52cd58f70af9a17f330fe1ce98ce059762c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 23 Dec 2019 01:33:26 -0500 Subject: small changes, part 1 --- src/kernel/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/mem.c') diff --git a/src/kernel/mem.c b/src/kernel/mem.c index f12fbf7..509c768 100644 --- a/src/kernel/mem.c +++ b/src/kernel/mem.c @@ -36,6 +36,6 @@ void *allocate_pages(uint16_t n_pages, uint16_t proc_n) { } void deallocate_pages(void *from, uint16_t n_pages) { - for (uint16_t *mb = MMAP + ((uint32_t)from / 0x1000), *l = mb + n_pages; mb < l; ++mb) + for (uint16_t *mb = MMAP + (uint32_t)from / 0x1000, *l = mb + n_pages; mb < l; ++mb) *mb = 0; } \ No newline at end of file -- cgit v1.2.3