os/kernelhwsrv/kernel/eka/euser/epoc/x86/uc_dll.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\euser\epoc\x86\uc_dll.cia
    15 // 
    16 //
    17 
    18 
    19 #include <u32std.h>
    20 #include "x86hlp.inl"
    21 
    22 extern "C" __NAKED__ int RjhGetEbp()
    23 	{
    24 	asm("mov eax, ebp");
    25 	asm("ret");
    26 	}
    27 
    28 extern "C" {
    29 TInt _E32Dll_Body(TInt aReason);
    30 
    31 __NAKED__ TInt _E32Dll(TInt)
    32 	{
    33 	BYTE(0xeb)			// JMP .+16
    34 	BYTE(0x0e)
    35 	BYTE(0x00)
    36 	BYTE(0x00)
    37 	BYTE(0x00)
    38 	BYTE(0x00)
    39 	BYTE(0x00)
    40 	BYTE(0x00)
    41 	BYTE(0x00)
    42 	BYTE(0x00)
    43 	BYTE(0x00)
    44 	BYTE(0x00)
    45 	BYTE(0x00)			// need zero word at offset 12 from entry point
    46 	BYTE(0x00)
    47 	BYTE(0x00)
    48 	BYTE(0x00)
    49 	asm("jmp %a0": : "i"(&_E32Dll_Body));
    50 	}
    51 
    52 }