Repository navigation
Commit 78905c6
ARM: p2v: fix handling of LPAE translation in BE mode
[ Upstream commit 4e79f02 ]
When running in BE mode on LPAE hardware with a PA-to-VA translation
that exceeds 4 GB, we patch bits 39:32 of the offset into the wrong
byte of the opcode. So fix that, by rotating the offset in r0 to the
right by 8 bits, which will put the 8-bit immediate in bits 31:24.
Note that this will also move bit raspberrypi#22 in its correct place when
applying the rotation to the constant #0x400000.
Fixes: d9a790d ("ARM: 7883/1: fix mov to mvn conversion in case of 64 bit phys_addr_t and BE")
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 9c79c9e commit 78905c6
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | 674 | | |
678 | 675 | | |
679 | | - | |
680 | 676 | | |
681 | 677 | | |
682 | 678 | | |
| |||
685 | 681 | | |
686 | 682 | | |
687 | 683 | | |
688 | | - | |
| 684 | + | |
689 | 685 | | |
690 | 686 | | |
691 | 687 | | |
| |||
0 commit comments