Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[XTENSA] Move common sections into bss sections

Move the fields of the COMMON sections 'swapper_pg_dir' and
'empty_zero_page' to the BSS section. Remove the unused COMMON
sections 'emtpy_bad_page_table' and 'empty_bad_page'.

Signed-off-by: Chris Zankel <chris@zankel.net>

+11 -8
+11 -8
arch/xtensa/kernel/head.S
··· 19 19 #include <asm/page.h> 20 20 #include <asm/cacheasm.h> 21 21 22 + #include <linux/linkage.h> 23 + 22 24 /* 23 25 * This module contains the entry code for kernel images. It performs the 24 26 * minimal setup needed to call the generic C routines. ··· 229 227 should_never_return: 230 228 j should_never_return 231 229 232 - /* Define some common data structures here. We define them 233 - * here in this assembly file due to their unusual alignment 234 - * requirements. 235 - */ 236 230 237 - .comm swapper_pg_dir,PAGE_SIZE,PAGE_SIZE 238 - .comm empty_bad_page_table,PAGE_SIZE,PAGE_SIZE 239 - .comm empty_bad_page,PAGE_SIZE,PAGE_SIZE 240 - .comm empty_zero_page,PAGE_SIZE,PAGE_SIZE 231 + /* 232 + * BSS section 233 + */ 234 + 235 + .section ".bss.page_aligned", "w" 236 + ENTRY(swapper_pg_dir) 237 + .fill PAGE_SIZE, 1, 0 238 + ENTRY(empty_zero_page) 239 + .fill PAGE_SIZE, 1, 0 241 240