diff options
author | David S. Miller <davem@davemloft.net> | 2013-09-18 21:22:34 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-12 23:22:33 (GMT) |
commit | e0a45e3580a033669b24b04c3535515d69bb9702 (patch) | |
tree | ab6910d1bc0fc84ad9eafdb65d2ed39918485f51 | |
parent | 922631b988d8cbb821ebe2c67feffc0b95264894 (diff) | |
download | linux-fsl-qoriq-e0a45e3580a033669b24b04c3535515d69bb9702.tar.xz |
sparc64: Define PAGE_OFFSET in terms of physical address bits.
This makes clearer the implications for a given choosen
value.
Based upon patches by Bob Picco.
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Bob Picco <bob.picco@oracle.com>
-rw-r--r-- | arch/sparc/include/asm/page_64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/page_64.h b/arch/sparc/include/asm/page_64.h index d959312..9dd0f73 100644 --- a/arch/sparc/include/asm/page_64.h +++ b/arch/sparc/include/asm/page_64.h @@ -117,7 +117,9 @@ typedef pte_t *pgtable_t; /* We used to stick this into a hard-coded global register (%g4) * but that does not make sense anymore. */ -#define PAGE_OFFSET _AC(0xFFFFF80000000000,UL) +#define MAX_SUPPORTED_PA_BITS 43 +#define PAGE_OFFSET_BY_BITS(X) (-(_AC(1,UL) << (X))) +#define PAGE_OFFSET PAGE_OFFSET_BY_BITS(MAX_SUPPORTED_PA_BITS) #ifndef __ASSEMBLY__ |