Title: [8896] trunk: vmlinux.lds.h: allow people to set a smaller rootfs alignment
Revision
8896
Author
vapier
Date
2010-06-07 04:50:32 -0400 (Mon, 07 Jun 2010)

Log Message

vmlinux.lds.h: allow people to set a smaller rootfs alignment

Modified Paths


Diff

Modified: trunk/arch/blackfin/kernel/vmlinux.lds.S (8895 => 8896)


--- trunk/arch/blackfin/kernel/vmlinux.lds.S	2010-06-07 08:48:44 UTC (rev 8895)
+++ trunk/arch/blackfin/kernel/vmlinux.lds.S	2010-06-07 08:50:32 UTC (rev 8896)
@@ -153,7 +153,7 @@
 		INIT_CALLS
 		CON_INITCALL
 		SECURITY_INITCALL
-		INIT_RAM_FS
+		INIT_RAMFS(4)
 
 		. = ALIGN(4);
 		___per_cpu_load = .;

Modified: trunk/include/asm-generic/vmlinux.lds.h (8895 => 8896)


--- trunk/include/asm-generic/vmlinux.lds.h	2010-06-07 08:48:44 UTC (rev 8895)
+++ trunk/include/asm-generic/vmlinux.lds.h	2010-06-07 08:50:32 UTC (rev 8896)
@@ -619,14 +619,15 @@
 		VMLINUX_SYMBOL(__security_initcall_end) = .;
 
 #ifdef CONFIG_BLK_DEV_INITRD
-#define INIT_RAM_FS							\
-	. = ALIGN(4);						\
+#define INIT_RAMFS(align)						\
+	. = ALIGN(align);						\
 	VMLINUX_SYMBOL(__initramfs_start) = .;				\
 	*(.init.ramfs)							\
 	VMLINUX_SYMBOL(__initramfs_end) = .;
 #else
-#define INIT_RAM_FS
+#define INIT_RAMFS(align)
 #endif
+#define INIT_RAM_FS INIT_RAMFS(PAGE_SIZE)
 
 /*
  * Default discarded sections.
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to