1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kernel/eka/memmodel/epoc/direct/mdefrag.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,90 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32\memmodel\epoc\direct\mdefrag.cpp
1.18 +//
1.19 +//
1.20 +
1.21 +#include <memmodel.h>
1.22 +#include "platform.h"
1.23 +
1.24 +// None of this is supported on the direct memory model
1.25 +
1.26 +EXPORT_C TInt Epoc::MovePhysicalPage(TPhysAddr /*aOld*/, TPhysAddr& /*aNew*/, TRamDefragPageToMove /*aPageToMove*/)
1.27 + {
1.28 + return KErrNotSupported;
1.29 + }
1.30 +
1.31 +TInt M::RamDefragFault(TAny* /*aExceptionInfo*/)
1.32 + {
1.33 + return KErrAbort;
1.34 + }
1.35 +
1.36 +EXPORT_C TRamDefragRequest::TRamDefragRequest()
1.37 + : TAsyncRequest(NULL, NULL, 0)
1.38 + {
1.39 + }
1.40 +
1.41 +EXPORT_C TInt TRamDefragRequest::DefragRam(TInt aPriority, TInt aMaxPages)
1.42 + {
1.43 + return KErrNotSupported;
1.44 + }
1.45 +
1.46 +EXPORT_C TInt TRamDefragRequest::DefragRam(NFastSemaphore* aSem, TInt aPriority, TInt aMaxPages)
1.47 + {
1.48 + return KErrNotSupported;
1.49 + }
1.50 +
1.51 +EXPORT_C TInt TRamDefragRequest::DefragRam(TDfc* aDfc, TInt aPriority, TInt aMaxPages)
1.52 + {
1.53 + return KErrNotSupported;
1.54 + }
1.55 +
1.56 +EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, TInt aPriority)
1.57 + {
1.58 + return KErrNotSupported;
1.59 + }
1.60 +
1.61 +EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, NFastSemaphore* aSem, TInt aPriority)
1.62 + {
1.63 + return KErrNotSupported;
1.64 + }
1.65 +
1.66 +EXPORT_C TInt TRamDefragRequest::EmptyRamZone(TUint aId, TDfc* aDfc, TInt aPriority)
1.67 + {
1.68 + return KErrNotSupported;
1.69 + }
1.70 +
1.71 +EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, TInt aPriority)
1.72 + {
1.73 + return KErrNotSupported;
1.74 + }
1.75 +
1.76 +EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, NFastSemaphore* aSem, TInt aPriority)
1.77 + {
1.78 + return KErrNotSupported;
1.79 + }
1.80 +
1.81 +EXPORT_C TInt TRamDefragRequest::ClaimRamZone(TUint aId, TPhysAddr& aPhysAddr, TDfc* aDfc, TInt aPriority)
1.82 + {
1.83 + return KErrNotSupported;
1.84 + }
1.85 +
1.86 +EXPORT_C TInt TRamDefragRequest::Result()
1.87 + {
1.88 + return KErrNotSupported;
1.89 + }
1.90 +
1.91 +EXPORT_C void TRamDefragRequest::Cancel()
1.92 + {
1.93 + }