Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165584
b: refs/heads/master
c: abe1ee3
h: refs/heads/master
v: v3
  • Loading branch information
Tim Abbott authored and Sam Ravnborg committed Sep 21, 2009
1 parent 317f36d commit e5d47a4
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02b7da37f7acd49277dea1481dc0c5c246c09732
refs/heads/master: abe1ee3a221d53778c3e58747bbec6e518e5471b
4 changes: 1 addition & 3 deletions trunk/arch/avr32/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
#include <asm/setup.h>
#include <asm/sections.h>

#define __page_aligned __attribute__((section(".data.page_aligned")))

DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);

pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned;
pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data;

struct page *empty_zero_page;
EXPORT_SYMBOL(empty_zero_page);
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/vdso.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp.
* <benh@kernel.crashing.org>
Expand Down Expand Up @@ -74,7 +75,7 @@ static int vdso_ready;
static union {
struct vdso_data data;
u8 page[PAGE_SIZE];
} vdso_data_store __attribute__((__section__(".data.page_aligned")));
} vdso_data_store __page_aligned_data;
struct vdso_data *vdso_data = &vdso_data_store.data;

/* Format of the patch table */
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/vdso32/vdso32_wrapper.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/page.h>

.section ".data.page_aligned"
__PAGE_ALIGNED_DATA

.globl vdso32_start, vdso32_end
.balign PAGE_SIZE
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/kernel/vdso64/vdso64_wrapper.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/page.h>

.section ".data.page_aligned"
__PAGE_ALIGNED_DATA

.globl vdso64_start, vdso64_end
.balign PAGE_SIZE
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/s390/kernel/vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ __setup("vdso=", vdso_setup);
static union {
struct vdso_data data;
u8 page[PAGE_SIZE];
} vdso_data_store __attribute__((__section__(".data.page_aligned")));
} vdso_data_store __page_aligned_data;
struct vdso_data *vdso_data = &vdso_data_store.data;

/*
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/s390/kernel/vdso32/vdso32_wrapper.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/page.h>

.section ".data.page_aligned"
__PAGE_ALIGNED_DATA

.globl vdso32_start, vdso32_end
.balign PAGE_SIZE
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/s390/kernel/vdso64/vdso64_wrapper.S
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/page.h>

.section ".data.page_aligned"
__PAGE_ALIGNED_DATA

.globl vdso64_start, vdso64_end
.balign PAGE_SIZE
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/x86/include/asm/cache.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _ASM_X86_CACHE_H
#define _ASM_X86_CACHE_H

#include <linux/linkage.h>

/* L1 cache line size */
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
Expand All @@ -13,7 +15,7 @@
#ifdef CONFIG_SMP
#define __cacheline_aligned_in_smp \
__attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT)))) \
__attribute__((__section__(".data.page_aligned")))
__page_aligned_data
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ ENTRY(empty_zero_page)
* This starts the data section.
*/
#ifdef CONFIG_X86_PAE
.section ".data.page_aligned","wa"
__PAGE_ALIGNED_DATA
/* Page-aligned for the benefit of paravirt? */
.align PAGE_SIZE_asm
ENTRY(swapper_pg_dir)
Expand Down

0 comments on commit e5d47a4

Please sign in to comment.