aboutsummaryrefslogtreecommitdiff
path: root/arch/hexagon/kernel/vm_entry.S
diff options
context:
space:
mode:
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 cd71673ac25..425e50c694f 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