Commit 4f22ca7
committed
xtensa: simplify coherent_kvaddr logic
Functions coherent_kvaddr, clear_page_alias and copy_page_alias use
physical address 0 as a special value that means 'this page is in the
KSEG mapping and its existing virtual address has the same color as the
virtual address of its future mapping, so don't map it to the
TLBTEMP_BASE area'.
Simplify this logic and drop special handling of low memory pages/pages
with coherent mapping and always use TLBTEMP_BASE area.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>1 parent 2da7559 commit 4f22ca7
2 files changed
Lines changed: 7 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 84 | + | |
| 85 | + | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | 121 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | 122 | | |
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
133 | 126 | | |
134 | | - | |
| 127 | + | |
135 | 128 | | |
136 | 129 | | |
137 | 130 | | |
| |||
143 | 136 | | |
144 | 137 | | |
145 | 138 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 139 | + | |
150 | 140 | | |
151 | | - | |
| 141 | + | |
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
| |||
166 | 156 | | |
167 | 157 | | |
168 | 158 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 159 | | |
176 | 160 | | |
177 | 161 | | |
178 | 162 | | |
179 | 163 | | |
180 | 164 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 165 | | |
186 | 166 | | |
187 | 167 | | |
| |||
219 | 199 | | |
220 | 200 | | |
221 | 201 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 202 | + | |
227 | 203 | | |
228 | 204 | | |
229 | | - | |
230 | | - | |
231 | 205 | | |
232 | | - | |
| 206 | + | |
233 | 207 | | |
234 | 208 | | |
235 | 209 | | |
| |||
0 commit comments