diff options
author | Chris Zankel <chris@zankel.net> | 2007-05-31 20:48:07 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2007-05-31 20:48:07 -0400 |
commit | adba09f01577ea441a761a85aacb1e43b58d35c4 (patch) | |
tree | 7d9863285646560a0d7ef2022adc3f61317b3d66 | |
parent | de4f6e5b41bef50fc981410ae8380f27f4e93bf8 (diff) |
[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>
-rw-r--r-- | arch/xtensa/kernel/head.S | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/arch/xtensa/kernel/head.S b/arch/xtensa/kernel/head.S index ea89910efa44..67e69139520b 100644 --- a/arch/xtensa/kernel/head.S +++ b/arch/xtensa/kernel/head.S | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <asm/page.h> | 19 | #include <asm/page.h> |
20 | #include <asm/cacheasm.h> | 20 | #include <asm/cacheasm.h> |
21 | 21 | ||
22 | #include <linux/linkage.h> | ||
23 | |||
22 | /* | 24 | /* |
23 | * This module contains the entry code for kernel images. It performs the | 25 | * This module contains the entry code for kernel images. It performs the |
24 | * minimal setup needed to call the generic C routines. | 26 | * minimal setup needed to call the generic C routines. |
@@ -227,13 +229,14 @@ _startup: | |||
227 | should_never_return: | 229 | should_never_return: |
228 | j should_never_return | 230 | j should_never_return |
229 | 231 | ||
230 | /* Define some common data structures here. We define them | ||
231 | * here in this assembly file due to their unusual alignment | ||
232 | * requirements. | ||
233 | */ | ||
234 | 232 | ||
235 | .comm swapper_pg_dir,PAGE_SIZE,PAGE_SIZE | 233 | /* |
236 | .comm empty_bad_page_table,PAGE_SIZE,PAGE_SIZE | 234 | * BSS section |
237 | .comm empty_bad_page,PAGE_SIZE,PAGE_SIZE | 235 | */ |
238 | .comm empty_zero_page,PAGE_SIZE,PAGE_SIZE | 236 | |
237 | .section ".bss.page_aligned", "w" | ||
238 | ENTRY(swapper_pg_dir) | ||
239 | .fill PAGE_SIZE, 1, 0 | ||
240 | ENTRY(empty_zero_page) | ||
241 | .fill PAGE_SIZE, 1, 0 | ||
239 | 242 | ||