diff options
author | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 17:58:50 -0400 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 17:58:50 -0400 |
commit | 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (patch) | |
tree | 10a2aef195e0f40b0e44ffac82dcf60e426c4385 /src/kernel/mem.c | |
parent | 63167f223e1f54910f6b80e698390ee60aec79ee (diff) | |
download | portland-os-2ddbeb9f7214f6d3feef651eba83e6a9d120a743.tar.gz |
lots of progress, including readonly PATA driver and part of FAT16 driver
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r-- | src/kernel/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/mem.c b/src/kernel/mem.c index 2e8173d..d3baad3 100644 --- a/src/kernel/mem.c +++ b/src/kernel/mem.c @@ -1,6 +1,6 @@ #include <stdint.h> -#include <stdbool.h> #include "panic.h" +#include "mem.h" #define DYNAMIC_START (0x10000000) #define DYNAMIC_END (DYNAMIC_START + 65536 * 4096) @@ -55,7 +55,7 @@ void *allocate_pages(uint16_t n) { } //in the future, change this to go by bytes or dwords instead of bits. -void free_pages(void *ptr, uint16_t n) { +void free_pages(const void *ptr, uint16_t n) { uint16_t page = ADDR_TO_PAGE(ptr); for (uint32_t i = page; i < page + n; ++i) CLEAR_PAGE(i); |