aboutsummaryrefslogtreecommitdiffstats
path: root/arch/hexagon
diff options
context:
space:
mode:
authorRichard Kuo <rkuo@codeaurora.org>2012-10-23 19:26:01 -0400
committerRichard Kuo <rkuo@codeaurora.org>2013-04-30 20:40:26 -0400
commit3981c4728bcec97f352f8518f05a0015c7df6a3c (patch)
treed5bc669bb171dd2ef71e4d5021d026572d5ba0f0 /arch/hexagon
parent1ce81f4f8727f42c052fe814f3df20bc92fdb168 (diff)
Hexagon: fix up int enable/disable at ret_from_fork
Check return coming out of check_work_pending, and if copy_thread passed us a function in r24, call it. Based on feedback from Al Viro. Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
Diffstat (limited to 'arch/hexagon')
-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 }