diff cos/kernel/malloc.c @ 26:dcce92b1efbc

Added mm.c
author windel
date Tue, 27 Dec 2011 17:36:52 +0100
parents d3c4bf3720a3
children 47b7df514243
line wrap: on
line diff
--- a/cos/kernel/malloc.c	Tue Dec 27 13:31:38 2011 +0100
+++ b/cos/kernel/malloc.c	Tue Dec 27 17:36:52 2011 +0100
@@ -22,9 +22,8 @@
    Kernelpanic in case of failure..
 */
 
-void* kmalloc(uint64_t size) {
-   // printf("Malloc %d bytes\n", size);
-
+void* kmalloc(uint64_t size) 
+{
    // Start at the beginning of our heap and search a free block:
    heap_t *current = kernel_heap;
    while (current->magic == HEAP_MAGIC)
@@ -63,7 +62,8 @@
    return 0x0;
 }
 
-void kfree(void* ptr) {
+void kfree(void* ptr) 
+{
   printf("Free address %x\n", ptr);
 }