kernel/eka/kernel/arm/kdebug.cia
author Arnaud Lenoir
Thu, 25 Mar 2010 14:36:12 +0000
branchRCL_3
changeset 84 b379919d420f
parent 0 a41df078684a
permissions -rw-r--r--
Modify the script to solve problem with e32path and change all / to \ to allow to build rom image without any errors!!

// Copyright (c) 2004-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\arm\kdebug.cia
// 
//

#include "kdebug_priv.h"

__NAKED__ TUint DEventHandler::DummyHandler(TKernelEvent /*aEvent*/, TAny* /*a1*/, TAny* /*a2*/)
//
// Debugger breakpoint-able callback.  Will be copied into RAM
//
	{
	//
	// r0=aEvent, r1=a1, r2=a2
	//
	asm("dummystart: ");											// start of fn.
	asm("nop");														// breakpoint-able instruction for the debugger to replace
	asm("nop");														// landing zone
	asm("nop");														// landing zone
	asm("nop");														// landing zone
	asm("nop");														// landing zone
	asm("nop");														// landing zone
	asm("nop");														// landing zone
	asm("mov r0, #%a0" : : "i" (DKernelEventHandler::ERunNext));	// return value
	__JUMP(,lr);													// return
	asm("dummyend:");												// end of fn.
	}

__NAKED__ TUint DEventHandler::DummyHandlerSize()
//
// Size of debugger breakpoint-able callback.
//
	{
	asm("ldr r0, = dummyend - dummystart");
	__JUMP(,lr);
	}