diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-04 14:39:29 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-17 18:27:33 -0500 |
commit | cada3c0841e1deaec4c0f92654610b028dc683ff (patch) | |
tree | 9c6085c8b8447795ddc749315a31fd3906a6159d /arch/arm/include/asm/module.h | |
parent | dc21af99fadcfa0ae65b52fd0895f85824f0c288 (diff) |
ARM: P2V: extend to 16-bit translation offsets
MSM's memory is aligned to 2MB, which is more than we can do with our
existing method as we're limited to the upper 8 bits. Extend this by
using two instructions to 16 bits, automatically selected when MSM is
enabled.
Acked-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/module.h')
-rw-r--r-- | arch/arm/include/asm/module.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h index d072c21332ee..a2b775b81cfa 100644 --- a/arch/arm/include/asm/module.h +++ b/arch/arm/include/asm/module.h | |||
@@ -31,7 +31,11 @@ struct mod_arch_specific { | |||
31 | 31 | ||
32 | /* Add __virt_to_phys patching state as well */ | 32 | /* Add __virt_to_phys patching state as well */ |
33 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT | 33 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT |
34 | #ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT | ||
35 | #define MODULE_ARCH_VERMAGIC_P2V "p2v16 " | ||
36 | #else | ||
34 | #define MODULE_ARCH_VERMAGIC_P2V "p2v8 " | 37 | #define MODULE_ARCH_VERMAGIC_P2V "p2v8 " |
38 | #endif | ||
35 | #else | 39 | #else |
36 | #define MODULE_ARCH_VERMAGIC_P2V "" | 40 | #define MODULE_ARCH_VERMAGIC_P2V "" |
37 | #endif | 41 | #endif |