Skip to content

Commit 8311356

Browse files
Xiangyang Wushenfang2019
authored andcommitted
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 <[email protected]>
1 parent 361261a commit 8311356

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

x86/cstart.S

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ ipi_vector = 0x20
77

88
max_cpus = MAX_TEST_CPUS
99

10-
.bss
10+
.data
1111

1212
. = . + 4096 * max_cpus
1313
.align 16
1414
stacktop:
1515

16-
.data
17-
1816
.align 4096
1917
pt:
2018
i = 0
@@ -60,7 +58,8 @@ start:
6058
mov $stacktop, %esp
6159

6260
push %ebx
63-
call setup_multiboot
61+
call bss_init
62+
call setup_multiboot
6463
addl $4, %esp
6564
call setup_libcflat
6665
mov mb_cmdline(%ebx), %eax

0 commit comments

Comments
 (0)