Skip to content

Commit f63a3e8

Browse files
committed
fixed silly bug in BSS zeroing: only the first quarter of bss was being zeroed
1 parent 137aca5 commit f63a3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/startup.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
mov $_bss_size, %ecx
3838
cmp $0, %ecx
3939
jz skip_bss_zero
40-
shr $4, %ecx
40+
shr $2, %ecx
4141
rep stosl
4242
skip_bss_zero:
4343

0 commit comments

Comments
 (0)