kernel/eka/kernel/win32/cboot.cpp
author William Roberts <williamr@symbian.org>
Tue, 15 Jun 2010 16:21:40 +0100
branchGCC_SURGE
changeset 153 1f2940c968a9
parent 0 a41df078684a
permissions -rw-r--r--
Assorted small fixes for GCCe issues - Bug 2967

// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// e32\kernel\win32\cboot.cpp
// 
//

#include "memmodel.h"
#include <emulator.h>

extern "C" void KernelMain();

GLDEF_D TSuperPage SuperPage;

GLDEF_C void BootEpoc()
//
// The emulator boot code
// This is invoked after EKERN static data has been initialised
//
// Need to set up the super page before entering the main kernel startup
//
	{
	const static Emulator::SInit data = {0, &SchedulerLock, &SchedulerUnlock, &SchedulerEscape, &SchedulerReenter, &NThread::ExceptionHandler};
	Emulator::Init(data);
	SuperPageAddress = (TLinAddr)&SuperPage;
//	TheSuperPage().iCpuId = 0;	automatic since TheSuperPage is in .bss
	KernelMain();
	}