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
Kernel - Split per-process and per-thread data
[tpg/acess2.git]
/
Kernel
/
heap.c
diff --git
a/Kernel/heap.c
b/Kernel/heap.c
index
5593c68
..
eefd13c
100644
(file)
--- a/
Kernel/heap.c
+++ b/
Kernel/heap.c
@@
-68,7
+68,7
@@
void *Heap_Extend(int Bytes)
// Bounds Check
if( (tVAddr)gHeapEnd + ((Bytes+0xFFF)&~0xFFF) > MM_KHEAP_MAX ) {
// Bounds Check
if( (tVAddr)gHeapEnd + ((Bytes+0xFFF)&~0xFFF) > MM_KHEAP_MAX ) {
-
Bytes = MM_KHEAP_MAX - (tVAddr)gHeapEnd;
+
//
Bytes = MM_KHEAP_MAX - (tVAddr)gHeapEnd;
return NULL;
}
return NULL;
}
@@
-700,6
+700,7
@@
void Heap_Stats(void)
// Scan and get distribution
#if 1
// Scan and get distribution
#if 1
+ if(nBlocks > 0)
{
struct {
Uint Size;
{
struct {
Uint Size;
UCC
git Repository :: git.ucc.asn.au