Skip to content

Commit

Permalink
powerpc: Explicit alignment for .data.cacheline_aligned
Browse files Browse the repository at this point in the history
I don't think anything guarantees that the objects in data.page_aligned
are a multiple of PAGE_SIZE, thus the section may end on any boundary.

So the following section, .data.cacheline_aligned needs an explicit
alignment.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed May 18, 2009
1 parent dc89228 commit 0e337b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ SECTIONS
*(.data.page_aligned)
}

. = ALIGN(L1_CACHE_BYTES);
.data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) {
*(.data.cacheline_aligned)
}
Expand Down

0 comments on commit 0e337b4

Please sign in to comment.