equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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\nkernsmp\arm\nccpu.cia |
|
15 // |
|
16 // |
|
17 |
|
18 #include <arm.h> |
|
19 #include <arm_gic.h> |
|
20 #include <arm_scu.h> |
|
21 #include <arm_tmr.h> |
|
22 #include <e32cia.h> |
|
23 |
|
24 extern "C" { |
|
25 |
|
26 __NAKED__ void KickCpu(volatile T_UintPtr* aPtr, T_UintPtr aRegsPhys) |
|
27 { |
|
28 asm("orr r1, r1, #3 "); |
|
29 asm("str r1, [r0] "); |
|
30 __DATA_SYNC_BARRIER__(r0); |
|
31 ARM_SEV; |
|
32 __JUMP(,lr); |
|
33 } |
|
34 |
|
35 __NAKED__ void _ApEntry() |
|
36 { |
|
37 asm("str sp, [r6] "); |
|
38 __DATA_SYNC_BARRIER__(r0); |
|
39 asm("ldr r1, [r4, #%a0]" : : "i" _FOFF(SAPBootInfo,iMain)); |
|
40 asm("mov r0, r4 "); // pointer to SAPBootInfo |
|
41 asm("adr lr, 1f "); |
|
42 __JUMP(,r1); |
|
43 asm("1: "); |
|
44 __ASM_CRASH(); |
|
45 } |
|
46 |
|
47 } |