|
1 // |
|
2 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 ////////////////////////////////////////////////////////////////////////////// |
|
17 // |
|
18 // NaviEngine script to stop all CPU cores. |
|
19 // |
|
20 // Change History: |
|
21 // |
|
22 // 08/05/2009 1.0 : Initial version |
|
23 // |
|
24 ////////////////////////////////////////////////////////////////////////////// |
|
25 |
|
26 // Why is this required? |
|
27 // Because it doesn't work if we use cpu type as &CpuType! |
|
28 // Someone should work out why.... |
|
29 sys.cpu ARM11MPCORE |
|
30 |
|
31 ; CPU 3 |
|
32 print "Stopping core 3..." |
|
33 system.multicore irpre 0. |
|
34 system.multicore drpre 0. |
|
35 system.multicore irpost 15. |
|
36 system.multicore drpost 3. |
|
37 |
|
38 sys.mode.attach |
|
39 |
|
40 if run() |
|
41 break; |
|
42 |
|
43 sys.down |
|
44 |
|
45 ; CPU 2 |
|
46 print "Stopping core 2..." |
|
47 system.multicore irpre 5. |
|
48 system.multicore drpre 1. |
|
49 system.multicore irpost 10. |
|
50 system.multicore drpost 2. |
|
51 |
|
52 sys.mode.attach |
|
53 |
|
54 if run() |
|
55 break; |
|
56 |
|
57 sys.down |
|
58 |
|
59 ; CPU 1 |
|
60 print "Stopping core 1..." |
|
61 system.multicore irpre 10. |
|
62 system.multicore drpre 2. |
|
63 system.multicore irpost 5. |
|
64 system.multicore drpost 1. |
|
65 |
|
66 sys.mode.attach |
|
67 |
|
68 if run() |
|
69 break; |
|
70 |
|
71 sys.down |
|
72 |
|
73 ; CPU 0 |
|
74 print "Stopping core 0..." |
|
75 system.multicore irpre 15. |
|
76 system.multicore drpre 3. |
|
77 system.multicore irpost 0. |
|
78 system.multicore drpost 0. |
|
79 |
|
80 sys.mode.attach |
|
81 |
|
82 if run() |
|
83 break; |
|
84 |