|
The Pedigree Project
0.1
|
Collaboration diagram for PpcCommonPhysicalMemoryManager::PageStack:Public Member Functions | |
| PageStack () INITIALISATION_ONLY | |
| physical_uintptr_t | allocate () |
| void | free (uintptr_t physicalAddress) |
| ~PageStack () | |
Private Member Functions | |
| PageStack (const PageStack &) | |
| PageStack & | operator= (const PageStack &) |
Private Attributes | |
| physical_uintptr_t * | m_Stack |
| size_t | m_StackMax |
| size_t | m_StackSize |
The stack of available pages.
Definition at line 81 of file kernel/core/processor/ppc_common/PhysicalMemoryManager.h.
| PpcCommonPhysicalMemoryManager::PageStack::PageStack | ( | ) |
Default constructor does nothing
Definition at line 226 of file ppc_common/PhysicalMemoryManager.cc.
Referenced by ~PageStack().
Here is the caller graph for this function:
|
inline |
The destructor does nothing
Definition at line 93 of file kernel/core/processor/ppc_common/PhysicalMemoryManager.h.
References operator=(), and PageStack().
|
private |
The copy-constructor
| physical_uintptr_t PpcCommonPhysicalMemoryManager::PageStack::allocate | ( | ) |
Allocate a page with certain constraints
Definition at line 231 of file ppc_common/PhysicalMemoryManager.cc.
References m_Stack, m_StackSize, and panic().
| void PpcCommonPhysicalMemoryManager::PageStack::free | ( | uintptr_t | physicalAddress | ) |
Free a physical page
| [in] | physicalAddress | physical address of the page |
Definition at line 238 of file ppc_common/PhysicalMemoryManager.cc.
References m_Stack, m_StackMax, m_StackSize, and physicalAddress().
Referenced by PpcCommonPhysicalMemoryManager::~PpcCommonPhysicalMemoryManager().
Here is the caller graph for this function:The copy-constructor
Referenced by ~PageStack().
Here is the caller graph for this function:
|
private |
Pointer to the base address of the stack. The stack grows upwards.
Definition at line 107 of file kernel/core/processor/ppc_common/PhysicalMemoryManager.h.
Referenced by allocate(), and free().
|
private |
Size of the currently mapped stack
Definition at line 109 of file kernel/core/processor/ppc_common/PhysicalMemoryManager.h.
Referenced by free().
|
private |
Currently used size of the stack
Definition at line 111 of file kernel/core/processor/ppc_common/PhysicalMemoryManager.h.
Referenced by allocate(), and free().
1.8.11