From 5cbaba48e6e5c61b55fe01b2b14445e9bce21e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 28 Aug 2019 20:52:37 +0300 Subject: arch/x86: Fix clearing .bss section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using stosl clears 4 bytes at a time. Change-Id: Ie54fcfcb7e5a2a5a88d988476aa69b2a163e919c Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/35139 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel Reviewed-by: Marshall Dawson --- src/arch/x86/assembly_entry.S | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/arch/x86/assembly_entry.S b/src/arch/x86/assembly_entry.S index 0ac59edb4a..bdecebe5bf 100644 --- a/src/arch/x86/assembly_entry.S +++ b/src/arch/x86/assembly_entry.S @@ -41,6 +41,7 @@ _start: movl $(_car_global_end), %ecx movl $(_car_global_start), %edi sub %edi, %ecx + shrl $2, %ecx rep stosl #if ((ENV_VERSTAGE && CONFIG(VERSTAGE_DEBUG_SPINLOOP)) \ -- cgit v1.2.3