mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 21:09:15 +00:00
My hack isn't needed anymore.
svn path=/trunk/; revision=28829
This commit is contained in:
parent
ccf991c1b7
commit
9786ea3b93
|
@ -19,9 +19,6 @@
|
||||||
|
|
||||||
#include <freeldr.h>
|
#include <freeldr.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#ifdef _M_PPC
|
|
||||||
#include "of.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ULONG AllocationCount = 0;
|
ULONG AllocationCount = 0;
|
||||||
|
|
||||||
|
@ -85,17 +82,6 @@ PVOID MmAllocateMemory(ULONG MemorySize)
|
||||||
// satisfy this allocation
|
// satisfy this allocation
|
||||||
PagesNeeded = ROUND_UP(MemorySize, MM_PAGE_SIZE) / MM_PAGE_SIZE;
|
PagesNeeded = ROUND_UP(MemorySize, MM_PAGE_SIZE) / MM_PAGE_SIZE;
|
||||||
|
|
||||||
#ifdef _M_PPC
|
|
||||||
{
|
|
||||||
// We don't have enough reserve, claim some memory from openfirmware
|
|
||||||
ULONG ptr;
|
|
||||||
ptr = ofw_claim(0,MemorySize,MM_PAGE_SIZE);
|
|
||||||
MemPointer = (PVOID)(ptr);
|
|
||||||
if (MemPointer)
|
|
||||||
return MemPointer;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If we don't have enough available mem
|
// If we don't have enough available mem
|
||||||
// then return NULL
|
// then return NULL
|
||||||
if (FreePagesInLookupTable < PagesNeeded)
|
if (FreePagesInLookupTable < PagesNeeded)
|
||||||
|
|
Loading…
Reference in a new issue