Revert "x86/boot: Explicitly clean pcpu stacks in debug builds"

This reverts commit 8a3c4acc99.
It's reportedly broken.
This commit is contained in:
Jan Beulich committed 2013-08-27 15:13:20 +02:00
1 parent 258d27a1d9
commit e15c09f90c
2 files changed
-13

No files matched your search

-9
View File
@@ -13,15 +13,6 @@
mov mmu_cr4_features(%rip),%rcx
mov %rcx,%cr4
#ifndef NDEBUG
/* Clean stack. */
mov stack_start(%rip),%rdi
mov $(STACK_SIZE / 8),%rcx
xor %eax,%eax
rep stosq
#endif
/* Switch to cpu0_stack. */
mov stack_start(%rip),%rsp
or $(STACK_SIZE-CPUINFO_sizeof),%rsp
-4
View File
@@ -659,10 +659,6 @@ static int cpu_smpboot_alloc(unsigned int cpu)
stack_base[cpu] = alloc_xenheap_pages(STACK_ORDER, 0);
if ( stack_base[cpu] == NULL )
goto oom;
#ifndef NDEBUG
for ( order = 0 ; order < (1<<STACK_ORDER); ++order )
clear_page(stack_base[cpu] + order * PAGE_SIZE);
#endif
memguard_guard_stack(stack_base[cpu]);
order = get_order_from_pages(NR_RESERVED_GDT_PAGES);
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.