Commit 3f57d90
powerpc/603: Inconditionally use task PGDIR in ITLB misses
Now that modules exec page tables are preallocated, the instruction
TLBmiss handler can use task PGDIR inconditionally.
Also revise the identification of user vs kernel user space by doing
a calculation instead of a comparison: Get the segment number and
subtract the number of the first kernel segment. The result is
positive for kernel addresses and negative for user addresses,
which means that upper 2 bits are 0 for kernel and 3 for user.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/9a3242162ad2faab8019c698e501b326a126ee9e.1724173828.git.christophe.leroy@csgroup.eu1 parent 31c0e13 commit 3f57d90
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | 416 | | |
421 | 417 | | |
422 | 418 | | |
| 419 | + | |
| 420 | + | |
423 | 421 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
| 422 | + | |
| 423 | + | |
429 | 424 | | |
430 | | - | |
431 | | - | |
432 | 425 | | |
433 | 426 | | |
434 | 427 | | |
| |||
437 | 430 | | |
438 | 431 | | |
439 | 432 | | |
440 | | - | |
| 433 | + | |
441 | 434 | | |
442 | 435 | | |
443 | 436 | | |
| |||
0 commit comments