Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
phys_base_allocator.h
Go to the documentation of this file.
1#ifndef __MEMORY__ALLOCATOR_H__
2#define __MEMORY__ALLOCATOR_H__
3
4#include <libk/stivale2.h>
5#include <type.h>
6
7#define BLOCK_SIZE (uint64_t) 0x1000
8
13
14typedef struct {
15
17
19 struct stivale2_struct_tag_memmap* stivale_memmap);
23void pmm_log_usage();
26
28
29#endif // __MEMORY__ALLOCATOR_H__
uintptr_t page
Definition paging.c:0
void pmm_log_usage()
void * phys_base_alloc(uint64_t size)
void * phys_base_alloc_aligned(uint64_t block, uint64_t align)
uint64_t pys_base_get_free_block_count()
void vxPhysBaseFree(void *page, uint64_t length)
uint64_t bitmap_size_
void phys_base_allocator_install(struct stivale2_struct_tag_memmap *stivale_memmap)
MEMORY_ENTRY_TYPE
void * phys_base_alloc_on_top(uint64_t block)
unsigned long uint64_t
Definition type.h:25
uint32_t length
Definition virtio.h:7
size_t size
Definition vnode.h:3