arch/x86/lapic: Remove second stack poisoning
It was already done once in c_start.S. Change-Id: I1cb0ea25251644dbd1127d177247a02ba52bb550 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/30796 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
2dbe51a17c
commit
a706ad5444
1 changed files with 2 additions and 6 deletions
|
@ -265,11 +265,9 @@ int start_cpu(struct device *cpu)
|
||||||
struct cpu_info *info;
|
struct cpu_info *info;
|
||||||
unsigned long stack_end;
|
unsigned long stack_end;
|
||||||
unsigned long stack_base;
|
unsigned long stack_base;
|
||||||
unsigned long *stack;
|
|
||||||
unsigned long apicid;
|
unsigned long apicid;
|
||||||
unsigned int index;
|
unsigned int index;
|
||||||
unsigned long count;
|
unsigned long count;
|
||||||
int i;
|
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
spin_lock(&start_cpu_lock);
|
spin_lock(&start_cpu_lock);
|
||||||
|
@ -287,10 +285,8 @@ int start_cpu(struct device *cpu)
|
||||||
stack_base = ((unsigned long)_estack) - (CONFIG_STACK_SIZE*(index+1));
|
stack_base = ((unsigned long)_estack) - (CONFIG_STACK_SIZE*(index+1));
|
||||||
printk(BIOS_SPEW, "CPU%d: stack_base %p, stack_end %p\n", index,
|
printk(BIOS_SPEW, "CPU%d: stack_base %p, stack_end %p\n", index,
|
||||||
(void *)stack_base, (void *)stack_end);
|
(void *)stack_base, (void *)stack_end);
|
||||||
/* poison the stack */
|
stacks[index] = (void *)stack_base;
|
||||||
for (stack = (void *)stack_base, i = 0; i < CONFIG_STACK_SIZE; i++)
|
|
||||||
stack[i/sizeof(*stack)] = 0xDEADBEEF;
|
|
||||||
stacks[index] = stack;
|
|
||||||
/* Record the index and which CPU structure we are using */
|
/* Record the index and which CPU structure we are using */
|
||||||
info = (struct cpu_info *)stack_end;
|
info = (struct cpu_info *)stack_end;
|
||||||
info->index = index;
|
info->index = index;
|
||||||
|
|
Loading…
Reference in a new issue