Procházet zdrojové kódy

[PATCH] i386: Add comment for align to vmlinux.lds

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Vivek Goyal před 18 roky
rodič
revize
6ed018845f
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      arch/i386/kernel/vmlinux.lds.S

+ 6 - 0
arch/i386/kernel/vmlinux.lds.S

@@ -121,6 +121,12 @@ SECTIONS
 	*(.smp_altinstr_replacement)
 	*(.smp_altinstr_replacement)
   	__smp_alt_end = .;
   	__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);
   . = ALIGN(4096);
 
 
   /* will be freed after init */
   /* will be freed after init */