lkml.org 
[lkml]   [2022]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH V10 11/22] LoongArch: Add process management
Hi, Xuerui,

On Sun, May 15, 2022 at 5:20 PM WANG Xuerui <kernel@xen0n.name> wrote:
>
> On 5/14/22 16:03, Huacai Chen wrote:
> > Add process management support for LoongArch, including: thread info
> > definition, context switch and process tracing.
> >
> > Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
> > ---
> > arch/loongarch/include/asm/fpu.h | 129 +++++++
> > arch/loongarch/include/asm/idle.h | 9 +
> > arch/loongarch/include/asm/mmu.h | 16 +
> > arch/loongarch/include/asm/mmu_context.h | 152 ++++++++
> > arch/loongarch/include/asm/processor.h | 209 +++++++++++
> > arch/loongarch/include/asm/ptrace.h | 152 ++++++++
> > arch/loongarch/include/asm/switch_to.h | 37 ++
> > arch/loongarch/include/asm/thread_info.h | 106 ++++++
> > arch/loongarch/include/uapi/asm/ptrace.h | 52 +++
> > arch/loongarch/kernel/fpu.S | 264 ++++++++++++++
> > arch/loongarch/kernel/idle.c | 16 +
> > arch/loongarch/kernel/process.c | 260 ++++++++++++++
> > arch/loongarch/kernel/ptrace.c | 431 +++++++++++++++++++++++
> > arch/loongarch/kernel/switch.S | 35 ++
> > 14 files changed, 1868 insertions(+)
> > create mode 100644 arch/loongarch/include/asm/fpu.h
> > create mode 100644 arch/loongarch/include/asm/idle.h
> > create mode 100644 arch/loongarch/include/asm/mmu.h
> > create mode 100644 arch/loongarch/include/asm/mmu_context.h
> > create mode 100644 arch/loongarch/include/asm/processor.h
> > create mode 100644 arch/loongarch/include/asm/ptrace.h
> > create mode 100644 arch/loongarch/include/asm/switch_to.h
> > create mode 100644 arch/loongarch/include/asm/thread_info.h
> > create mode 100644 arch/loongarch/include/uapi/asm/ptrace.h
> > create mode 100644 arch/loongarch/kernel/fpu.S
> > create mode 100644 arch/loongarch/kernel/idle.c
> > create mode 100644 arch/loongarch/kernel/process.c
> > create mode 100644 arch/loongarch/kernel/ptrace.c
> > create mode 100644 arch/loongarch/kernel/switch.S
>
> The context handling code already saw use in released version of strace
> [1] [2], so it appears appropriate to consider the user-space additions
> to be in a reasonably good shape already.
>
> Reviewed-by: WANG Xuerui <git@xen0n.name>
Thanks for your review.

Huacai
>
> [1]: https://github.com/strace/strace/pull/205
> [2]: https://github.com/strace/strace/pull/207
>

\
 
 \ /
  Last update: 2022-05-15 15:26    [W:0.082 / U:0.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site