x86/fred: Move FRED RSP initialization into a separate function
authorXin Li (Intel) <xin@zytor.com>
Tue, 9 Jul 2024 15:40:47 +0000 (08:40 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 13 Aug 2024 19:59:21 +0000 (21:59 +0200)
commit73270c1f2369fb37683121ebe097cd37172602b6
tree3f8968a3e4c5a021c64e3fa4da8dc8d036d46e03
parent989b5cfaa7b6054f4e1bde914470ee091c23e6a5
x86/fred: Move FRED RSP initialization into a separate function

To enable FRED earlier, move the RSP initialization out of
cpu_init_fred_exceptions() into cpu_init_fred_rsps().

This is required as the FRED RSP initialization depends on the availability
of the CPU entry areas which are set up late in trap_init(),

No functional change intended. Marked with Fixes as it's a depedency for
the real fix.

Fixes: 14619d912b65 ("x86/fred: FRED entry/exit and dispatch code")
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240709154048.3543361-3-xin@zytor.com
arch/x86/include/asm/fred.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fred.c