BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / 4f822f67ee63ef4245ad6bfcd0e3fe04ff6f34a0 / memory / memory.h

// Related

Nucleus

Barry Stack-based page frame allocator 4f822f6 (3 years, 3 months ago)
#ifndef MEMORY_H
#define MEMORY_H

#include <stdint.h>
#include <stddef.h>

#define PAGE_SIZE 0x1000

uintptr_t alloc_frame(void);
void free_frame(uintptr_t frame);
void init_frames(size_t memMapSize, void *memMap);

#endif