aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/mm.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 13:05:50 +0200
committerMarvin Borner2021-04-02 13:05:50 +0200
commit3e81b8a254485de532d46c9a0710be97879d0605 (patch)
treeb51e1dda3e3b6302c6bc8fa7586b8069ee602123 /kernel/features/mm.c
parent192b756a6999a0637fcc72f3fd2f9f7099e32543 (diff)
Added memory leak detector
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r--kernel/features/mm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c
index 5356ab4..afee468 100644
--- a/kernel/features/mm.c
+++ b/kernel/features/mm.c
@@ -404,16 +404,6 @@ void memory_map_identity(struct page_dir *dir, struct memory_range prange, u32 f
memset((void *)prange.base, 0, prange.size);
}
-struct memory_object {
- u32 id;
- u32 refs;
- u8 shared;
- struct memory_range prange;
-};
-struct memory_proc_link {
- struct memory_object *obj;
- struct memory_range vrange;
-};
static struct list *memory_objects = NULL;
res memory_sys_alloc(struct page_dir *dir, u32 size, u32 *addr, u32 *id, u8 shared)
{