x86, boot: align the .bss section in the decompressor
authorH. Peter Anvin <hpa@zytor.com>
Fri, 1 May 2009 00:59:36 +0000 (17:59 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 9 May 2009 00:16:21 +0000 (17:16 -0700)
Aligning the .bss section makes it trivial to use large operation
sizes for moving the initialized sections and clearing the .bss.
The alignment chosen (L1 cache) is somewhat arbitrary, but should be
large enough to avoid all known performance traps and small enough to
not cause troubles.

[ Impact: trivial performance enhancement, future patch prep ]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/compressed/vmlinux.lds.S

index 0d26c92d3c7d076563dd8bc8a57d4475111b8e50..dbe515e13fef2c290a65948d8da305ae7fedcc95 100644 (file)
@@ -42,6 +42,7 @@ SECTIONS
                *(.data.*)
                _edata = . ;
        }
+       . = ALIGN(CONFIG_X86_L1_CACHE_BYTES);
        .bss : {
                _bss = . ;
                *(.bss)