diff options
Diffstat (limited to 'arch/um/kernel/process_kern.c')
-rw-r--r-- | arch/um/kernel/process_kern.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/um/kernel/process_kern.c b/arch/um/kernel/process_kern.c index 1143f5e522b2..39cf568ccfaf 100644 --- a/arch/um/kernel/process_kern.c +++ b/arch/um/kernel/process_kern.c | |||
@@ -119,7 +119,14 @@ void *_switch_to(void *prev, void *next, void *last) | |||
119 | to->thread.prev_sched = from; | 119 | to->thread.prev_sched = from; |
120 | set_current(to); | 120 | set_current(to); |
121 | 121 | ||
122 | CHOOSE_MODE_PROC(switch_to_tt, switch_to_skas, prev, next); | 122 | do { |
123 | current->thread.saved_task = NULL ; | ||
124 | CHOOSE_MODE_PROC(switch_to_tt, switch_to_skas, prev, next); | ||
125 | if(current->thread.saved_task) | ||
126 | show_regs(&(current->thread.regs)); | ||
127 | next= current->thread.saved_task; | ||
128 | prev= current; | ||
129 | } while(current->thread.saved_task); | ||
123 | 130 | ||
124 | return(current->thread.prev_sched); | 131 | return(current->thread.prev_sched); |
125 | 132 | ||