lkml.org 
[lkml]   [2007]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch/cris/arch-v10/vmlinux.lds.S fix boot problem
Hi Jesper.

> __initramfs_end = .;
> - /* We fill to the next page, so we can discard all init
> - pages without needing to consider what payload might be
> - appended to the kernel image. */
> - FILL (0);
> - . = ALIGN (8192);
> }
> #endif
> -
> __vmlinux_end = .; /* last address of the physical file */
> - __init_end = .;
> +
> + /*
> + * We fill to the next page, so we can discard all init
> + * pages without needing to consider what payload might be
> + * appended to the kernel image.
> + */
> + .init.fill : {
> + FILL (0);
> + . = ALIGN (8192);
> + }
> +
> + __init_end = .;

Can we please have the hardcoded 8192 replaced with a proper constant.
I assume this is PAGESIZE?
See hwat other archs does to make PAGESIZE available for assembly
files and ldscripts. The macro AC is the key point here.

And then please explain why it make a diffrence to put the
alignment in a section like you do.
I do not see it used in the other archs.

Sam


\
 
 \ /
  Last update: 2007-12-22 09:37    [W:0.086 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site