Răsfoiți Sursa

m68knommu: Don't hardcode the value of PAGE_SIZE in the linker script.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Tim Abbott 15 ani în urmă
părinte
comite
f4bed4fb17
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      arch/m68knommu/kernel/vmlinux.lds.S

+ 3 - 2
arch/m68knommu/kernel/vmlinux.lds.S

@@ -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