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
Cleaned up places where MM_Allocate was used without checks
[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
ef289ac
..
faef2b3
100644
(file)
--- a/
Kernel/arch/x86/mm_phys.c
+++ b/
Kernel/arch/x86/mm_phys.c
@@
-107,7
+107,11
@@
void MM_Install(tMBoot_Info *MBoot)
//LOG("Reference Pages %i", (giPageCount*4+0xFFF)>>12);
for(num = 0; num < (giPageCount*4+0xFFF)>>12; num++)
{
//LOG("Reference Pages %i", (giPageCount*4+0xFFF)>>12);
for(num = 0; num < (giPageCount*4+0xFFF)>>12; num++)
{
- MM_Allocate( REFERENCE_BASE + (num<<12) );
+ if( !MM_Allocate( REFERENCE_BASE + (num<<12) ) )
+ {
+ Panic("Oh, ****, no space for the reference pages, that's bad");
+ for(;;);
+ }
}
//LOG("Filling");
}
//LOG("Filling");
UCC
git Repository :: git.ucc.asn.au