git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: added ability to identify process vm regions
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
dmm.h
diff --git
a/lunaix-os/includes/lunaix/mm/dmm.h
b/lunaix-os/includes/lunaix/mm/dmm.h
index 22b0539391248ba746236e7f9422f821654c2e68..793ab3f8218cc1218737f4033262dbbe0ac2d907 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/dmm.h
+++ b/
lunaix-os/includes/lunaix/mm/dmm.h
@@
-3,6
+3,8
@@
// Dynamic Memory (i.e., heap) Manager
#include <stddef.h>
// Dynamic Memory (i.e., heap) Manager
#include <stddef.h>
+#include <lunaix/mm/mm.h>
+#include <lunaix/process.h>
#define M_ALLOCATED 0x1
#define M_PREV_FREE 0x2
#define M_ALLOCATED 0x1
#define M_PREV_FREE 0x2
@@
-29,13
+31,6
@@
#define HEAP_INIT_SIZE 4096
#define HEAP_INIT_SIZE 4096
-typedef struct
-{
- void* start;
- void* brk;
- void* max_addr;
-} heap_context_t;
-
int
dmm_init(heap_context_t* heap);
int
dmm_init(heap_context_t* heap);