From de1b9a8f22017b286b2516179e5563c15e6057e1 Mon Sep 17 00:00:00 2001 From: Keunyoung Park Date: Mon, 29 Jan 2018 13:33:04 +0900 Subject: [PATCH] [COMMON] hw_random: change exynos_smc to __exynos_smc. it is modified to avoid corrupting x1, x2, x3. Change-Id: I903ab54f00a6ec14f1d8212d19ac71dc1db54897 Signed-off-by: Keunyoung Park --- drivers/char/hw_random/exyswd-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/exyswd-rng.c b/drivers/char/hw_random/exyswd-rng.c index 03de3fc3a1bc..78d8411507e9 100644 --- a/drivers/char/hw_random/exyswd-rng.c +++ b/drivers/char/hw_random/exyswd-rng.c @@ -192,7 +192,7 @@ static int exynos_swd_read(struct hwrng *rng, void *data, size_t max, bool wait) retry_cnt = 0; while (read_size) { spin_lock_irqsave(&hwrandom_lock, flag); - ret = exynos_smc(SMC_CMD_RANDOM, HWRNG_GET_DATA, 0, 0); + ret = __exynos_smc(SMC_CMD_RANDOM, HWRNG_GET_DATA, 0, 0); __asm__ volatile( "\t" : "+r"(reg0), "+r"(reg1), "+r"(reg2), "+r"(reg3) -- 2.20.1