Skip to content

Commit

Permalink
parisc: Avoid interruption in critical region in entry.S
Browse files Browse the repository at this point in the history
Signed-off-by: John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
  • Loading branch information
John David Anglin authored and Kyle McMartin committed May 30, 2010
1 parent 53e30d0 commit 8f6c0c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/parisc/kernel/entry.S
Expand Up @@ -2076,9 +2076,10 @@ syscall_restore:
LDREG TASK_PT_GR31(%r1),%r31 /* restore syscall rp */

/* NOTE: We use rsm/ssm pair to make this operation atomic */
LDREG TASK_PT_GR30(%r1),%r1 /* Get user sp */
rsm PSW_SM_I, %r0
LDREG TASK_PT_GR30(%r1),%r30 /* restore user sp */
mfsp %sr3,%r1 /* Get users space id */
copy %r1,%r30 /* Restore user sp */
mfsp %sr3,%r1 /* Get user space id */
mtsp %r1,%sr7 /* Restore sr7 */
ssm PSW_SM_I, %r0

Expand Down

0 comments on commit 8f6c0c2

Please sign in to comment.