Re: [PATCH 1/6] x86: Change get_max_mapped() to inline

From: H. Peter Anvin
Date: Wed Dec 29 2010 - 18:43:15 EST


On 12/29/2010 03:37 PM, Yinghai Lu wrote:
>
> or could just use unsigned long instead.
>
> on 32bit it will be under 4g
> on 64bit unsigned long is 64bit already.
>

This is true, although it seems fragile -- the whole terminology and the
differences between 32 and 64 bits are just a huge headache.

-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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/