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
Fiddling with threading bugs (both Qemu and Bochs hate atm)
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
mm_phys.c
diff --git
a/Kernel/arch/x86/mm_phys.c
b/Kernel/arch/x86/mm_phys.c
index
3abe413
..
ef289ac
100644
(file)
--- a/
Kernel/arch/x86/mm_phys.c
+++ b/
Kernel/arch/x86/mm_phys.c
@@
-166,7
+166,8
@@
tPAddr MM_AllocPhys(void)
for( ; gaSuperBitmap[a] == -1 && a >= 0; a-- );
if(a < 0) {
Mutex_Release( &glPhysAlloc );
for( ; gaSuperBitmap[a] == -1 && a >= 0; a-- );
if(a < 0) {
Mutex_Release( &glPhysAlloc );
- Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p)", __builtin_return_address(0));
+ Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p) - %lli/%lli used",
+ __builtin_return_address(0), giPhysAlloc, giPageCount);
LEAVE('i', 0);
return 0;
}
LEAVE('i', 0);
return 0;
}
@@
-178,7
+179,9
@@
tPAddr MM_AllocPhys(void)
if( indx < 0 ) {
Mutex_Release( &glPhysAlloc );
if( indx < 0 ) {
Mutex_Release( &glPhysAlloc );
- Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p)", __builtin_return_address(0));
+ Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p) - %lli/%lli used (indx = %x)",
+ __builtin_return_address(0), giPhysAlloc, giPageCount, indx);
+ Log_Debug("PMem", "giLastPossibleFree = %lli", giLastPossibleFree);
LEAVE('i', 0);
return 0;
}
LEAVE('i', 0);
return 0;
}
UCC
git Repository :: git.ucc.asn.au