os/kernelhwsrv/kernel/eka/memmodel/emul/win32/mkernel.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32\memmodel\emul\win32\mkernel.cpp
    15 // 
    16 //
    17 
    18 #include "memmodel.h"
    19 
    20 EXPORT_C TInt Kern::FreeRamInBytes()
    21 	{
    22 	return MM::FreeMemory+MM::CacheMemory;
    23 	}
    24 
    25 /********************************************
    26  * Thread
    27  ********************************************/
    28 
    29 TInt DThread::AllocateSupervisorStack()
    30 	{
    31 	return KErrNone;
    32 	}
    33 
    34 void DThread::FreeSupervisorStack()
    35 	{
    36 	}
    37 
    38 TInt DThread::AllocateUserStack(TInt, TBool)
    39 	{
    40 	return KErrNone;
    41 	}
    42 
    43 void DThread::FreeUserStack()
    44 	{
    45 	iUserStackRunAddress=0;
    46 	}
    47 
    48 TInt DWin32Thread::SetupContext(SThreadCreateInfo& )
    49 	{
    50 	iUserStackSize = 1024*1024; // The default stack reserve size on Windows
    51 	iUserStackRunAddress = iNThread.iUserStackBase-iUserStackSize;
    52 	iNThread.SetAddressSpace(iOwningProcess);
    53 	return KErrNone;
    54 	}
    55 
    56 TBool Exc::IsMagic(TLinAddr /*anAddress*/)
    57 //
    58 // Return TRUE if anAddress is a 'magic' exception handling instruction
    59 //
    60 	{
    61 	return EFalse;
    62 	}
    63