kernel/eka/memmodel/epoc/flexible/x86/xinit.cpp
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 1996-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 //
       
    15 
       
    16 #include <x86_mem.h>
       
    17 #include <e32uid.h>
       
    18 
       
    19 // Set up virtual addresses used for cache flushing if this is
       
    20 // done by data read or line allocate
       
    21 void M::SetupCacheFlushPtr(TInt aCache, SCacheInfo& aInfo)
       
    22 	{
       
    23 	}
       
    24 
       
    25 
       
    26 #ifdef __SMP__
       
    27 void M::GetAPBootInfo(TInt /*aCpu*/, volatile SAPBootInfo* /*aInfo*/)
       
    28 	{
       
    29 	}
       
    30 
       
    31 void M::Init2AP()
       
    32 	{
       
    33 	__KTRACE_OPT(KBOOT,Kern::Printf("M::Init2AP()"));
       
    34 	DThread& t = Kern::CurrentThread();
       
    35 	SubScheduler().iAddressSpace = t.iOwningProcess;
       
    36 	t.iNThread.SetAddressSpace(t.iOwningProcess);
       
    37 	t.iNThread.SetAttributes(KThreadAttAddressSpace);
       
    38 	}
       
    39 #endif