Skip to content

Commit

Permalink
[XTENSA] Move common sections into bss sections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Zankel committed Jun 1, 2007
1 parent de4f6e5 commit adba09f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions arch/xtensa/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <asm/page.h>
#include <asm/cacheasm.h>

#include <linux/linkage.h>

/*
* This module contains the entry code for kernel images. It performs the
* minimal setup needed to call the generic C routines.
Expand Down Expand Up @@ -227,13 +229,14 @@ _startup:
should_never_return:
j should_never_return

/* Define some common data structures here. We define them
* here in this assembly file due to their unusual alignment
* requirements.
*/

.comm swapper_pg_dir,PAGE_SIZE,PAGE_SIZE
.comm empty_bad_page_table,PAGE_SIZE,PAGE_SIZE
.comm empty_bad_page,PAGE_SIZE,PAGE_SIZE
.comm empty_zero_page,PAGE_SIZE,PAGE_SIZE
/*
* BSS section
*/

.section ".bss.page_aligned", "w"
ENTRY(swapper_pg_dir)
.fill PAGE_SIZE, 1, 0
ENTRY(empty_zero_page)
.fill PAGE_SIZE, 1, 0

0 comments on commit adba09f

Please sign in to comment.