lkml.org 
[lkml]   [2007]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] remove PAGE_SIZE from headers_install
On 7/14/07, David Miller <davem@davemloft.net> wrote:
> From: "Albert Cahalan" <acahalan@gmail.com>
> Date: Sat, 14 Jul 2007 22:48:57 -0400
>
> > A real constant-value PAGE_SIZE is useful and doable.
>
> It's bogus to use it. The kernel can get recompiled
> to arbitrary page sizes on some architectures, so a constat
> page size assumption cannot work.

Sure it can work. The ABI specifies limits on such things.
Probably the most appropriate size is the one specified
for alignment of ELF sections.

If I remember right, it's 64 K for the PowerPC ABI. This allows
for 64 K pages, even though many chips offer 4 K pages.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-15 06:55    [W:0.033 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site