Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258047
b: refs/heads/master
c: 685659e
h: refs/heads/master
i:
  258045: a94c60e
  258043: f3d6c1a
  258039: 28c5c3f
  258031: f692a3c
  258015: e9e8c4b
  257983: 2f479e2
  257919: c7e77cf
  257791: b37c385
  257535: eb967fc
  257023: a14972c
  255999: 8b6a99d
  253951: 4e3be88
v: v3
  • Loading branch information
yu liu authored and Avi Kivity committed Jul 12, 2011
1 parent d65a662 commit cc12fc2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a22a2daccfa3ade5cdd9ef1e8a05cf1e6ffca42b
refs/heads/master: 685659ee70db0bac47ffd619c726cf600e504fd7
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/kernel/head_fsl_booke.S
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,6 @@ _GLOBAL(giveup_spe)
evmwumiaa evr6, evr6, evr6 /* evr6 <- ACC = 0 * 0 + ACC */
li r4,THREAD_ACC
evstddx evr6, r4, r3 /* save off accumulator */
mfspr r6,SPRN_SPEFSCR
stw r6,THREAD_SPEFSCR(r3) /* save spefscr register value */
beq 1f
lwz r4,_MSR-STACK_FRAME_OVERHEAD(r5)
lis r3,MSR_SPE@h
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ void flush_spe_to_thread(struct task_struct *tsk)
#ifdef CONFIG_SMP
BUG_ON(tsk != current);
#endif
tsk->thread.spefscr = mfspr(SPRN_SPEFSCR);
giveup_spe(tsk);
}
preempt_enable();
Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/powerpc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,7 @@ void SPEFloatingPointException(struct pt_regs *regs)
int code = 0;
int err;

preempt_disable();
if (regs->msr & MSR_SPE)
giveup_spe(current);
preempt_enable();
flush_spe_to_thread(current);

spefscr = current->thread.spefscr;
fpexc_mode = current->thread.fpexc_mode;
Expand Down

0 comments on commit cc12fc2

Please sign in to comment.