[PATCH v3 RESEND 06/17] ARM: LPAE: use signed arithmetic for mask definitions
Catalin Marinas
catalin.marinas at arm.com
Mon Sep 24 09:09:51 EDT 2012
On Fri, Sep 21, 2012 at 04:56:04PM +0100, Cyril Chemparathy wrote:
> This patch applies to PAGE_MASK, PMD_MASK, and PGDIR_MASK, where forcing
> unsigned long math truncates the mask at the 32-bits. This clearly does bad
> things on PAE systems.
>
> This patch fixes this problem by defining these masks as signed quantities.
> We then rely on sign extension to do the right thing.
>
> Signed-off-by: Cyril Chemparathy <cyril at ti.com>
> Signed-off-by: Vitaly Andrianov <vitalya at ti.com>
> Reviewed-by: Nicolas Pitre <nico at linaro.org>
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list