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
1 parent 977fbcd commit 5003ecabf8c756f58393aa355f65ebb7e1e9d46e
@Andrew Thoelke Andrew Thoelke authored on 10 Jun 2014
Showing 1 changed file
View
services/std_svc/psci/psci_main.c