From 83113564c4ffc85d38358da2df32ac654258bdd8 Mon Sep 17 00:00:00 2001 From: Xiangyang Wu Date: Fri, 21 Jun 2019 09:35:01 +0800 Subject: [PATCH] UT:Init bss section for 32-bit mode In the current 32-bit mode unit test, there is no bss section initialization and put boot stack on the bss section. Move boot stack definition into data section; Initialize bss section. Signed-off-by: Xiangyang Wu --- x86/cstart.S | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/x86/cstart.S b/x86/cstart.S index fbe47c5..890bc99 100644 --- a/x86/cstart.S +++ b/x86/cstart.S @@ -7,14 +7,12 @@ ipi_vector = 0x20 max_cpus = MAX_TEST_CPUS -.bss +.data . = . + 4096 * max_cpus .align 16 stacktop: -.data - .align 4096 pt: i = 0 @@ -60,7 +58,8 @@ start: mov $stacktop, %esp push %ebx - call setup_multiboot + call bss_init + call setup_multiboot addl $4, %esp call setup_libcflat mov mb_cmdline(%ebx), %eax