summaryrefslogtreecommitdiffstats
path: root/arch/hexagon/kernel/vm_entry.S
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-19 04:45:24 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-24 04:05:21 +0200
commit995218555433b260b58059802e1c01f35b4cd860 (patch)
tree801d384bdc54c104049eee2bf007c02d639a34ce /arch/hexagon/kernel/vm_entry.S
parentLinux 3.7-rc1 (diff)
downloadlinux-995218555433b260b58059802e1c01f35b4cd860.tar.xz
linux-995218555433b260b58059802e1c01f35b4cd860.zip
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