Skip to content

Commit

Permalink
sparc64: Define PAGE_OFFSET in terms of physical address bits.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Nov 12, 2013
1 parent 922631b commit e0a45e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/sparc/include/asm/page_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand Down

0 comments on commit e0a45e3

Please sign in to comment.