Usermode/ld-acess - Disabled PIC (not needed)
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / heap.c
index 7ce6bca..4fcc8be 100644 (file)
@@ -54,6 +54,7 @@ EXPORT void *malloc(size_t bytes)
        void    *bestMatchAddr = 0;\r
        heap_head       *curBlock;\r
        \r
+//     _SysDebug("&_heap_start = %p, _heap_start = %p", &_heap_start, _heap_start);\r
        // Initialise Heap\r
        if(_heap_start == NULL)\r
        {\r
@@ -63,6 +64,7 @@ EXPORT void *malloc(size_t bytes)
        }\r
        \r
        curBlock = _heap_start;\r
+//     _SysDebug("_heap_start = %p", _heap_start);\r
        \r
        bestSize = bytes + sizeof(heap_head) + sizeof(heap_foot) + BLOCK_SIZE - 1;\r
        bestSize = (bestSize/BLOCK_SIZE)*BLOCK_SIZE;    //Round up to block size\r

UCC git Repository :: git.ucc.asn.au