mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
Add missing svn:eol-style=native properties
svn path=/trunk/; revision=28805
This commit is contained in:
parent
39ed067ac8
commit
c0614ecb59
|
@ -52,9 +52,6 @@ static BOOLEAN FsOpenVolume(ULONG DriveNumber, ULONGLONG StartSector, ULONGLONG
|
|||
{
|
||||
CHAR ErrorText[80];
|
||||
|
||||
printf("FsOpenVolume: (disk=%d,start=%d,count=%d,type=%d)\n",
|
||||
DriveNumber, StartSector, SectorCount, Type);
|
||||
|
||||
FsType = Type;
|
||||
|
||||
if( !FsStaticBufferDisk )
|
||||
|
@ -165,7 +162,6 @@ PFILE FsOpenFile(PCSTR FileName)
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
//
|
||||
// Check return value
|
||||
//
|
||||
|
@ -177,7 +173,6 @@ PFILE FsOpenFile(PCSTR FileName)
|
|||
{
|
||||
DbgPrint((DPRINT_FILESYSTEM, "FsOpenFile() failed.\n"));
|
||||
}
|
||||
#endif // defined DEBUG
|
||||
|
||||
return FileHandle;
|
||||
}
|
||||
|
|
|
@ -90,7 +90,10 @@
|
|||
/* Swap */
|
||||
#include <bytesex.h>
|
||||
|
||||
/* arch defines */
|
||||
#ifdef _X86_
|
||||
#define Ke386EraseFlags(x) __asm__ __volatile__("pushl $0 ; popfl\n")
|
||||
#endif
|
||||
|
||||
extern BOOLEAN UserInterfaceUp; /* Tells us if the user interface is displayed */
|
||||
|
||||
|
|
|
@ -85,21 +85,24 @@ PVOID MmAllocateMemory(ULONG MemorySize)
|
|||
// satisfy this allocation
|
||||
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
|
||||
// then return NULL
|
||||
if (FreePagesInLookupTable < PagesNeeded)
|
||||
{
|
||||
#ifdef _M_PPC
|
||||
ULONG ptr;
|
||||
printf("Allocating %d bytes directly ...\n", MemorySize);
|
||||
ptr = ofw_claim(0,MemorySize,MM_PAGE_SIZE);
|
||||
MemPointer = (PVOID)(ptr);
|
||||
return MemPointer;
|
||||
#else
|
||||
DbgPrint((DPRINT_MEMORY, "Memory allocation failed in MmAllocateMemory(). Not enough free memory to allocate %d bytes. AllocationCount: %d\n", MemorySize, AllocationCount));
|
||||
UiMessageBoxCritical("Memory allocation failed: out of memory.");
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
FirstFreePageFromEnd = MmFindAvailablePages(PageLookupTableAddress, TotalPagesInLookupTable, PagesNeeded, AllocateFromEnd);
|
||||
|
|
Loading…
Reference in a new issue