kerneltest/f32test/loader/security/uc_exex86.cia
changeset 9 96e5fb8b040d
equal deleted inserted replaced
-1:000000000000 9:96e5fb8b040d
       
     1 // Copyright (c) 2008-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 // f32test\loader\security\uc_exex86.cia
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <u32std.h>
       
    19 #include "x86hlp.inl"
       
    20 
       
    21 extern "C" {
       
    22 
       
    23 // Minimal entry point which won't cause any code relocations to be included
       
    24 __NAKED__ TInt _E32Startup()
       
    25 	{
       
    26 	BYTE(0xeb)			// JMP .+16
       
    27 	BYTE(0x0e)
       
    28 	BYTE(0x00)
       
    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)			// need zero word at offset 12 from entry point
       
    39 	BYTE(0x00)
       
    40 	BYTE(0x00)
       
    41 	BYTE(0x00)
       
    42 
       
    43 	BYTE(0xcb) //asm("retf"); GCC doesn't recognise retf
       
    44 	}
       
    45 
       
    46 
       
    47 }