mirror of https://github.com/E-Almqvist/eOS
parent
5654680f7e
commit
1c9a865f1c
@ -1,10 +1,12 @@ |
||||
#include "../lib/types.h" |
||||
|
||||
#define BLOCK_SIZE 1024 // 1 KiB
|
||||
#define MAX_BLOCK_COUNT 32 // placeholder
|
||||
#define MEMSIZE_TO_BLOCKS(n) ((n*1024)/BLOCK_SIZE) |
||||
|
||||
enum bitmap_flag; |
||||
|
||||
// void init_pmm(uint map_addr, uint bsize); // Initialize physical memory manager
|
||||
|
||||
void mod_bitmap(uint block, uint bit, uint flag); |
||||
void mod_bitmap(uint bit, uint flag); |
||||
|
||||
int block_alloc(uint blockidx); |
||||
int block_free(uint blockidx); |
||||
|
Loading…
Reference in new issue