kernel/eka/kernel/win32/k_entry.cpp
changeset 0 a41df078684a
child 50 999bb78c71ac
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 // e32\kernel\win32\k_entry.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <kernel/kernel.h>
       
    19 
       
    20 // include the static data definitions
       
    21 #define __FLTUSED
       
    22 #include "win32crt.h"
       
    23 
       
    24 // include compiler helpers
       
    25 #include "x86hlp.inl"
       
    26 
       
    27 GLREF_C void BootEpoc();
       
    28 
       
    29 GLDEF_D TBool EmulRunExe;
       
    30 
       
    31 extern "C"
       
    32 int atexit(void (__cdecl *)(void))
       
    33 	{
       
    34 	return 0;
       
    35 	}
       
    36 
       
    37 extern "C"
       
    38 EXPORT_C void _E32Startup(TBool aRunExe)
       
    39 //
       
    40 // Ordinal 1 - used by EXEs to boot EPOC
       
    41 //
       
    42 	{
       
    43 	constructStatics();
       
    44 	EmulRunExe = aRunExe;
       
    45 	BootEpoc();
       
    46 	}