ReactOS 0.4.16-dev-1-gcf26321
|
Go to the source code of this file.
Macros | |
#define | ULONGLONG_ALIGN_DOWN_BY(size, align) ((ULONGLONG)(size) & ~((ULONGLONG)(align) - 1)) |
#define | ULONGLONG_ALIGN_UP_BY(size, align) (ULONGLONG_ALIGN_DOWN_BY(((ULONGLONG)(size) + align - 1), align)) |
Functions | |
DBG_DEFAULT_CHANNEL (MEMORY) | |
ULONG | AddMemoryDescriptor (IN OUT PFREELDR_MEMORY_DESCRIPTOR List, IN ULONG MaxCount, IN PFN_NUMBER BasePage, IN PFN_NUMBER PageCount, IN TYPE_OF_MEMORY MemoryType) |
static BOOLEAN | GetExtendedMemoryConfiguration (ULONG *pMemoryAtOneMB, ULONG *pMemoryAtSixteenMB) |
static ULONG | PcMemGetConventionalMemorySize (VOID) |
static BOOLEAN | GetEbdaLocation (PULONG BaseAddress, PULONG Size) |
static VOID | PcMemCheckUsableMemorySize (VOID) |
static ULONG | PcMemGetBiosMemoryMap (PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG MaxMemoryMapSize) |
VOID | ReserveMemory (PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG_PTR BaseAddress, SIZE_T Size, TYPE_OF_MEMORY MemoryType, PCHAR Usage) |
VOID | SetMemory (PFREELDR_MEMORY_DESCRIPTOR MemoryMap, ULONG_PTR BaseAddress, SIZE_T Size, TYPE_OF_MEMORY MemoryType) |
ULONG | PcMemFinalizeMemoryMap (PFREELDR_MEMORY_DESCRIPTOR MemoryMap) |
PFREELDR_MEMORY_DESCRIPTOR | PcMemGetMemoryMap (ULONG *MemoryMapSize) |
Variables | |
BIOS_MEMORY_MAP | PcBiosMemoryMap [MAX_BIOS_DESCRIPTORS] |
ULONG | PcBiosMapCount |
FREELDR_MEMORY_DESCRIPTOR | PcMemoryMap [MAX_BIOS_DESCRIPTORS+1] |
ULONG | PcMapCount |
ULONG AddMemoryDescriptor | ( | IN OUT PFREELDR_MEMORY_DESCRIPTOR | List, |
IN ULONG | MaxCount, | ||
IN PFN_NUMBER | BasePage, | ||
IN PFN_NUMBER | PageCount, | ||
IN TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 102 of file meminit.c.
Referenced by PcMemGetBiosMemoryMap(), PcMemGetMemoryMap(), ReserveMemory(), and SetMemory().
DBG_DEFAULT_CHANNEL | ( | MEMORY | ) |
Definition at line 175 of file pcmem.c.
Referenced by PcMemGetMemoryMap().
|
static |
Definition at line 53 of file pcmem.c.
Referenced by PcMemGetMemoryMap().
Definition at line 209 of file pcmem.c.
Referenced by PcMemGetMemoryMap().
ULONG PcMemFinalizeMemoryMap | ( | PFREELDR_MEMORY_DESCRIPTOR | MemoryMap | ) |
Definition at line 547 of file pcmem.c.
Referenced by Pc98MemGetMemoryMap(), PcMemGetMemoryMap(), and XboxMemGetMemoryMap().
|
static |
Definition at line 235 of file pcmem.c.
Referenced by PcMemGetMemoryMap().
Definition at line 149 of file pcmem.c.
Referenced by PcMemGetMemoryMap().
PFREELDR_MEMORY_DESCRIPTOR PcMemGetMemoryMap | ( | ULONG * | MemoryMapSize | ) |
Definition at line 599 of file pcmem.c.
Referenced by MachInit().
VOID ReserveMemory | ( | PFREELDR_MEMORY_DESCRIPTOR | MemoryMap, |
ULONG_PTR | BaseAddress, | ||
SIZE_T | Size, | ||
TYPE_OF_MEMORY | MemoryType, | ||
PCHAR | Usage | ||
) |
Definition at line 484 of file pcmem.c.
Referenced by PcMemFinalizeMemoryMap(), and XboxMemGetMemoryMap().
VOID SetMemory | ( | PFREELDR_MEMORY_DESCRIPTOR | MemoryMap, |
ULONG_PTR | BaseAddress, | ||
SIZE_T | Size, | ||
TYPE_OF_MEMORY | MemoryType | ||
) |
Definition at line 527 of file pcmem.c.
Referenced by Pc98MemGetMemoryMap(), PcMemGetMemoryMap(), and XboxMemGetMemoryMap().
ULONG PcBiosMapCount |
Definition at line 38 of file pcmem.c.
Referenced by DetectAcpiBios(), Pc98MemGetMemoryMap(), and PcMemGetBiosMemoryMap().
BIOS_MEMORY_MAP PcBiosMemoryMap[MAX_BIOS_DESCRIPTORS] |
Definition at line 37 of file pcmem.c.
Referenced by DetectAcpiBios(), Pc98MemGetMemoryMap(), and PcMemGetBiosMemoryMap().
ULONG PcMapCount |
Definition at line 41 of file pcmem.c.
Referenced by PcMemFinalizeMemoryMap(), PcMemGetBiosMemoryMap(), PcMemGetMemoryMap(), ReserveMemory(), and SetMemory().
FREELDR_MEMORY_DESCRIPTOR PcMemoryMap[MAX_BIOS_DESCRIPTORS+1] |
Definition at line 40 of file pcmem.c.
Referenced by PcMemGetBiosMemoryMap(), and PcMemGetMemoryMap().