From 7f3db000ad924285f814e69fae4ecf8d3b72bd65 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Thu, 7 Dec 2006 02:14:03 +0100 Subject: [PATCH] --- yaml --- r: 43031 b: refs/heads/master c: 6ed018845f1172cdc94f8a20ad807df901c6b7eb h: refs/heads/master i: 43029: 2d1d6cc7a3b79a02e066cc1a87169044e5df38bd 43027: acef5f46013c7aadf3435e478eb81a116776507c 43023: c42067aa522bdb387792237cbc0f9842ce5483b6 v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/vmlinux.lds.S | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 60e2b3758323..5e91f09cc22e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6569580de7ae367def89b7671029cb97c1965574 +refs/heads/master: 6ed018845f1172cdc94f8a20ad807df901c6b7eb diff --git a/trunk/arch/i386/kernel/vmlinux.lds.S b/trunk/arch/i386/kernel/vmlinux.lds.S index cbd24860fbb7..c217e18f1081 100644 --- a/trunk/arch/i386/kernel/vmlinux.lds.S +++ b/trunk/arch/i386/kernel/vmlinux.lds.S @@ -121,6 +121,12 @@ SECTIONS *(.smp_altinstr_replacement) __smp_alt_end = .; } + /* will be freed after init + * Following ALIGN() is required to make sure no other data falls on the + * same page where __smp_alt_end is pointing as that page might be freed + * after boot. Always make sure that ALIGN() directive is present after + * the section which contains __smp_alt_end. + */ . = ALIGN(4096); /* will be freed after init */