diff options
Diffstat (limited to 'arch/i386/include')
-rw-r--r-- | arch/i386/include/kernel/alloc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/alloc.h b/arch/i386/include/kernel/alloc.h new file mode 100644 index 0000000..986bcc5 --- /dev/null +++ b/arch/i386/include/kernel/alloc.h @@ -0,0 +1,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 |