From: Cyril Chemparathy Date: Sun, 22 Jul 2012 17:40:38 +0000 (-0400) Subject: ARM: LPAE: use signed arithmetic for mask definitions X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2^2~3^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926edcc747e2efb3c9add7ed4dbc4e7a3a959d02;p=pandora-kernel.git ARM: LPAE: use signed arithmetic for mask definitions 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 Signed-off-by: Vitaly Andrianov Reviewed-by: Nicolas Pitre Reviewed-by: Catalin Marinas Tested-by: Santosh Shilimkar Tested-by: Subash Patel Signed-off-by: Will Deacon --- Reading git-diff-tree failed