m68knommu: Don't hardcode the value of PAGE_SIZE in the linker script.
authorTim Abbott <tabbott@ksplice.com>
Sun, 18 Oct 2009 17:23:49 +0000 (13:23 -0400)
committerGreg Ungerer <gerg@goober.(none)>
Fri, 4 Dec 2009 01:45:31 +0000 (11:45 +1000)
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/kernel/vmlinux.lds.S

index 6e10d25..a0108fd 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <asm-generic/vmlinux.lds.h>
+#include <asm/page.h>
 
 #if defined(CONFIG_RAMKERNEL)
 #define        RAM_START       CONFIG_KERNELBASE
@@ -155,7 +156,7 @@ SECTIONS {
        } > DATA
 
        .init : {
-               . = ALIGN(4096);
+               . = ALIGN(PAGE_SIZE);
                __init_begin = .;
                _sinittext = .;
                INIT_TEXT
@@ -180,7 +181,7 @@ SECTIONS {
                *(.init.ramfs)
                __initramfs_end = .;
 #endif
-               . = ALIGN(4096);
+               . = ALIGN(PAGE_SIZE);
                __init_end = .;
        } > INIT