[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211218085843.212497-3-cuigaosheng1@huawei.com>
Date: Sat, 18 Dec 2021 16:58:42 +0800
From: Gaosheng Cui <cuigaosheng1@...wei.com>
To: <linux@...linux.org.uk>, <krzysztof.kozlowski@...onical.com>,
<andrew@...n.ch>, <gregory.clement@...tlin.com>,
<sebastian.hesselbarth@...il.com>, <vireshk@...nel.org>,
<shiraz.linux.kernel@...il.com>, <soc@...nel.org>,
<linus.walleij@...aro.org>, <ardb@...nel.org>,
<cuigaosheng1@...wei.com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-samsung-soc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <gongruiqi1@...wei.com>,
<wangweiyang2@...wei.com>
Subject: [PATCH -next 2/3] arm-soc: mvebu: replace open coded VA->PA conversion
From: Ard Biesheuvel <ard.biesheuvel@...aro.org>
This replaces an open coded calculation to obtain the physical
address of a far symbol with a call to the new ldr_l etc macro.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@...aro.org>
Signed-off-by: Gaosheng Cui <cuigaosheng1@...wei.com>
---
arch/arm/mach-mvebu/coherency_ll.S | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/arch/arm/mach-mvebu/coherency_ll.S b/arch/arm/mach-mvebu/coherency_ll.S
index a3a64bf97250..9ae65b1e9745 100644
--- a/arch/arm/mach-mvebu/coherency_ll.S
+++ b/arch/arm/mach-mvebu/coherency_ll.S
@@ -37,9 +37,7 @@ ENTRY(ll_get_coherency_base)
* MMU is disabled, use the physical address of the coherency
* base address, (or 0x0 if the coherency fabric is not mapped)
*/
- adr r1, 3f
- ldr r3, [r1]
- ldr r1, [r1, r3]
+ ldr_l r1, coherency_phys_base
b 2f
1:
/*
@@ -155,7 +153,3 @@ ENTRY(ll_disable_coherency)
dsb
ret lr
ENDPROC(ll_disable_coherency)
-
- .align 2
-3:
- .long coherency_phys_base - .
--
2.30.0
Powered by blists - more mailing lists