diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-04-30 20:59:36 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-08 20:16:21 -0400 |
commit | 0b4eb462da10f832b28d518abffa4d77805928a0 (patch) | |
tree | b92e21993c1f26143811de87dd8988213e823582 /arch/x86/boot | |
parent | 83c4832683bc8ebcd1687b3c0bf3ba1ab253dd4f (diff) |
x86, boot: align the .bss section in the decompressor
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>
Diffstat (limited to 'arch/x86/boot')
-rw-r--r-- | arch/x86/boot/compressed/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/vmlinux.lds.S b/arch/x86/boot/compressed/vmlinux.lds.S index 0d26c92d3c7d..dbe515e13fef 100644 --- a/arch/x86/boot/compressed/vmlinux.lds.S +++ b/arch/x86/boot/compressed/vmlinux.lds.S | |||
@@ -42,6 +42,7 @@ SECTIONS | |||
42 | *(.data.*) | 42 | *(.data.*) |
43 | _edata = . ; | 43 | _edata = . ; |
44 | } | 44 | } |
45 | . = ALIGN(CONFIG_X86_L1_CACHE_BYTES); | ||
45 | .bss : { | 46 | .bss : { |
46 | _bss = . ; | 47 | _bss = . ; |
47 | *(.bss) | 48 | *(.bss) |