HhhOS/include/mem/mem.h
2021-08-23 14:05:04 +03:00

19 lines
306 B
C

#pragma once
#include <stdbool.h>
#include <types.h>
#define MEM_BLOCK_LIST_SIZE 4096
#define MEM_BLOCK_INCREASE_SIZE 4
struct mem_block {
bool is_used;
bool is_end;
usize size;
usize addr;
};
void* malloc(usize size);
void mem_populate_blocks(usize starting_addr);
bool mem_test_mm();