The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ArmV7PhysicalMemoryManager::PageStack Class Reference

The Stack of pages (below4GB, below64GB, no constraint). More...

+ Collaboration diagram for ArmV7PhysicalMemoryManager::PageStack:

Public Member Functions

 PageStack () INITIALISATION_ONLY
 
physical_uintptr_t allocate (size_t constraints)
 
void free (physical_uintptr_t physicalAddress)
 
 ~PageStack ()
 

Private Member Functions

 PageStack (const PageStack &)
 
PageStackoperator= (const PageStack &)
 

Private Attributes

physical_uintptr_t m_Stack [1]
 
void * m_Stack
 
size_t m_StackMax
 
size_t m_StackSize
 

Detailed Description

The Stack of pages (below4GB, below64GB, no constraint).

The actual page stack contains is a Stack of the pages with the constraints below4GB and below64GB and those pages without address size constraints.

Definition at line 81 of file kernel/core/processor/armv7/PhysicalMemoryManager.h.

Constructor & Destructor Documentation

ArmV7PhysicalMemoryManager::PageStack::PageStack ( )

Default constructor does nothing

Definition at line 293 of file armv7/PhysicalMemoryManager.cc.

Referenced by ~PageStack().

+ Here is the caller graph for this function:

ArmV7PhysicalMemoryManager::PageStack::~PageStack ( )
inline

The destructor does nothing

Definition at line 94 of file kernel/core/processor/armv7/PhysicalMemoryManager.h.

References operator=(), and PageStack().

ArmV7PhysicalMemoryManager::PageStack::PageStack ( const PageStack )
private

The copy-constructor

Note
Not implemented

Member Function Documentation

physical_uintptr_t ArmV7PhysicalMemoryManager::PageStack::allocate ( size_t  constraints)

Allocate a page with certain constraints

Parameters
[in]constraintseither below4GB or below64GB or 0
Returns
The physical address of the allocated page or 0

Definition at line 245 of file armv7/PhysicalMemoryManager.cc.

void ArmV7PhysicalMemoryManager::PageStack::free ( physical_uintptr_t  physicalAddress)
PageStack& ArmV7PhysicalMemoryManager::PageStack::operator= ( const PageStack )
private

The copy-constructor

Note
Not implemented

Referenced by ~PageStack().

+ Here is the caller graph for this function:

Member Data Documentation

physical_uintptr_t ArmV7PhysicalMemoryManager::PageStack::m_Stack[1]
private

Pointer to the base address of the stack. The stack grows upwards.

Definition at line 111 of file kernel/core/processor/armv7/PhysicalMemoryManager.h.

size_t ArmV7PhysicalMemoryManager::PageStack::m_StackMax
private

Size of the currently mapped stack

Definition at line 115 of file kernel/core/processor/armv7/PhysicalMemoryManager.h.

size_t ArmV7PhysicalMemoryManager::PageStack::m_StackSize
private

Currently used size of the stack

Definition at line 117 of file kernel/core/processor/armv7/PhysicalMemoryManager.h.


The documentation for this class was generated from the following files: