]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Optimize tmpalias function calls
authorHelge Deller <deller@gmx.de>
Tue, 17 May 2022 15:14:03 +0000 (17:14 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 23 May 2022 11:44:25 +0000 (13:44 +0200)
commit227ca0dccd84f1b31e690875a612d1187dd55ca4
treec1992c08a378a1d859dce06aa56b070a6595a7ef
parent273ecd73b0c17fc7f7e999c0f0b3fa745546ca0f
parisc: Optimize tmpalias function calls

Instead of converting the physical address of the tmpalias mapping to
the tlb insert format inside all the various tmpalias functions, move
this conversion over to the DTLB miss handler. The physical address is
already in %r26 (or will be calculated into %r23), so there are no
additional steps needed in the functions themselves.

Additionally use the dep_safe() and depi_safe() macros to avoid
differentiating between 32- and 64-bit builds and as such make the code
much more readable.

The check if "ldil L%(TMPALIAS_MAP_START)" will sign extend into the
upper 32 bits can be dropped, because we added a compile time check in
an earlier patch.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/entry.S
arch/parisc/kernel/pacache.S