projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4b93ba
)
xtensa: clean up stpill_registers
author
Max Filippov
<
[email protected]
>
Sat, 6 Apr 2013 00:10:13 +0000
(
04:10
+0400)
committer
Chris Zankel
<
[email protected]
>
Thu, 9 May 2013 08:07:10 +0000
(
01:07
-0700)
- remove unused asm parameters;
- fix EXCM bit setting in the PS SR during _spill_registers call.
Signed-off-by: Max Filippov <
[email protected]
>
Signed-off-by: Chris Zankel <
[email protected]
>
arch/xtensa/include/asm/traps.h
patch
|
blob
|
history
diff --git
a/arch/xtensa/include/asm/traps.h
b/arch/xtensa/include/asm/traps.h
index b5464ef3cf66b4184714a178b193a0c3e3c07c70..917488a0ab00f12b9c49ac7e13b72ea5ea28eecb 100644
(file)
--- a/
arch/xtensa/include/asm/traps.h
+++ b/
arch/xtensa/include/asm/traps.h
@@
-22,10
+22,9
@@
extern void do_unhandled(struct pt_regs *regs, unsigned long exccause);
static inline void spill_registers(void)
{
- unsigned int a0, ps;
__asm__ __volatile__ (
- "movi a14, "
__stringify(PS_EXCM_BIT | LOCKLEVEL)
"\n\t"
+ "movi a14, "
__stringify((1 << PS_EXCM_BIT) | LOCKLEVEL)
"\n\t"
"mov a12, a0\n\t"
"rsr a13, sar\n\t"
"xsr a14, ps\n\t"
@@
-35,7
+34,7
@@
static inline void spill_registers(void)
"mov a0, a12\n\t"
"wsr a13, sar\n\t"
"wsr a14, ps\n\t"
- : :
"a" (&a0), "a" (&ps)
+ : :
#if defined(CONFIG_FRAME_POINTER)
: "a2", "a3", "a4", "a11", "a12", "a13", "a14", "a15",
#else