diff options
Diffstat (limited to 'include/asm-xtensa/processor.h')
-rw-r--r-- | include/asm-xtensa/processor.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/include/asm-xtensa/processor.h b/include/asm-xtensa/processor.h index 8b96e77c9d82..4feb9f7f35a6 100644 --- a/include/asm-xtensa/processor.h +++ b/include/asm-xtensa/processor.h | |||
@@ -11,24 +11,18 @@ | |||
11 | #ifndef _XTENSA_PROCESSOR_H | 11 | #ifndef _XTENSA_PROCESSOR_H |
12 | #define _XTENSA_PROCESSOR_H | 12 | #define _XTENSA_PROCESSOR_H |
13 | 13 | ||
14 | #ifdef __ASSEMBLY__ | 14 | #include <asm/variant/core.h> |
15 | #define _ASMLANGUAGE | 15 | #include <asm/coprocessor.h> |
16 | #endif | ||
17 | |||
18 | #include <xtensa/config/core.h> | ||
19 | #include <xtensa/config/specreg.h> | ||
20 | #include <xtensa/config/tie.h> | ||
21 | #include <xtensa/config/system.h> | ||
22 | 16 | ||
23 | #include <linux/compiler.h> | 17 | #include <linux/compiler.h> |
24 | #include <asm/ptrace.h> | 18 | #include <asm/ptrace.h> |
25 | #include <asm/types.h> | 19 | #include <asm/types.h> |
26 | #include <asm/coprocessor.h> | 20 | #include <asm/regs.h> |
27 | 21 | ||
28 | /* Assertions. */ | 22 | /* Assertions. */ |
29 | 23 | ||
30 | #if (XCHAL_HAVE_WINDOWED != 1) | 24 | #if (XCHAL_HAVE_WINDOWED != 1) |
31 | #error Linux requires the Xtensa Windowed Registers Option. | 25 | # error Linux requires the Xtensa Windowed Registers Option. |
32 | #endif | 26 | #endif |
33 | 27 | ||
34 | /* | 28 | /* |
@@ -145,11 +139,11 @@ struct thread_struct { | |||
145 | * Note: We set-up ps as if we did a call4 to the new pc. | 139 | * Note: We set-up ps as if we did a call4 to the new pc. |
146 | * set_thread_state in signal.c depends on it. | 140 | * set_thread_state in signal.c depends on it. |
147 | */ | 141 | */ |
148 | #define USER_PS_VALUE ( (1 << XCHAL_PS_WOE_SHIFT) + \ | 142 | #define USER_PS_VALUE ((1 << PS_WOE_BIT) | \ |
149 | (1 << XCHAL_PS_CALLINC_SHIFT) + \ | 143 | (1 << PS_CALLINC_SHIFT) | \ |
150 | (USER_RING << XCHAL_PS_RING_SHIFT) + \ | 144 | (USER_RING << PS_RING_SHIFT) | \ |
151 | (1 << XCHAL_PS_PROGSTACK_SHIFT) + \ | 145 | (1 << PS_UM_BIT) | \ |
152 | (1 << XCHAL_PS_EXCM_SHIFT) ) | 146 | (1 << PS_EXCM_BIT)) |
153 | 147 | ||
154 | /* Clearing a0 terminates the backtrace. */ | 148 | /* Clearing a0 terminates the backtrace. */ |
155 | #define start_thread(regs, new_pc, new_sp) \ | 149 | #define start_thread(regs, new_pc, new_sp) \ |