projects
/
bootcensus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2f94f5
)
fixed clear .bss code
author
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 26 Apr 2018 08:41:46 +0000
(11:41 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 26 Apr 2018 08:41:46 +0000
(11:41 +0300)
src/startup.s
patch
|
blob
|
history
diff --git
a/src/startup.s
b/src/startup.s
index
4e32389
..
82f548e
100644
(file)
--- a/
src/startup.s
+++ b/
src/startup.s
@@
-23,8
+23,9
@@
# zero the BSS section
xor %eax, %eax
- mov _bss_start, %edi
- mov _bss_size, %ecx
+ mov $_bss_start, %edi
+ mov $_bss_size, %ecx
+ cmp $0, %ecx
jz skip_bss_zero
shr $4, %ecx
rep stosl