pull/38/head
E. Almqvist 3 years ago
parent 88565642d6
commit 4eb396a6c7
  1. 6
      kernel/memory.c
  2. 2
      kernel/memory.h

@ -55,6 +55,10 @@ void block_free(uint blockidx) {
last_block = blockidx;
}
uint find_free(uint block_count) {
// TODO: find a free start block to allocate
}
bool check_block_range(uint start, uint end) {
bool allowed = true;
@ -91,8 +95,6 @@ void pm_alloc_range(ulong start, ulong end, bool force) {
}
}
/*
pointer pm_malloc(uint block_count) {
}
*/

@ -16,6 +16,8 @@ void mod_bitmap(uint bit, uint flag);
pointer block_alloc(uint blockidx); // allocate a block
void block_free(uint blockidx); // free a block
uint find_free(uint block_count);
bool check_block_range(uint start, uint end);
void pm_alloc_range(ulong start, ulong end, bool force); // allocate a range of memory

Loading…
Cancel
Save