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
Added out of memory handling to MM_Allocate
[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
72f5dc9
..
a6656e5
100644
(file)
--- a/
Kernel/arch/x86/mm_phys.c
+++ b/
Kernel/arch/x86/mm_phys.c
@@
-96,7
+96,7
@@
tPAddr MM_AllocPhys()
for(a=0;gaSuperBitmap[a]==-1&&a<num;a++);
if(a == num) {
RELEASE( &giPhysAlloc );
for(a=0;gaSuperBitmap[a]==-1&&a<num;a++);
if(a == num) {
RELEASE( &giPhysAlloc );
- Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p)",
__builtin_return_address(0));
+ Warning("MM_AllocPhys - OUT OF MEMORY (Called by %p)", __builtin_return_address(0));
return 0;
}
for(b=0;gaSuperBitmap[a]&(1<<b);b++);
return 0;
}
for(b=0;gaSuperBitmap[a]&(1<<b);b++);
UCC
git Repository :: git.ucc.asn.au