]> git.baikalelectronics.ru Git - arm-tf.git/commit
PSCI SMC handler improvements
authorAndrew Thoelke <andrew.thoelke@arm.com>
Tue, 10 Jun 2014 15:37:37 +0000 (16:37 +0100)
committerAndrew Thoelke <andrew.thoelke@arm.com>
Tue, 10 Jun 2014 15:41:22 +0000 (16:41 +0100)
commit5003ecabf8c756f58393aa355f65ebb7e1e9d46e
tree18041b7c9df747a494cda5a1ebfb403dca4e290c
parent977fbcd4e0842e590a961d6f40c14653caa9301a
PSCI SMC handler improvements

The SMC handler for PSCI was not correctly handling calls from
secure states, or from AArch32.

This patch completes the handler implementation to correctly
detect secure callers and to clear the top bits in parameters from
AArch32 callers.

The patch also reorganises the switch statement to separate SMC64 and
SMC32 function IDs which allows the compiler to generate much smaller
code for the function.

Change-Id: I36b1ac81fb14253d257255d0477771d54fab0d11
services/std_svc/psci/psci_main.c