aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/hexagon/kernel/vm_entry.S13
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/hexagon/kernel/vm_entry.S b/arch/hexagon/kernel/vm_entry.S
index 9add73ab57d8..34470911d4a7 100644
--- a/arch/hexagon/kernel/vm_entry.S
+++ b/arch/hexagon/kernel/vm_entry.S
@@ -374,11 +374,20 @@ _K_enter_debug:
374 .globl ret_from_fork 374 .globl ret_from_fork
375ret_from_fork: 375ret_from_fork:
376 { 376 {
377 call schedule_tail; 377 call schedule_tail
378 R16.H = #HI(do_work_pending); 378 R16.H = #HI(do_work_pending);
379 } 379 }
380 { 380 {
381 P0 = cmp.eq(R24, #0);
381 R16.L = #LO(do_work_pending); 382 R16.L = #LO(do_work_pending);
382 R0 = #VM_INT_DISABLE; 383 R0 = #VM_INT_DISABLE;
383 jump check_work_pending; 384 }
385 if P0 jump check_work_pending
386 {
387 R0 = R25;
388 callr R24
389 }
390 {
391 jump check_work_pending
392 R0 = #VM_INT_DISABLE;
384 } 393 }