os/kernelhwsrv/kernel/eka/nkern/x86/nk_entry.cia
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-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\nkern\x86\nk_entry.cia
    15 // 
    16 //
    17 
    18 #include <x86.h>
    19 #include "x86hlp.inl"
    20 
    21 extern "C" {
    22 
    23 void _E32Startup_Body(TLinAddr aRomHeader, TLinAddr aSuperPage);
    24 
    25 __NAKED__ void _E32Startup(TLinAddr, TLinAddr)
    26 	{
    27 	BYTE(0xeb)			// JMP .+16
    28 	BYTE(0x0e)
    29 	BYTE(0x00)
    30 	BYTE(0x00)
    31 	BYTE(0x00)
    32 	BYTE(0x00)
    33 	BYTE(0x00)
    34 	BYTE(0x00)
    35 	BYTE(0x00)
    36 	BYTE(0x00)
    37 	BYTE(0x00)
    38 	BYTE(0x00)
    39 	BYTE(0x00)			// need zero word at offset 12 from entry point
    40 	BYTE(0x00)
    41 	BYTE(0x00)
    42 	BYTE(0x00)
    43 	asm("jmp %a0": :"i"(&_E32Startup_Body));
    44 	}
    45 
    46 }
    47