Hi!
> > > --- a/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c
> > > +++ b/testcases/kernel/mem/hugetlb/hugeshmat/hugeshmat01.c
> > > 
> > >  #define CASE1            20              /* memory location.             
> > >    */
> > >  #if __WORDSIZE==64
> > > +#if defined(__mips__)
> > > +#define UNALIGNED      0x1000000eee
> > > +#else
> > >  #define UNALIGNED      0x10000000eee
> > > +#endif
> > >  #else
> > >  #define UNALIGNED      0x60000eee
> > >  #endif
> > 
> > I wonder why we need such #ifdef for 64 bit systems in the first place,
> > or is the unaligned address 0x60000eee too low for 64 bit system?
> > 
> > Garrett, Mike any clue?
> 
> i can only guess that the author was attempting to locate a highly-unlikely-
> to-be-used memory location

Hmm, okay. So what we need is to create library function that returns
highly-unlikely memory location (I've seen this code in several places
and I would like to avoid the duplication).

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to