#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | _SEGMENT_HEADER |
struct | _FREE_HEADER |
struct | _BUSY_HEADER |
struct | _HEAP_HEADER |
Defines | |
#define | FLAGS_FREE 0x00000000 |
#define | FLAGS_BUSY 0x00000001 |
#define | FLAGS_MASK 0x00000003 |
#define | ALLOCATION_GRANULARITY 16 |
#define | HEAP_ZERO_EXTRA_MEMORY 0x00000008 |
Typedefs | |
typedef _SEGMENT_HEADER | SEGMENT_HEADER |
typedef _SEGMENT_HEADER * | PSEGMENT_HEADER |
typedef _FREE_HEADER | FREE_HEADER |
typedef _FREE_HEADER * | PFREE_HEADER |
typedef _BUSY_HEADER | BUSY_HEADER |
typedef _BUSY_HEADER * | PBUSY_HEADER |
typedef _HEAP_HEADER | HEAP_HEADER |
typedef _HEAP_HEADER * | PHEAP_HEADER |
Functions | |
PVOID | AlRtCreateHeap (IN ULONG Flags, IN PVOID HeapBase, IN ULONG Size) |
BOOLEAN | AlRtValidateHeap (IN PVOID HeapHandle, IN BOOLEAN DumpHeap) |
PVOID | AlRtAllocateHeap (IN PVOID HeapHandle, IN ULONG Size) |
PVOID | AlRtFreeHeap (IN PVOID HeapHandle, IN PVOID BaseAddress) |
PVOID | AlRtReAllocateHeap (IN PVOID HeapHandle, IN PVOID BaseAddress, IN ULONG Size) |
ARC_STATUS | AlMemoryInitialize (ULONG StackPages, ULONG HeapPages) |
PVOID | AlAllocateHeap (IN ULONG Size) |
PVOID | AlDeallocateHeap (IN PVOID HeapAddress) |
PVOID | AlReallocateHeap (IN PVOID HeapAddress, IN ULONG NewSize) |
BOOLEAN | AlValidateHeap (IN BOOLEAN DumpHeap) |
Variables | |
ULONG | AlHeapFree |
ULONG | AlHeapLimit |
PVOID | HeapHandle |
|
Definition at line 61 of file memory.c. Referenced by AlRtAllocateHeap(), AlRtCreateHeap(), AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
Definition at line 52 of file memory.c. Referenced by AlRtAllocateHeap(), AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
|
|
Definition at line 53 of file memory.c. Referenced by AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
Definition at line 107 of file memory.c. Referenced by AlMemoryInitialize(), and AlRtCreateHeap(). |
|
|
|
|
|
|
|
Referenced by AlRtAllocateHeap(), AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
Referenced by AlRtAllocateHeap(), AlRtCreateHeap(), and AlRtFreeHeap(). |
|
Referenced by AlRtAllocateHeap(), AlRtCreateHeap(), AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
Referenced by AlRtAllocateHeap(), AlRtFreeHeap(), and AlRtReAllocateHeap(). |
|
|
|
Definition at line 1113 of file memory.c. References AlRtAllocateHeap(), HeapHandle, and Size. Referenced by AlAddMenuItem(), AlCombinePaths(), AlGetEnvVarComponents(), AlNewMenu(), AlStrDup(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 1134 of file memory.c. References AlRtFreeHeap(), and HeapHandle. Referenced by AlFreeArray(), AlFreeEnvVarComponents(), AlFreeMenu(), AlGetBase(), AlpFreeComponents(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 991 of file memory.c. References AlHeapFree, AlHeapLimit, AlRtCreateHeap(), ArcGetMemoryDescriptor, _MEMORY_DESCRIPTOR::BasePage, ENOMEM, ESUCCESS, HEAP_ZERO_EXTRA_MEMORY, HeapHandle, KSEG0_BASE, MemoryFree, MemoryLoadedProgram, _MEMORY_DESCRIPTOR::MemoryType, NULL, PAGE_SHIFT, _MEMORY_DESCRIPTOR::PageCount, and PMEMORY_DESCRIPTOR. Referenced by main().
|
|
Definition at line 1153 of file memory.c. References AlRtReAllocateHeap(), and HeapHandle. Referenced by AlAddMenuItem(), and LowGetDiskLayout().
|
|
Definition at line 365 of file memory.c. References ALLOCATION_GRANULARITY, AlPrint(), AlRtValidateHeap(), FALSE, FLAGS_BUSY, _HEAP_HEADER::FreeList, _BUSY_HEADER::HandleValue, HeapHandle, _HEAP_HEADER::Length, _FREE_HEADER::Next, NULL, PBUSY_HEADER, PFREE_HEADER, PHEAP_HEADER, PSEGMENT_HEADER, _BUSY_HEADER::Segment, _FREE_HEADER::Segment, _BUSY_HEADER::Size, _FREE_HEADER::Size, Size, _BUSY_HEADER::Spare, TRUE, and _HEAP_HEADER::ZeroExtraMemory. Referenced by AlAllocateHeap(), and AlRtReAllocateHeap().
|
|
Definition at line 119 of file memory.c. References ALLOCATION_GRANULARITY, _HEAP_HEADER::EndAddress, FALSE, _HEAP_HEADER::FreeList, HEAP_ZERO_EXTRA_MEMORY, _HEAP_HEADER::Length, _FREE_HEADER::Next, NULL, PFREE_HEADER, PHEAP_HEADER, _FREE_HEADER::Segment, _FREE_HEADER::Size, Size, TRUE, _HEAP_HEADER::ValidAddress, and _HEAP_HEADER::ZeroExtraMemory. Referenced by AlMemoryInitialize().
|
|
Definition at line 555 of file memory.c. References ALLOCATION_GRANULARITY, AlPrint(), AlRtValidateHeap(), _HEAP_HEADER::EndAddress, FALSE, FLAGS_BUSY, FLAGS_MASK, _HEAP_HEADER::FreeList, HeapHandle, _HEAP_HEADER::Length, _FREE_HEADER::Next, NULL, PBUSY_HEADER, PFREE_HEADER, PHEAP_HEADER, PSEGMENT_HEADER, _FREE_HEADER::Segment, _BUSY_HEADER::Segment, _FREE_HEADER::Size, _SEGMENT_HEADER::Size, _BUSY_HEADER::Size, TRUE, and _HEAP_HEADER::ValidAddress. Referenced by AlDeallocateHeap(), and AlRtReAllocateHeap().
|
|
Definition at line 807 of file memory.c. References ALLOCATION_GRANULARITY, AlPrint(), AlRtAllocateHeap(), AlRtFreeHeap(), AlRtValidateHeap(), _HEAP_HEADER::EndAddress, FALSE, FLAGS_BUSY, FLAGS_MASK, HeapHandle, _HEAP_HEADER::Length, NULL, PBUSY_HEADER, PHEAP_HEADER, PSEGMENT_HEADER, _BUSY_HEADER::Segment, _SEGMENT_HEADER::Size, _BUSY_HEADER::Size, Size, _BUSY_HEADER::Spare, _HEAP_HEADER::ValidAddress, and _HEAP_HEADER::ZeroExtraMemory. Referenced by AlReallocateHeap().
|
|
Definition at line 352 of file memory.c. References TRUE. Referenced by AlRtAllocateHeap(), AlRtFreeHeap(), AlRtReAllocateHeap(), and AlValidateHeap().
|
|
Definition at line 1174 of file memory.c. References AlRtValidateHeap(), and HeapHandle.
|
|
Definition at line 112 of file memory.c. Referenced by AlMemoryInitialize(). |
|
Definition at line 113 of file memory.c. Referenced by AlMemoryInitialize(). |
|