kernel/eka/memmodel/epoc/direct/mdefrag.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2006-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 // e32\memmodel\epoc\direct\mdefrag.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <memmodel.h>
       
    19 #include "platform.h"
       
    20 
       
    21 // None of this is supported on the direct memory model
       
    22 
       
    23 EXPORT_C TInt Epoc::MovePhysicalPage(TPhysAddr /*aOld*/, TPhysAddr& /*aNew*/, TRamDefragPageToMove /*aPageToMove*/)
       
    24 	{
       
    25 	return KErrNotSupported;
       
    26 	}
       
    27 
       
    28 TInt M::RamDefragFault(TAny* /*aExceptionInfo*/)
       
    29 	{
       
    30 	return KErrAbort;
       
    31 	}
       
    32 
       
    33 EXPORT_C TRamDefragRequest::TRamDefragRequest()
       
    34 	: TAsyncRequest(NULL, NULL, 0)
       
    35 	{
       
    36 	}
       
    37 
       
    38 EXPORT_C TInt TRamDefragRequest::DefragRam(TInt aPriority, TInt aMaxPages)
       
    39 	{
       
    40 	return KErrNotSupported;
       
    41 	}
       
    42 
       
    43 EXPORT_C TInt TRamDefragRequest::DefragRam(NFastSemaphore* aSem, TInt aPriority, TInt aMaxPages)
       
    44 	{
       
    45 	return KErrNotSupported;
       
    46 	}
       
    47 
       
    48 EXPORT_C TInt TRamDefragRequest::DefragRam(TDfc* aDfc, TInt aPriority, TInt aMaxPages)
       
    49 	{
       
    50 	return KErrNotSupported;
       
    51 	}
       
    52 
       
    53 EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, TInt aPriority)
       
    54 	{
       
    55 	return KErrNotSupported;
       
    56 	}
       
    57 
       
    58 EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, NFastSemaphore* aSem, TInt aPriority)
       
    59 	{
       
    60 	return KErrNotSupported;
       
    61 	}
       
    62 
       
    63 EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, TDfc* aDfc, TInt aPriority)
       
    64 	{
       
    65 	return KErrNotSupported;
       
    66 	}
       
    67 
       
    68 EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, TInt aPriority)
       
    69 	{
       
    70 	return KErrNotSupported;
       
    71 	}
       
    72 
       
    73 EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, NFastSemaphore* aSem, TInt aPriority)
       
    74 	{
       
    75 	return KErrNotSupported;
       
    76 	}
       
    77 
       
    78 EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, TDfc* aDfc, TInt aPriority)
       
    79 	{
       
    80 	return KErrNotSupported;
       
    81 	}
       
    82 
       
    83 EXPORT_C TInt TRamDefragRequest::Result()
       
    84 	{
       
    85 	return KErrNotSupported;
       
    86 	}
       
    87 
       
    88 EXPORT_C void TRamDefragRequest::Cancel()
       
    89 	{
       
    90 	}