BeeBS
A simple operating system, I assure you.
Loading...
Searching...
No Matches
mem.h
1#ifndef _MEM_H_
2#define _MEM_H_
3
4#include <stdint.h>
5#include <stdbool.h>
6#include <stddef.h>
7
8void mem_init(void);
9
10void* nuc_malloc(size_t size, int flags);
11void nuc_free(void* buf);
12
13// A memory fragment within the small heap
15 void* address; // ARM physical address (we're not using the MMU yet)
16 short len; // Length of the memory block or 0 if not allocated
17 bool used; // Is this fragment in use or not?
18};
19
20#endif
Definition mem.h:14