[SPARC64]: Implement sun4v TSB miss handlers.
When we register a TSB with the hypervisor, so that it or hardware can handle TLB misses and do the TSB walk for us, the hypervisor traps down to these trap when it incurs a TSB miss. Processing is simple, we load the missing virtual address and context, and do a full page table walk. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -35,8 +35,11 @@ tsb_miss_itlb:
|
||||
nop
|
||||
|
||||
/* The sun4v TLB miss handlers jump directly here instead
|
||||
* of tsb_miss_{d,i}tlb with the missing virtual address
|
||||
* already loaded into %g4.
|
||||
* of tsb_miss_{d,i}tlb with registers setup as follows:
|
||||
*
|
||||
* %g4: missing virtual address
|
||||
* %g1: TSB entry address loaded
|
||||
* %g6: TAG TARGET ((vaddr >> 22) | (ctx << 48))
|
||||
*/
|
||||
tsb_miss_page_table_walk:
|
||||
TRAP_LOAD_PGD_PHYS(%g7, %g5)
|
||||
|
Reference in New Issue
Block a user