BeeBS
A simple operating system, I assure you.
Toggle main menu visibility
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
8
void
mem_init(
void
);
9
10
void
* nuc_malloc(
size_t
size,
int
flags);
11
void
nuc_free(
void
* buf);
12
13
// A memory fragment within the small heap
14
struct
mem_sheap_fragment
{
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
mem_sheap_fragment
Definition
mem.h:14
nucleus
src
mem.h
Generated by
1.18.0