[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4995B35F.5080708@zytor.com>
Date: Fri, 13 Feb 2009 09:52:31 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Andreas Herrmann <andreas.herrmann3@....com>
CC: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/7] x86: memtest: introduce array to store memtest patterns
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?
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists