Skip to content

Commit

Permalink
s390/boot: avoid unnecessary zeroing of .bss section
Browse files Browse the repository at this point in the history
.bss section is a part of the decompressor's image now, linker fills it
with zeros already. No need do it with memset additionally.

Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
  • Loading branch information
Vasily Gorbik committed Sep 21, 2020
1 parent 48175fe commit bcf1650
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/s390/boot/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,6 @@ ENTRY(startup_kdump)
spt 6f-.LPG0(%r13)
mvc __LC_LAST_UPDATE_TIMER(8),6f-.LPG0(%r13)
l %r15,.Lstack-.LPG0(%r13)
// Clear decompressor's BSS section
larl %r2,_bss
slgr %r3,%r3
larl %r4,_ebss
slgr %r4,%r2
brasl %r14,memset
brasl %r14,verify_facilities
brasl %r14,startup_kernel

Expand Down

0 comments on commit bcf1650

Please sign in to comment.