Changeset 1b20da0 in mainline for kernel/arch/sparc64/src/sun4u/start.S
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/sun4u/start.S
rdf6ded8 r1b20da0 88 88 ! l5 <= physmem_base[(PHYSMEM_ADDR_SIZE - 1):13] 89 89 sllx %l5, 13 + (63 - (PHYSMEM_ADDR_SIZE - 1)), %l5 90 srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5 90 srlx %l5, 63 - (PHYSMEM_ADDR_SIZE - 1), %l5 91 91 92 92 /* … … 118 118 wrpr %g1, %lo(trap_table), %tba 119 119 120 /* 120 /* 121 121 * Take over the DMMU by installing locked TTE entry identically 122 122 * mapping the first 4M of memory. … … 135 135 ! demap context 0 136 136 SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS) 137 stxa %g0, [%g1] ASI_DMMU_DEMAP 137 stxa %g0, [%g1] ASI_DMMU_DEMAP 138 138 membar #Sync 139 139 … … 143 143 ! write DTLB tag 144 144 SET_TLB_TAG(g1, MEM_CONTEXT_KERNEL) 145 stxa %g1, [VA_DMMU_TAG_ACCESS] %asi 145 stxa %g1, [VA_DMMU_TAG_ACCESS] %asi 146 146 membar #Sync 147 147 … … 164 164 ! write DTLB data and install the kernel mapping 165 165 SET_TLB_DATA(g1, g2, TTE_L | TTE_W) ! use non-global mapping 166 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 166 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 167 167 membar #Sync 168 168 … … 175 175 ! write DTLB tag of context 1 (i.e. MEM_CONTEXT_TEMP) 176 176 SET_TLB_TAG(g1, MEM_CONTEXT_TEMP) 177 stxa %g1, [VA_DMMU_TAG_ACCESS] %asi 177 stxa %g1, [VA_DMMU_TAG_ACCESS] %asi 178 178 membar #Sync 179 179 180 180 ! write DTLB data and install the kernel mapping in context 1 181 181 SET_TLB_DATA(g1, g2, TTE_W) ! use non-global mapping 182 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 182 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 183 183 membar #Sync 184 184 … … 213 213 ! write ITLB data and install the temporary mapping in context 1 214 214 SET_TLB_DATA(g1, g2, 0) ! use non-global mapping 215 stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG 215 stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG 216 216 flush %g5 217 217 … … 223 223 ! demap context 0 224 224 SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_NUCLEUS) 225 stxa %g0, [%g1] ASI_IMMU_DEMAP 225 stxa %g0, [%g1] ASI_IMMU_DEMAP 226 226 flush %g5 227 227 … … 234 234 ! write ITLB data and install the permanent kernel mapping in context 0 235 235 SET_TLB_DATA(g1, g2, TTE_L) ! use non-global mapping 236 stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG 236 stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG 237 237 flush %g5 238 238 … … 242 242 ! demap context 1 243 243 SET_TLB_DEMAP_CMD(g1, TLB_DEMAP_PRIMARY) 244 stxa %g0, [%g1] ASI_IMMU_DEMAP 244 stxa %g0, [%g1] ASI_IMMU_DEMAP 245 245 flush %g5 246 246 … … 406 406 */ 407 407 408 .align 32 408 .align 32 409 409 /* 410 410 * This label is used by the fast_data_access_MMU_miss trap handler. … … 417 417 */ 418 418 SYMBOL(end_of_identity) 419 .quad -1 419 .quad -1 420 420 /* 421 421 * This variable is used by the fast_data_access_MMU_miss trap handler.
Note:
See TracChangeset
for help on using the changeset viewer.