powerpc: 'current_set' is now a table of task_struct pointers
The table of pointers 'current_set' has been used for retrieving the stack and current. They used to be thread_info pointers as they were pointing to the stack and current was taken from the 'task' field of the thread_info. Now, the pointers of 'current_set' table are now both pointers to task_struct and pointers to thread_info. As they are used to get current, and the stack pointer is retrieved from current's stack field, this patch changes their type to task_struct, and renames secondary_ti to secondary_current. Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
这个提交包含在:
@@ -1020,8 +1020,8 @@ _GLOBAL(start_secondary_47x)
|
||||
/* Now we can get our task struct and real stack pointer */
|
||||
|
||||
/* Get current's stack and current */
|
||||
lis r1,secondary_ti@ha
|
||||
lwz r2,secondary_ti@l(r1)
|
||||
lis r2,secondary_current@ha
|
||||
lwz r2,secondary_current@l(r2)
|
||||
lwz r1,TASK_STACK(r2)
|
||||
|
||||
/* Current stack pointer */
|
||||
|
在新工单中引用
屏蔽一个用户