Skip to content

Commit

Permalink
parisc: Use PRIV_USER in syscall.S
Browse files Browse the repository at this point in the history
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
hdeller committed Nov 1, 2021
1 parent 66e29fc commit fdc9e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/parisc/kernel/syscall.S
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ENTRY(linux_gateway_page)

lws_entry:
gate lws_start, %r0 /* increase privilege */
depi 3, 31, 2, %r31 /* Ensure we return into user mode. */
depi PRIV_USER, 31, 2, %r31 /* Ensure we return into user mode. */

/* Fill from 0xb8 to 0xe0 */
.rept 10
Expand All @@ -89,7 +89,7 @@ lws_entry:
mechanism to work. DO NOT MOVE THIS CODE EVER! */
set_thread_pointer:
gate .+8, %r0 /* increase privilege */
depi 3, 31, 2, %r31 /* Ensure we return into user mode. */
depi PRIV_USER, 31, 2, %r31 /* Ensure we return into user mode. */
be 0(%sr7,%r31) /* return to user space */
mtctl %r26, %cr27 /* move arg0 to the control register */

Expand Down

0 comments on commit fdc9e4e

Please sign in to comment.