On 16.03.2007 [10:43:42 +1100], David Gibson wrote:
> On Thu, Mar 15, 2007 at 12:28:25PM -0700, Nishanth Aravamudan wrote:
> > truncate_above_4GB: Must be built like it is on powerpc due to address
> > space restrictions on hugepages.
> > brk_near_huge: add next_chunk case for ia64 to express that IA64 huge
> > page mappings start at 0x8000000000000000UL (2^63).
> > icache-hygeine: IA64 also gets a SIGILL in the icache-hygeiene test, so
> > add it to the powerpc conditional and update the comment.
> > 
> > Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]>
> 
> Acked-by: David Gibson <[EMAIL PROTECTED]>
> 
> [snip]
> > diff --git a/tests/brk_near_huge.c b/tests/brk_near_huge.c
> > index be54914..4ed6bc9 100644
> > --- a/tests/brk_near_huge.c
> > +++ b/tests/brk_near_huge.c
> > @@ -47,11 +47,16 @@ void *next_chunk(void *addr)
> >             /* 1TB segments above */
> >             return PALIGN(addr, 0x10000000000UL);
> >  }
> > -#elif __powerpc__
> > +#elif defined(__powerpc__)
> >  void *next_chunk(void *addr)
> >  {
> >     return PALIGN(addr, 0x10000000UL);
> >  }
> > +#elif defined(__ia64__)
> > +void *next_chunk(void *addr)
> > +{
> > +   return PALIGN(addr, 0x8000000000000000UL);
> > +}
> 
> Now that we have the slice functions in the library, we should export
> them and use them here.

Good idea, I'll spin up a patch to do this. Hrm, need to add a case to
the slice functions for ia64 after all.

As I understand it, IA64 has one large slice that can contain huge pages
from 2^63 to the end of the address space? Is that accurate?

So start will always be 2^63 and end will always be 2^64-1?

Thanks,
Nish

-- 
Nishanth Aravamudan <[EMAIL PROTECTED]>
IBM Linux Technology Center

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to