First public contribution.
1 // Copyright (c) 1998-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\mmu\freeram.h
22 // returns the free RAM in bytes
26 // wait for any async cleanup in the supervisor to finish first...
27 UserSvr::HalFunction(EHalGroupKernel, EKernelHalSupervisorBarrier, 0, 0);
29 TMemoryInfoV1Buf meminfo;
30 UserHal::MemoryInfo(meminfo);
31 return meminfo().iFreeRamInBytes;