First public contribution.
1 // Copyright (c) 2005-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\nkernsmp\x86\nk_entry.cpp
21 extern TAny* malloc(TUint32 aSize);
22 extern void free(TAny* aCell);
25 // include the static data definitions
27 #define __USE_MALLOC__
32 extern "C" void HwInit0();
33 extern "C" void KernelMain();
36 int atexit(void (__cdecl *)(void))
43 extern TLinAddr RomHeaderAddress;
44 extern TLinAddr SuperPageAddress;
47 void _E32Startup_Body(TLinAddr aRomHeader, TLinAddr aSuperPage)
49 // The main startup program
50 // aRomHeader is address of ROM header passed in by bootstrap
51 // aSuperPage is address of super page passed in by bootstrap
54 RomHeaderAddress = aRomHeader;
55 SuperPageAddress = aSuperPage;
59 KPrintf("RomHeaderAddress = %08x", RomHeaderAddress);
60 KPrintf("SuperPageAddress = %08x", SuperPageAddress);
61 KPrintf("Calling global constructors...");
63 KPrintf("Calling KernelMain()...");