Skip to content

Commit

Permalink
[SPARC64]: Use 13-bit context size always.
Browse files Browse the repository at this point in the history
We no longer have the problems that require using the smaller
sizes.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Mar 20, 2006
1 parent 7a591cf commit 97c4b6f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/asm-sparc64/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,7 @@
#include <asm/const.h>
#include <asm/hypervisor.h>

/*
* For the 8k pagesize kernel, use only 10 hw context bits to optimize some
* shifts in the fast tlbmiss handlers, instead of all 13 bits (specifically
* for vpte offset calculation). For other pagesizes, this optimization in
* the tlbhandlers can not be done; but still, all 13 bits can not be used
* because the tlb handlers use "andcc" instruction which sign extends 13
* bit arguments.
*/
#if PAGE_SHIFT == 13
#define CTX_NR_BITS 10
#else
#define CTX_NR_BITS 12
#endif
#define CTX_NR_BITS 13

#define TAG_CONTEXT_BITS ((_AC(1,UL) << CTX_NR_BITS) - _AC(1,UL))

Expand Down

0 comments on commit 97c4b6f

Please sign in to comment.