Skip to content

Commit 8f6c0c2

Browse files
John David AnglinKyle McMartin
authored andcommitted
parisc: Avoid interruption in critical region in entry.S
Signed-off-by: John David Anglin <dave.anglin@nrc-cnrc.gc.ca> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
1 parent 53e30d0 commit 8f6c0c2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/parisc/kernel/entry.S‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,9 +2076,10 @@ syscall_restore:
20762076
LDREG TASK_PT_GR31(%r1),%r31 /* restore syscall rp */
20772077

20782078
/* NOTE: We use rsm/ssm pair to make this operation atomic */
2079+
LDREG TASK_PT_GR30(%r1),%r1 /* Get user sp */
20792080
rsm PSW_SM_I, %r0
2080-
LDREG TASK_PT_GR30(%r1),%r30 /* restore user sp */
2081-
mfsp %sr3,%r1 /* Get users space id */
2081+
copy %r1,%r30 /* Restore user sp */
2082+
mfsp %sr3,%r1 /* Get user space id */
20822083
mtsp %r1,%sr7 /* Restore sr7 */
20832084
ssm PSW_SM_I, %r0
20842085

0 commit comments

Comments
 (0)