kernel/eka/euser/epoc/x86/uc_dll.cia
author Mike Kinghan <mikek@symbian.org>
Mon, 26 Jul 2010 11:09:46 +0100
branchGCC_SURGE
changeset 229 07a685bbdd3d
parent 0 a41df078684a
permissions -rw-r--r--
Further fix for bug 3322 - Non-portable case-sensitivity and path-delimiter fluff in e32test build.

// Copyright (c) 2007-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\euser\epoc\x86\uc_dll.cia
// 
//


#include <u32std.h>
#include "x86hlp.inl"

extern "C" __NAKED__ int RjhGetEbp()
	{
	asm("mov eax, ebp");
	asm("ret");
	}

extern "C" {
TInt _E32Dll_Body(TInt aReason);

__NAKED__ TInt _E32Dll(TInt)
	{
	BYTE(0xeb)			// JMP .+16
	BYTE(0x0e)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)			// need zero word at offset 12 from entry point
	BYTE(0x00)
	BYTE(0x00)
	BYTE(0x00)
	asm("jmp %a0": : "i"(&_E32Dll_Body));
	}

}