summaryrefslogtreecommitdiff
path: root/kernel/palloc.c
blob: 5ad6e5649dda4650fc4e685fc463d60aadded8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "palloc.h"

uint32_t palloc_last = 0x200000;

void palloc_init() {
	// TODO: Initialize bitmap from memory map.
}

uint32_t palloc() {
	return palloc_last += 0x1000;
}

void pfree(uint32_t addr) {
	
}