Re: [PATCH v2 1/1] x86: Rename __{start,end}_init_task to __{start,end}_init_stack

From: Ingo Molnar
Date: Thu Mar 21 2024 - 15:54:49 EST



* Xin Li (Intel) <xin@xxxxxxxxx> wrote:

> The stack of a task has been separated from the memory of a task_struct
> struture for a long time on x86, as a result __{start,end}_init_task no
> longer mark the start and end of the init_task structure, but its stack
> only.
>
> Rename __{start,end}_init_task to __{start,end}_init_stack.
>
> Note other architectures are not affected because __{start,end}_init_task
> are used on x86 only.
>
> Signed-off-by: Xin Li (Intel) <xin@xxxxxxxxx>
> ---
>
> Change since v1:
> * Revert an accident insane change, init_task to init_stack (Jürgen Groß).
> ---
> arch/x86/include/asm/processor.h | 4 ++--
> arch/x86/kernel/head_64.S | 2 +-
> arch/x86/xen/xen-head.S | 2 +-
> include/asm-generic/vmlinux.lds.h | 6 +++---
> 4 files changed, 7 insertions(+), 7 deletions(-)

Note that this is now in conflict with this cleanup by Brian Gerst:

2cb16181a1d1 x86/boot: Simplify boot stack setup

.. which removed __end_init_task[] entirely.

Thanks,

Ingo