Commit 97c4b6f9 authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[SPARC64]: Use 13-bit context size always.

We no longer have the problems that require using the smaller
sizes.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7a591cfe
...@@ -6,19 +6,7 @@ ...@@ -6,19 +6,7 @@
#include <asm/const.h> #include <asm/const.h>
#include <asm/hypervisor.h> #include <asm/hypervisor.h>
/* #define CTX_NR_BITS 13
* 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 TAG_CONTEXT_BITS ((_AC(1,UL) << CTX_NR_BITS) - _AC(1,UL)) #define TAG_CONTEXT_BITS ((_AC(1,UL) << CTX_NR_BITS) - _AC(1,UL))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment