git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/ld-acess - Disabled PIC (not needed)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libc.so_src
/
heap.c
diff --git
a/Usermode/Libraries/libc.so_src/heap.c
b/Usermode/Libraries/libc.so_src/heap.c
index
7ce6bca
..
4fcc8be
100644
(file)
--- a/
Usermode/Libraries/libc.so_src/heap.c
+++ b/
Usermode/Libraries/libc.so_src/heap.c
@@
-54,6
+54,7
@@
EXPORT void *malloc(size_t bytes)
void *bestMatchAddr = 0;
\r
heap_head *curBlock;
\r
\r
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
// 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
}
\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
\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