mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
ARM: bcm: use memory accessors for ioremapped area
The pointer used to pass parameters to an "smc" call is produced through a call to ioremap(). As such, we should be using functions like writel() to access it. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Markus Mayer <markus.mayer@linaro.org> Reviewed-by: Matt Porter <mporter@linaro.org> Signed-off-by: Matt Porter <mporter@linaro.org>
This commit is contained in:
parent
1892bbcdd4
commit
e80eef33f4
@ -79,11 +79,11 @@ static void __bcm_kona_smc(void *info)
|
||||
/* Check map in the bounce area */
|
||||
BUG_ON(!bridge_data.initialized);
|
||||
|
||||
/* Copy one 32 bit word into the bounce area */
|
||||
args[0] = data->arg0;
|
||||
args[1] = data->arg1;
|
||||
args[2] = data->arg2;
|
||||
args[3] = data->arg3;
|
||||
/* Copy the four 32 bit argument values into the bounce area */
|
||||
writel_relaxed(data->arg0, args++);
|
||||
writel_relaxed(data->arg1, args++);
|
||||
writel_relaxed(data->arg2, args++);
|
||||
writel(data->arg3, args);
|
||||
|
||||
/* Flush caches for input data passed to Secure Monitor */
|
||||
if (data->service_id != SSAPI_BRCM_START_VC_CORE)
|
||||
|
Loading…
Reference in New Issue
Block a user