ArvernOS
Loading...
Searching...
No Matches
alloc.h File Reference
#include <mmu/frame.h>
#include <sys/types.h>
Include dependency graph for alloc.h:

Macros

#define HEAP_START   0x10000000
 The virtual address to the start of the heap memory.
 
#define HEAP_SIZE   (20 * 1024 * 1024)
 The size of the heap (20 MiB).
 
#define MAX_PAGES   (HEAP_SIZE / PAGE_SIZE)
 The number of pages that we can allocate.
 

Functions

void alloc_init ()
 

Function Documentation

◆ alloc_init()

void alloc_init ( )

Initializes the heap memory allocator.