x86/traps: Introduce bsp_traps_reinit()

... to abstract away updating the refereces to the old BSP stack.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2025-08-14 21:49:27 +01:00
1 parent f4ef9e3d03
commit be90b7a77f
3 files changed
+11 -5

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
void bsp_early_traps_init(void);
void traps_init(void);
void bsp_traps_reinit(void);
void percpu_traps_init(void);
extern unsigned int ler_msr;
+1 -5
View File
@@ -902,11 +902,7 @@ static void __init noreturn reinit_bsp_stack(void)
unsigned long *stack = (void*)(get_stack_bottom() & ~(STACK_SIZE - 1));
int rc;
/* Update TSS and ISTs */
load_system_tables();
/* Update SYSCALL trampolines */
percpu_traps_init();
bsp_traps_reinit();
stack_base[0] = stack;
+9
View File
@@ -107,6 +107,15 @@ void __init traps_init(void)
percpu_traps_init();
}
/*
* Re-initialise all state referencing the early-boot stack.
*/
void __init bsp_traps_reinit(void)
{
load_system_tables();
percpu_traps_init();
}
/*
* Set up per-CPU linkage registers for exception, interrupt and syscall
* handling.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.