Changeset e5ecc02 in mainline
- Timestamp:
- 2006-09-14T13:07:32Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06e1e95
- Parents:
- 775df25
- Location:
- kernel/arch/sparc64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/trap/mmu.h
r775df25 re5ecc02 86 86 bz 0f ! page address is zero 87 87 88 or %g3, (TTE_C P|TTE_P|TTE_W), %g2! 8K pages are the default (encoded as 0)88 or %g3, (TTE_CV|TTE_CP|TTE_P|TTE_W), %g2 ! 8K pages are the default (encoded as 0) 89 89 mov 1, %g3 90 90 sllx %g3, TTE_V_SHIFT, %g3 -
kernel/arch/sparc64/src/start.S
r775df25 re5ecc02 115 115 116 116 #define SET_TLB_DATA(r1, r2, imm) \ 117 set TTE_ L | TTE_CP | TTE_P | TTE_W| LMA | imm, %r1; \117 set TTE_CV | TTE_CP | TTE_P | LMA | imm, %r1; \ 118 118 set PAGESIZE_4M, %r2; \ 119 119 sllx %r2, TTE_SIZE_SHIFT, %r2; \ … … 124 124 125 125 ! write DTLB data and install the kernel mapping 126 SET_TLB_DATA(g1, g2, 0)! use non-global mapping126 SET_TLB_DATA(g1, g2, TTE_L | TTE_W) ! use non-global mapping 127 127 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 128 128 membar #Sync … … 141 141 142 142 ! write DTLB data and install the kernel mapping in context 1 143 SET_TLB_DATA(g1, g2, 0) ! use non-global mapping143 SET_TLB_DATA(g1, g2, TTE_W) ! use non-global mapping 144 144 stxa %g1, [%g0] ASI_DTLB_DATA_IN_REG 145 145 membar #Sync … … 197 197 198 198 ! write ITLB data and install the permanent kernel mapping in context 0 199 SET_TLB_DATA(g1, g2, 0)! use non-global mapping199 SET_TLB_DATA(g1, g2, TTE_L) ! use non-global mapping 200 200 stxa %g1, [%g0] ASI_ITLB_DATA_IN_REG 201 201 flush %g5
Note:
See TracChangeset
for help on using the changeset viewer.