[PATCH 3/6] arm: use NOSAVE_DATA macro for .data.nosave section.
From: Tim Abbott
Date: Thu Apr 30 2009 - 19:46:43 EST
This has the nice consequence of replacing the alignment of 4096 with
an alignment of PAGE_SIZE (=4096).
Signed-off-by: Tim Abbott <tabbott@xxxxxxx>
Cc: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
---
arch/arm/kernel/vmlinux.lds.S | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index 15520be..3e2f644 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -4,6 +4,7 @@
*/
#include <asm-generic/vmlinux.lds.h>
+#include <asm/page.h>
#include <asm/thread_info.h>
#include <asm/memory.h>
@@ -154,11 +155,7 @@ SECTIONS
__init_end = .;
#endif
- . = ALIGN(4096);
- __nosave_begin = .;
- *(.data.nosave)
- . = ALIGN(4096);
- __nosave_end = .;
+ NOSAVE_DATA
/*
* then the cacheline aligned data
--
1.6.2.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/