diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-07 02:44:37 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:11:52 -0500 |
commit | d257d5da39a78b32721ca84b2ba7f461f2f7ed7f (patch) | |
tree | ac28d377688ebe13a4d38e05f4ff65ba73d8652a /include/asm-sparc64/tsb.h | |
parent | 840aaef8db32572b6d11e0d5cb5e6efcbc812000 (diff) |
[SPARC64]: Initial sun4v TLB miss handling infrastructure.
Things are a little tricky because, unlike sun4u, we have
to:
1) do a hypervisor trap to do the TLB load.
2) do the TSB lookup calculations by hand
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64/tsb.h')
-rw-r--r-- | include/asm-sparc64/tsb.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-sparc64/tsb.h b/include/asm-sparc64/tsb.h index 44709cde5617..7f3abc32c4dd 100644 --- a/include/asm-sparc64/tsb.h +++ b/include/asm-sparc64/tsb.h | |||
@@ -53,6 +53,14 @@ | |||
53 | * kernel image, so we don't play these games for swapper_tsb access. | 53 | * kernel image, so we don't play these games for swapper_tsb access. |
54 | */ | 54 | */ |
55 | #ifndef __ASSEMBLY__ | 55 | #ifndef __ASSEMBLY__ |
56 | struct tsb_ldquad_phys_patch_entry { | ||
57 | unsigned int addr; | ||
58 | unsigned int sun4u_insn; | ||
59 | unsigned int sun4v_insn; | ||
60 | }; | ||
61 | extern struct tsb_ldquad_phys_patch_entry __tsb_ldquad_phys_patch, | ||
62 | __tsb_ldquad_phys_patch_end; | ||
63 | |||
56 | struct tsb_phys_patch_entry { | 64 | struct tsb_phys_patch_entry { |
57 | unsigned int addr; | 65 | unsigned int addr; |
58 | unsigned int insn; | 66 | unsigned int insn; |
@@ -61,9 +69,10 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end; | |||
61 | #endif | 69 | #endif |
62 | #define TSB_LOAD_QUAD(TSB, REG) \ | 70 | #define TSB_LOAD_QUAD(TSB, REG) \ |
63 | 661: ldda [TSB] ASI_NUCLEUS_QUAD_LDD, REG; \ | 71 | 661: ldda [TSB] ASI_NUCLEUS_QUAD_LDD, REG; \ |
64 | .section .tsb_phys_patch, "ax"; \ | 72 | .section .tsb_ldquad_phys_patch, "ax"; \ |
65 | .word 661b; \ | 73 | .word 661b; \ |
66 | ldda [TSB] ASI_QUAD_LDD_PHYS, REG; \ | 74 | ldda [TSB] ASI_QUAD_LDD_PHYS, REG; \ |
75 | ldda [TSB] ASI_QUAD_LDD_PHYS_4V, REG; \ | ||
67 | .previous | 76 | .previous |
68 | 77 | ||
69 | #define TSB_LOAD_TAG_HIGH(TSB, REG) \ | 78 | #define TSB_LOAD_TAG_HIGH(TSB, REG) \ |