]> git.dujemihanovic.xyz Git - u-boot.git/commit
armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure
authorSergey Temerkhanov <s.temerkhanov@gmail.com>
Wed, 14 Oct 2015 16:55:46 +0000 (09:55 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 19 Jan 2016 22:25:36 +0000 (22:25 +0000)
commita5b9fa30cebd91082f9fea93d7ef33812910da6a
tree7b3078e6a1328148acd2e5361bb4b73fb8bafa40
parent94f7ff36e521674a02145a3ff04b659c40122ba3
armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

This commit adds functions issuing calls to secure monitor or
hypervisore. This allows using services such as Power State
Coordination Interface (PSCI) provided by firmware, e.g. ARM
Trusted Firmware (ATF)

The SMC call can destroy all registers declared temporary by the
calling conventions. The clobber list is "x0..x17" because of
this

Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
arch/arm/cpu/armv8/Makefile
arch/arm/cpu/armv8/fwcall.c [new file with mode: 0644]
arch/arm/include/asm/system.h