Skip to content

Commit adba09f

Browse files
committed
[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>
1 parent de4f6e5 commit adba09f

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

‎arch/xtensa/kernel/head.S‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#include <asm/page.h>
2020
#include <asm/cacheasm.h>
2121

22+
#include <linux/linkage.h>
23+
2224
/*
2325
* This module contains the entry code for kernel images. It performs the
2426
* minimal setup needed to call the generic C routines.
@@ -227,13 +229,14 @@ _startup:
227229
should_never_return:
228230
j should_never_return
229231

230-
/* Define some common data structures here. We define them
231-
* here in this assembly file due to their unusual alignment
232-
* requirements.
233-
*/
234232

235-
.comm swapper_pg_dir,PAGE_SIZE,PAGE_SIZE
236-
.comm empty_bad_page_table,PAGE_SIZE,PAGE_SIZE
237-
.comm empty_bad_page,PAGE_SIZE,PAGE_SIZE
238-
.comm empty_zero_page,PAGE_SIZE,PAGE_SIZE
233+
/*
234+
* BSS section
235+
*/
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
239242

0 commit comments

Comments
 (0)