os/kernelhwsrv/kernel/eka/memmodel/epoc/flexible/mmu/mpdalloc.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @internalComponent
    19 */
    20 
    21 #ifndef MPDALLOC_H
    22 #define MPDALLOC_H
    23 
    24 
    25 class PageDirectoryAllocator
    26 	{
    27 public:
    28 	void Init2();
    29 	TInt Alloc(TUint aOsAsid, TPhysAddr& aPageDirectory);
    30 	void Free(TUint aOsAsid);
    31 	void GlobalPdeChanged(TPde* aPde);
    32 private:
    33 	void AssignPages(TUint aIndex, TUint aCount, TPhysAddr aPhysAddr);
    34 private:
    35 	TPhysAddr iKernelPageDirectory;
    36 	DMemoryObject* iPageDirectoryMemory;
    37 	TBitMapAllocator* iAllocator;
    38 	};
    39 
    40 extern PageDirectoryAllocator PageDirectories;
    41 
    42 
    43 #endif