aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/memory/paging.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-21 22:35:00 +0200
committerMarvin Borner2020-05-21 22:35:00 +0200
commit9731a7e1fc779db3ae21e0054346cc37eed3508c (patch)
tree7ad598aadc86fdcedc4298d9c083f6a8189aa4b4 /src/kernel/memory/paging.c
parentcb338df9e21bd54aa949cc9c2739b04a4ef12e8b (diff)
Fixed assertion
Diffstat (limited to 'src/kernel/memory/paging.c')
-rw-r--r--src/kernel/memory/paging.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/memory/paging.c b/src/kernel/memory/paging.c
index c00de9a..96fa584 100644
--- a/src/kernel/memory/paging.c
+++ b/src/kernel/memory/paging.c
@@ -39,11 +39,11 @@ void paging_install()
// Test!
u32 *a = malloc(4096);
u32 *b = malloc(4096);
- free((void *)b);
- free((void *)a);
+ free(b);
+ free(a);
u32 *c = malloc(2048);
- assert(&a == &c);
- c[42] = 4242;
+ assert(a == c);
+ c[42] = 0x4242;
free(c);
info("Malloc test succeeded!");
}