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:
Kyösti Mälkki 2018-05-23 01:13:27 +03:00 committed by Stefan Reinauer
parent 2dbe51a17c
commit a706ad5444
1 changed files with 2 additions and 6 deletions

View File

@ -265,11 +265,9 @@ int start_cpu(struct device *cpu)
struct cpu_info *info;
unsigned long stack_end;
unsigned long stack_base;
unsigned long *stack;
unsigned long apicid;
unsigned int index;
unsigned long count;
int i;
int result;
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));
printk(BIOS_SPEW, "CPU%d: stack_base %p, stack_end %p\n", index,
(void *)stack_base, (void *)stack_end);
/* poison the stack */
for (stack = (void *)stack_base, i = 0; i < CONFIG_STACK_SIZE; i++)
stack[i/sizeof(*stack)] = 0xDEADBEEF;
stacks[index] = stack;
stacks[index] = (void *)stack_base;
/* Record the index and which CPU structure we are using */
info = (struct cpu_info *)stack_end;
info->index = index;