]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: Drop stale comment about zeroing the stack
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 16 Sep 2024 11:56:06 +0000 (12:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 23 Sep 2024 14:46:58 +0000 (15:46 +0100)
This used to be true, but was altered by commit 37786b23b027 ("x86/cet: Remove
writeable mapping of the BSPs shadow stack") which moved cpu0_stack into
.init.bss.stack_aligned.

Fixes: 37786b23b027 ("x86/cet: Remove writeable mapping of the BSPs shadow stack")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S

index 12bbb97f33d42623fc9f86435fa8d09e23967868..cfc5a7b47d29c8ed0cc1e4f8e9c9fca233046620 100644 (file)
@@ -652,11 +652,7 @@ trampoline_setup:
         cmpb    $0, sym_esi(efi_platform)
         jnz     1f
 
-        /*
-         * Initialise the BSS.
-         *
-         * !!! WARNING - also zeroes the current stack !!!
-         */
+        /* Initialise the BSS. */
         lea     sym_esi(__bss_start), %edi
         lea     sym_esi(__bss_end), %ecx
         sub     %edi,%ecx