Re: [PATCH v2 06/22] ARM: LPAE: use signed arithmetic for mask definitions

2012-08-11 Thread Nicolas Pitre
On Fri, 10 Aug 2012, 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

Re: [PATCH v2 06/22] ARM: LPAE: use signed arithmetic for mask definitions

2012-08-11 Thread Nicolas Pitre
On Fri, 10 Aug 2012, 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

[PATCH v2 06/22] ARM: LPAE: use signed arithmetic for mask definitions

2012-08-10 Thread Cyril Chemparathy
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

[PATCH v2 06/22] ARM: LPAE: use signed arithmetic for mask definitions

2012-08-10 Thread Cyril Chemparathy
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