summaryrefslogtreecommitdiff
path: root/arch/i386/include/kernel/alloc.h
blob: 986bcc509b7952a1866b4f2c0b370f9a04000a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef I386_ALLOC_H
#define I386_ALLOC_H

#include <kernel/multiboot.h>
#include <stdint.h>
#include <stddef.h>

int alloc_init(struct mboot_info *info);
void mark_bitmap(uint32_t paddr, int present);
uint32_t pfa_alloc_frame(void);
void pfa_free(uint32_t paddr, int num_frames);

#endif