]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: add macros for common adrp usages
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 4 Mar 2015 18:45:38 +0000 (19:45 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Mar 2015 19:46:01 +0000 (19:46 +0000)
commit650ac2355f69d08c49d79d42c7905a4aaf93e236
treece43b950581eef534c087c024e9ba07b55cbc42f
parentb9efa34335c0600669a91106ea57c5fee01b9b52
arm64: add macros for common adrp usages

The adrp instruction is mostly used in combination with either
an add, a ldr or a str instruction with the low bits of the
referenced symbol in the 12-bit immediate of the followup
instruction.

Introduce the macros adr_l, ldr_l and str_l that encapsulate
these common patterns.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/assembler.h