Commit fdc9e4e0 authored by Helge Deller's avatar Helge Deller

parisc: Use PRIV_USER in syscall.S

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 66e29fcd
...@@ -78,7 +78,7 @@ ENTRY(linux_gateway_page) ...@@ -78,7 +78,7 @@ ENTRY(linux_gateway_page)
lws_entry: lws_entry:
gate lws_start, %r0 /* increase privilege */ 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 */ /* Fill from 0xb8 to 0xe0 */
.rept 10 .rept 10
...@@ -89,7 +89,7 @@ lws_entry: ...@@ -89,7 +89,7 @@ lws_entry:
mechanism to work. DO NOT MOVE THIS CODE EVER! */ mechanism to work. DO NOT MOVE THIS CODE EVER! */
set_thread_pointer: set_thread_pointer:
gate .+8, %r0 /* increase privilege */ 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 */ be 0(%sr7,%r31) /* return to user space */
mtctl %r26, %cr27 /* move arg0 to the control register */ mtctl %r26, %cr27 /* move arg0 to the control register */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment