Change-Id: I6e0a18d2f73d80260e02eeb5d5817ff0f953c827
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
{
struct kp_core *p, *cur;
struct kp_core_ctlblk *kcb;
+ struct kctx *ctx = current_kctx;
+
+ if (regs->ARM_pc == sched_addr)
+ switch_to_bits_set(ctx, SWITCH_TO_KP);
kcb = kp_core_ctlblk();
cur = kp_core_running();
goto no_kprobe;
}
+ switch_to_bits_reset(ctx, SWITCH_TO_KP);
+
return 0;
no_kprobe:
ptr_ret_addr = (unsigned long *)&tinfo->cpu_context.pc;
ri->sp = NULL;
ri->task = tinfo->task;
+ switch_to_bits_set(kctx_by_task(tinfo->task), SWITCH_TO_RP);
} else {
ptr_ret_addr = (unsigned long *)®s->ARM_lr;
ri->sp = (unsigned long *)regs->ARM_sp;