Re: [PATCH 2/7] x86: memtest: introduce array to store memtestpatterns

From: Andreas Herrmann
Date: Tue Feb 17 2009 - 05:24:49 EST


On Fri, Feb 13, 2009 at 09:52:31AM -0800, H. Peter Anvin wrote:
> Andreas Herrmann wrote:
> > -#define _MAX_MEM_PATTERNS 4
> > +static unsigned long patterns[] = {
> > + 0UL,
> > + -1UL,
> > +#ifdef CONFIG_X86_64
> > + 0x5555555555555555UL,
> > + 0xaaaaaaaaaaaaaaaaUL,
> > +#else
> > + 0x55555555UL,
> > + 0xaaaaaaaaUL,
> > +#endif
> > +};
>
> Why not just use u64 for the pattern even on 32 bits?

I just assumed that this was a settled thing.

Yinghai, was there a specific reason why you did not use an u64 for
the memory test pattern on 32-bit?
(See commit 1f067167a83d1c7f80437fd1d32b55508aaca009 "x86: seperate
memtest from init_64.c")

If not I'll adapt this and send out a new patch set.


Regards,

Andreas


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/