arm64: introduce is_a32_compat_{task, thread} for AArch32 compat
hulk inclusion category: feature bugzilla: NA CVE: NA --------------------------- Based on patch of Andrew Pinski. This patch introduces is_a32_compat_task and is_a32_thread so it is easier to say this is a a32 specific thread or a generic compat thread/task. Corresponding functions are located in <asm/is_compat.h> to avoid mess in headers. Some files include both <linux/compat.h> and <asm/compat.h>, and this is wrong because <linux/compat.h> has <asm/compat.h> already included. It was fixed too. Signed-off-by: NYury Norov <ynorov@caviumnetworks.com> Signed-off-by: NAndrew Pinski <Andrew.Pinski@caviumnetworks.com> Signed-off-by: NBamvor Jian Zhang <bamv2005@gmail.com> Conflicts: arch/arm64/include/asm/processor.h arch/arm64/kernel/process.c arch/arm64/kernel/syscall.c [wangxiongfeng: fix conflicts in arch/arm64/include/asm/processor.h because of the following commits: 2f26fc4e0 arm64: compat: Reduce address limit 2a1d3f8a9 arm64: ptrace: Override SPSR.SS when single-stepping is enabled] Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com <mailto:guohanjun@huawei.com>> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录