summaryrefslogtreecommitdiff
path: root/src/kernel/mem.c
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-23 01:33:26 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-23 01:33:26 -0500
commite520b52cd58f70af9a17f330fe1ce98ce059762c (patch)
treea4d8ec52453b0a8f872aea1ab3c4c5867543c90c /src/kernel/mem.c
parent4edc0cb2313541e74026c25b52a8f9685d953a14 (diff)
downloadportland-os-e520b52cd58f70af9a17f330fe1ce98ce059762c.tar.gz
small changes, part 1
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r--src/kernel/mem.c2
1 files changed, 1 insertions, 1 deletions
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