Home
last modified time | relevance | path

Searched hist:a0df540206c1dec603b96fe49c7ea47c09227a4e (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/arm/kernel/
H A Dentry_a32.Sa0df540206c1dec603b96fe49c7ea47c09227a4e Tue Aug 31 16:44:02 UTC 2021 Clément Léger <clement.leger@bootlin.com> core: Fix r7 clobbering in reset_primary

During reset_primary, r7 is used to keep the content of r2 register
given at OP-TEE start. However, r7 is clobbered during boot. This lead
to r2 being incorrectly restored when returning to normal world. Use
r9 instead of r7 where needed to avoid clobbering it.

Fixes: 59ac3801b756 ("core: split boot_init_primary")
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>