Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia CompilerCompatibility
authorWilliam Roberts <williamr@symbian.org>
Fri, 12 Feb 2010 11:36:35 +0000
branchCompilerCompatibility
changeset 10 3034dfa79906
parent 9 c52dc72e02c5
child 11 62bf59ab417f
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
ncdengine/engine/group/catalogsdebug.mmp
ncdengine/engine/src/catalogsdebug.cpp
ncdengine/engine/src/stackpointer.cia
ncdengine/engine/src/stackpointer.s
--- a/ncdengine/engine/group/catalogsdebug.mmp	Wed Feb 10 14:50:38 2010 +0000
+++ b/ncdengine/engine/group/catalogsdebug.mmp	Fri Feb 12 11:36:35 2010 +0000
@@ -51,7 +51,7 @@
 SOURCEPATH    ../../engine/src
 SOURCE 	      catalogsdebug.cpp
 #ifndef WINSCW
-SOURCE		  stackpointer.s
+SOURCE		  stackpointer.cia
 #endif
 
 // System include paths
--- a/ncdengine/engine/src/catalogsdebug.cpp	Wed Feb 10 14:50:38 2010 +0000
+++ b/ncdengine/engine/src/catalogsdebug.cpp	Fri Feb 12 11:36:35 2010 +0000
@@ -49,7 +49,7 @@
 #include "e32debug.h"
 
 #ifndef __WINS__
-extern "C" TUint32 GetStackPointer();
+extern TUint32 GetStackPointer();
 #endif
 
 //#define _DDPRINT( x ) RDebug::Printf x
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ncdengine/engine/src/stackpointer.cia	Fri Feb 12 11:36:35 2010 +0000
@@ -0,0 +1,23 @@
+/*
+* Copyright (c) 2010 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:   
+*/
+#include <e32def.h>
+
+__NAKED__ TUint32 GetStackPointer(void)
+		{
+		asm("mov r0,sp");
+		asm("bx lr");
+		}
+
--- a/ncdengine/engine/src/stackpointer.s	Wed Feb 10 14:50:38 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-;
-; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-; All rights reserved.
-; This component and the accompanying materials are made available
-; under the terms of "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: 
-;
-
-
-;.text
-;.global GetStackPointer
-;
-;GetStackPointer:
-;	mov r0,r13
-;	mov pc,r14
-
-	AREA |.text|, CODE, READONLY
-	EXPORT GetStackPointer
-
-GetStackPointer
-	mov	r0,sp
-	bx lr
-	END