Skip to content

Commit

Permalink
UT:Init bss section for 32-bit mode
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Xiangyang Wu authored and shenfang2019 committed Aug 26, 2022
1 parent 361261a commit 8311356
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x86/cstart.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8311356

Please sign in to comment.