|
@@ -186,6 +186,7 @@ ENTRY(__switch_to)
|
|
|
stg %r5,__LC_THREAD_INFO # store thread info of next
|
|
|
stg %r15,__LC_KERNEL_STACK # store end of kernel stack
|
|
|
lg %r15,__THREAD_ksp(%r1) # load kernel stack of next
|
|
|
+ /* c4 is used in guest detection: arch/s390/kernel/perf_cpum_sf.c */
|
|
|
lctl %c4,%c4,__TASK_pid(%r3) # load pid to control reg. 4
|
|
|
mvc __LC_CURRENT_PID(4,%r0),__TASK_pid(%r3) # store pid of next
|
|
|
lmg %r6,%r15,__SF_GPRS(%r15) # load gprs of next task
|