diff options
author | Cyril Chemparathy <[email protected]> | 2012-07-22 13:40:38 -0400 |
---|---|---|
committer | Will Deacon <[email protected]> | 2013-05-30 16:01:30 +0100 |
commit | 926edcc747e2efb3c9add7ed4dbc4e7a3a959d02 (patch) | |
tree | a9426efbb842722c589c452c56c46fc2ab1545da /net/lapb/lapb_in.c | |
parent | e4aa937ec75df0eea0bee03bffa3303ad36c986b (diff) |
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 <[email protected]>
Signed-off-by: Vitaly Andrianov <[email protected]>
Reviewed-by: Nicolas Pitre <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Tested-by: Santosh Shilimkar <[email protected]>
Tested-by: Subash Patel <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions