mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f4ef9e3d03
commit
be90b7a77f
3 files changed
+11
-5
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||