summaryrefslogtreecommitdiff
path: root/arch/hexagon/kernel/vm_entry.S
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-18 22:45:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-23 22:05:21 -0400
commit995218555433b260b58059802e1c01f35b4cd860 (patch)
tree801d384bdc54c104049eee2bf007c02d639a34ce /arch/hexagon/kernel/vm_entry.S
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
hexagon: kernel_thread()/kernel_execve() conversion
introduce sane current_pt_regs(), use it in syscalls where needed. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/hexagon/kernel/vm_entry.S')
-rw-r--r--arch/hexagon/kernel/vm_entry.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/hexagon/kernel/vm_entry.S b/arch/hexagon/kernel/vm_entry.S
index 5b99066cbc8d..1a7fcf502093 100644
--- a/arch/hexagon/kernel/vm_entry.S
+++ b/arch/hexagon/kernel/vm_entry.S
@@ -266,4 +266,8 @@ _K_enter_machcheck:
.globl ret_from_fork
ret_from_fork:
call schedule_tail
+ P0 = cmp.eq(R24, #0);
+ if P0 jump return_from_syscall
+ R0 = R25;
+ callr R24
jump return_from_syscall