aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-28 20:52:37 +0300
committerAaron Durbin <adurbin@chromium.org>2019-08-29 14:02:58 +0000
commit5cbaba48e6e5c61b55fe01b2b14445e9bce21e45 (patch)
tree997f741344ff3f1d27972a6890ac197127b58b7c
parentafec0716eeeb28677c223b69407269ebbdc0d2cb (diff)
arch/x86: Fix clearing .bss section
Using stosl clears 4 bytes at a time. Change-Id: Ie54fcfcb7e5a2a5a88d988476aa69b2a163e919c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35139 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
-rw-r--r--src/arch/x86/assembly_entry.S1
1 files changed, 1 insertions, 0 deletions
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)) \