diff options
author | Marvin Borner | 2020-05-21 22:35:00 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-21 22:35:00 +0200 |
commit | 9731a7e1fc779db3ae21e0054346cc37eed3508c (patch) | |
tree | 7ad598aadc86fdcedc4298d9c083f6a8189aa4b4 /src/kernel/memory | |
parent | cb338df9e21bd54aa949cc9c2739b04a4ef12e8b (diff) |
Fixed assertion
Diffstat (limited to 'src/kernel/memory')
-rw-r--r-- | src/kernel/memory/paging.c | 8 |
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!"); } |