arch/x86: honor CONFIG_INIT_STACKS in 64-bit mode
Initialize the IRQ stacks with 0xAA bytes when the option is enabled. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
a926fa0a82
commit
dc0314af7f
1 changed files with 7 additions and 0 deletions
|
@ -92,6 +92,13 @@ __start:
|
||||||
movq $__bss_num_qwords, %rcx
|
movq $__bss_num_qwords, %rcx
|
||||||
rep stosq
|
rep stosq
|
||||||
|
|
||||||
|
#ifdef CONFIG_INIT_STACKS
|
||||||
|
movq $0xAAAAAAAAAAAAAAAA, %rax
|
||||||
|
movq $ist, %rdi
|
||||||
|
movq $((CONFIG_ISR_DEPTH*CONFIG_ISR_STACK_SIZE)>>3), %rcx
|
||||||
|
rep stosq
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_X86_MULTIBOOT_INFO
|
#ifdef CONFIG_X86_MULTIBOOT_INFO
|
||||||
/* If EBX isn't 0, then we have a valid multiboot info struct. */
|
/* If EBX isn't 0, then we have a valid multiboot info struct. */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue