aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/head.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/kernel/head.S')
-rw-r--r--arch/xtensa/kernel/head.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/xtensa/kernel/head.S b/arch/xtensa/kernel/head.S
index 91d9095284de..df88f98737f4 100644
--- a/arch/xtensa/kernel/head.S
+++ b/arch/xtensa/kernel/head.S
@@ -7,7 +7,7 @@
7 * License. See the file "COPYING" in the main directory of this archive 7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details. 8 * for more details.
9 * 9 *
10 * Copyright (C) 2001 - 2005 Tensilica Inc. 10 * Copyright (C) 2001 - 2008 Tensilica Inc.
11 * 11 *
12 * Chris Zankel <chris@zankel.net> 12 * Chris Zankel <chris@zankel.net>
13 * Marc Gauthier <marc@tensilica.com, marc@alumni.uwaterloo.ca> 13 * Marc Gauthier <marc@tensilica.com, marc@alumni.uwaterloo.ca>
@@ -128,14 +128,14 @@ ENTRY(_startup)
128 wsr a0, cpenable 128 wsr a0, cpenable
129#endif 129#endif
130 130
131 /* Set PS.INTLEVEL=1, PS.WOE=0, kernel stack, PS.EXCM=0 131 /* Set PS.INTLEVEL=LOCKLEVEL, PS.WOE=0, kernel stack, PS.EXCM=0
132 * 132 *
133 * Note: PS.EXCM must be cleared before using any loop 133 * Note: PS.EXCM must be cleared before using any loop
134 * instructions; otherwise, they are silently disabled, and 134 * instructions; otherwise, they are silently disabled, and
135 * at most one iteration of the loop is executed. 135 * at most one iteration of the loop is executed.
136 */ 136 */
137 137
138 movi a1, 1 138 movi a1, LOCKLEVEL
139 wsr a1, ps 139 wsr a1, ps
140 rsync 140 rsync
141 141
@@ -211,7 +211,8 @@ ENTRY(_startup)
211 movi a1, init_thread_union 211 movi a1, init_thread_union
212 addi a1, a1, KERNEL_STACK_SIZE 212 addi a1, a1, KERNEL_STACK_SIZE
213 213
214 movi a2, 0x00040001 # WOE=1, INTLEVEL=1, UM=0 214 movi a2, (1 << PS_WOE_BIT) | LOCKLEVEL
215 # WOE=1, INTLEVEL=LOCKLEVEL, UM=0
215 wsr a2, ps # (enable reg-windows; progmode stack) 216 wsr a2, ps # (enable reg-windows; progmode stack)
216 rsync 217 rsync
217 218