Update contrib.
1 // Copyright (c) 1994-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 // e32\memmodel\emul\win32\mkernel.cpp
20 EXPORT_C TInt Kern::FreeRamInBytes()
22 return MM::FreeMemory+MM::CacheMemory;
25 /********************************************
27 ********************************************/
29 TInt DThread::AllocateSupervisorStack()
34 void DThread::FreeSupervisorStack()
38 TInt DThread::AllocateUserStack(TInt, TBool)
43 void DThread::FreeUserStack()
45 iUserStackRunAddress=0;
48 TInt DWin32Thread::SetupContext(SThreadCreateInfo& )
50 iUserStackSize = 1024*1024; // The default stack reserve size on Windows
51 iUserStackRunAddress = iNThread.iUserStackBase-iUserStackSize;
52 iNThread.SetAddressSpace(iOwningProcess);
56 TBool Exc::IsMagic(TLinAddr /*anAddress*/)
58 // Return TRUE if anAddress is a 'magic' exception handling instruction