Commit 7cf73995 authored by He Chuyue's avatar He Chuyue Committed by guzitao
Browse files

sw64: fix THREAD_INFO_IN_TASK support

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6ILGG



--------------------------------

Since CONFIG_THREAD_INFO_IN_TASK has been activated, init_thread_info
and __current_thread_info are removed, and compile errors occur if
CONFIG_DYNAMIC_FTRACE=y or CONFIG_RELOCATABLE=y.

This patch replaces init_thread_info with task_thread_info(&init_task)
and fixes the method to relocate task pointer and stack pointer to new
kernel image for kaslr.

Signed-off-by: default avatarHe Chuyue <hechuyue@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 083122ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment