diff options
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r-- | src/kernel/mem.c | 2 |
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 |