mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
parisc: Use PRIV_USER in syscall.S
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
66e29fcda1
commit
fdc9e4e0ef
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue