Skip to content

Commit

Permalink
thread: remove THREAD_LOCAL_EXCEPTION_SPS
Browse files Browse the repository at this point in the history
Removes unused THREAD_LOCAL_EXCEPTION_SPS code.

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU virt platform)
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
  • Loading branch information
jenswi-linaro committed Nov 5, 2014
1 parent 3d34e12 commit 65b5d06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
32 changes: 0 additions & 32 deletions core/arch/arm32/kernel/thread_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -183,26 +183,10 @@ FUNC thread_resume , :
cps #CPSR_MODE_SYS
ldm r12!, {sp, lr}

#ifdef THREAD_LOCAL_EXCEPTION_SPS
cps #CPSR_MODE_IRQ
ldm r12!, {r1, sp, lr}
msr spsr_fsxc, r1
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/

cps #CPSR_MODE_SVC
ldm r12!, {r1, sp, lr}
msr spsr_fsxc, r1

#ifdef THREAD_LOCAL_EXCEPTION_SPS
cps #CPSR_MODE_ABT
ldm r12!, {r1, sp, lr}
msr spsr_fsxc, r1

cps #CPSR_MODE_UND
ldm r12!, {r1, sp, lr}
msr spsr_fsxc, r1
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/

cps #CPSR_MODE_SVC
ldm r12, {r1, r2}
push {r1, r2}
Expand Down Expand Up @@ -249,26 +233,10 @@ LOCAL_FUNC thread_save_state , :
cps #CPSR_MODE_SYS
stm r0!, {sp, lr}

#ifdef THREAD_LOCAL_EXCEPTION_SPS
cps #CPSR_MODE_IRQ
mrs r1, spsr
stm r0!, {r1, sp, lr}
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/

cps #CPSR_MODE_SVC
mrs r1, spsr
stm r0!, {r1, sp, lr}

#ifdef THREAD_LOCAL_EXCEPTION_SPS
cps #CPSR_MODE_ABT
mrs r1, spsr
stm r0!, {r1, sp, lr}

cps #CPSR_MODE_UND
mrs r1, spsr
stm r0!, {r1, sp, lr}
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/

msr cpsr, r6 /* Restore mode */

mov r0, r5 /* Return original CPSR */
Expand Down
13 changes: 0 additions & 13 deletions core/arch/arm32/kernel/thread_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,9 @@ struct thread_ctx_regs {
uint32_t r12;
uint32_t usr_sp;
uint32_t usr_lr;
#ifdef THREAD_LOCAL_EXCEPTION_SPS
uint32_t irq_spsr;
uint32_t irq_sp;
uint32_t irq_lr;
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/
uint32_t svc_spsr;
uint32_t svc_sp;
uint32_t svc_lr;
#ifdef THREAD_LOCAL_EXCEPTION_SPS
uint32_t abt_spsr;
uint32_t abt_sp;
uint32_t abt_lr;
uint32_t und_spsr;
uint32_t und_sp;
uint32_t und_lr;
#endif /*THREAD_LOCAL_EXCEPTION_SPS*/
uint32_t pc;
uint32_t cpsr;
};
Expand Down

0 comments on commit 65b5d06

Please sign in to comment.