arm64: Reorder the macro arguments in the copy routines
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 29 Apr 2020 18:37:02 +0000 (19:37 +0100)
committerWill Deacon <will@kernel.org>
Wed, 29 Apr 2020 20:50:01 +0000 (21:50 +0100)
commitada66f1837594f38bc2db4f98c4c6589ecc8a7f6
treefc641d0b0ec46ca08315de611a7398994c2e91c1
parent76085aff29f585139a37a10ea0a7daa63f70872c
arm64: Reorder the macro arguments in the copy routines

The current argument order is obviously buggy (memcpy.S):

macro strb1 ptr, regB, val
strb \ptr, [\regB], \val
endm

However, it cancels out as the calling sites in copy_template.S pass the
address as the regB argument.

Mechanically reorder the arguments to match the instruction mnemonics.
There is no difference in objdump before and after this patch.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200429183702.28445-1-catalin.marinas@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/lib/copy_from_user.S
arch/arm64/lib/copy_in_user.S
arch/arm64/lib/copy_to_user.S
arch/arm64/lib/memcpy.S