]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Use macros for .bss.page_aligned section.
authorTim Abbott <tabbott@ksplice.com>
Sun, 20 Sep 2009 22:14:14 +0000 (18:14 -0400)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 21 Sep 2009 04:27:08 +0000 (06:27 +0200)
This patch changes the remaining direct references to
.bss.page_aligned in C and assembly code to use the macros in
include/linux/linkage.h.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: Chris Zankel <chris@zankel.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/sh/kernel/irq.c
arch/x86/kernel/head_32.S
arch/x86/kernel/head_64.S
arch/xtensa/kernel/head.S

index 60f8af4497c78fc5fc051947f766966b1a19f3e2..7cb933ba49579d7c97391119cb18d1e6cbfe08d5 100644 (file)
@@ -165,11 +165,9 @@ asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs)
 }
 
 #ifdef CONFIG_IRQSTACKS
-static char softirq_stack[NR_CPUS * THREAD_SIZE]
-               __attribute__((__section__(".bss.page_aligned")));
+static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
 
-static char hardirq_stack[NR_CPUS * THREAD_SIZE]
-               __attribute__((__section__(".bss.page_aligned")));
+static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;
 
 /*
  * allocate per-cpu stacks for hardirq and for softirq processing
index b766e8c7252d4f7815154ad2afd13baff874ea78..1dac23958427fcf3c9b72e7b59ddd13b1010dd76 100644 (file)
@@ -608,7 +608,7 @@ ENTRY(initial_code)
 /*
  * BSS section
  */
-.section ".bss.page_aligned","wa"
+__PAGE_ALIGNED_BSS
        .align PAGE_SIZE_asm
 #ifdef CONFIG_X86_PAE
 swapper_pg_pmd:
index fa54f78e2a05c94862c56df144160e31474f481c..d0bc0a13a43789edd7f3d7d3d3ac5bebce95f209 100644 (file)
@@ -418,7 +418,7 @@ ENTRY(phys_base)
 ENTRY(idt_table)
        .skip IDT_ENTRIES * 16
 
-       .section .bss.page_aligned, "aw", @nobits
+       __PAGE_ALIGNED_BSS
        .align PAGE_SIZE
 ENTRY(empty_zero_page)
        .skip PAGE_SIZE
index d9ddc1ba761cf1d53f59cfb83c2c0405c4ab87cc..d215adcfd4ea19635fcbaec87a82b919592c57d6 100644 (file)
@@ -235,7 +235,7 @@ should_never_return:
  * BSS section
  */
        
-.section ".bss.page_aligned", "w"
+__PAGE_ALIGNED_BSS
 #ifdef CONFIG_MMU
 ENTRY(swapper_pg_dir)
        .fill   PAGE_SIZE, 1, 0