Add helper library for cpu context management
This patch introduces functions for saving and restoring shared system
registers between secure and non-secure EL1 exception levels, VFP
registers and essential EL3 system register and other state. It also
defines the 'cpu_context' data structure which will used for saving and
restoring execution context for a given security state. These functions
will allow runtime services like PSCI and Secure payload dispatcher to
implement logic for switching between the secure and non-secure states.

The save and restore functions follow AArch64 PCS and only use
caller-saved temporary registers.

Change-Id: I8ee3aaa061d3caaedb28ae2c5becb9a206b6fd74
1 parent b739f22 commit 9ac63c59c4b6de7e48a6702ad799dc961a4fd6de
@Achin Gupta Achin Gupta authored on 16 Jan 2014
Dan Handley committed on 17 Feb 2014
Showing 3 changed files
View
bl31/aarch64/context.S 0 → 100644
View
bl31/bl31.mk
View
include/context.h 0 → 100644