Commit 67f3fa0d authored by Jialin Zhang's avatar Jialin Zhang
Browse files

kabi: reserve space for thread_info structure

hulk inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I90MTG



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

Reserve space for arm64 and x86 thread_info structure

Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent 49a22666
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ struct task_struct;
#include <asm/memory.h>
#include <asm/stack_pointer.h>
#include <asm/types.h>
#include <linux/kabi.h>

/*
 * low level task data that entry.S needs immediate access to.
@@ -46,6 +47,9 @@ struct thread_info {
	u64			mpam_partid_pmg;
#endif
	u32			cpu;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

#define thread_saved_pc(tsk)	\
+4 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#include <asm/page.h>
#include <asm/percpu.h>
#include <asm/types.h>
#include <linux/kabi.h>

/*
 * TOP_OF_KERNEL_STACK_PADDING is a number of unused bytes that we
@@ -60,6 +61,9 @@ struct thread_info {
#ifdef CONFIG_SMP
	u32			cpu;		/* current CPU */
#endif

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

#define INIT_THREAD_INFO(tsk)			\