author | William Roberts <williamr@symbian.org> |
Fri, 12 Feb 2010 11:36:35 +0000 | |
branch | CompilerCompatibility |
changeset 10 | 3034dfa79906 |
permissions | -rw-r--r-- |
10
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
/* |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
* All rights reserved. |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
* |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
* |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
* Contributors: |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
* |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
* Description: |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
*/ |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
#include <e32def.h> |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
|
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
__NAKED__ TUint32 GetStackPointer(void) |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
{ |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
asm("mov r0,sp"); |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
asm("bx lr"); |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
} |
3034dfa79906
Fix for Bug 1807 - replace ARMCC assembler file stackpointer.s with portable stackpointer.cia
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |