]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Adjust process management for 32BIT/64BIT
authorHuacai Chen <chenhuacai@loongson.cn>
Mon, 8 Dec 2025 10:09:17 +0000 (18:09 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 8 Dec 2025 10:09:17 +0000 (18:09 +0800)
commit4ad04e7c7eed8583bd49509f4aad4d28bc4b399d
tree1da65ca8864333bf0aa52ea5a40d6defeb1a61e7
parentdd55dd0d7e5ddceb6df451dac208af38609d1963
LoongArch: Adjust process management for 32BIT/64BIT

Adjust process management for both 32BIT and 64BIT, including: CPU
context switching, FPU loading/restoring, process dumping and process
tracing routines.

Q: Why modify switch.S?
A: LoongArch32 has no ldptr.d/stptr.d instructions, and asm offsets of
   thead_struct members are too large to be filled in the 12b immediate
   field of ld.w/st.w.

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/elf.h
arch/loongarch/include/asm/inst.h
arch/loongarch/include/uapi/asm/ptrace.h
arch/loongarch/kernel/fpu.S
arch/loongarch/kernel/process.c
arch/loongarch/kernel/ptrace.c
arch/loongarch/kernel/switch.S