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 - Fixed page fault Proc_ReturnToUser
[tpg/acess2.git]
/
Kernel
/
arch
/
x86_64
/
mm_phys.c
diff --git
a/Kernel/arch/x86_64/mm_phys.c
b/Kernel/arch/x86_64/mm_phys.c
index
0130773
..
f3cdceb
100644
(file)
--- a/
Kernel/arch/x86_64/mm_phys.c
+++ b/
Kernel/arch/x86_64/mm_phys.c
@@
-390,7
+390,7
@@
tPAddr MM_AllocPhysRange(int Pages, int MaxBits)
nFree ++;
addr ++;
LOG("nFree(%i) == %i (0x%x)", nFree, Pages, addr);
nFree ++;
addr ++;
LOG("nFree(%i) == %i (0x%x)", nFree, Pages, addr);
- if(nFree ==
Num
)
+ if(nFree ==
Pages
)
break;
}
LOG("nFree = %i", nFree);
break;
}
LOG("nFree = %i", nFree);
@@
-409,10
+409,10
@@
tPAddr MM_AllocPhysRange(int Pages, int MaxBits)
Mutex_Release(&glPhysicalPages);
// TODO: Page out
// ATM. Just Warning
Mutex_Release(&glPhysicalPages);
// TODO: Page out
// ATM. Just Warning
- Warning(" MM_AllocPhysRange: Out of memory (unable to fulfil request for %i pages)",
Num
);
+ Warning(" MM_AllocPhysRange: Out of memory (unable to fulfil request for %i pages)",
Pages
);
Log_Warning("Arch",
"Out of memory (unable to fulfil request for %i pages)",
Log_Warning("Arch",
"Out of memory (unable to fulfil request for %i pages)",
- Num
+ Pages
);
LEAVE('i', 0);
return 0;
);
LEAVE('i', 0);
return 0;
UCC
git Repository :: git.ucc.asn.au