[FOSS_TLK]security: tlk_driver: add FIQ glue
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 4 Aug 2014 05:53:13 +0000 (10:53 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 18 Jun 2015 12:07:23 +0000 (05:07 -0700)
commit282a94dc2c7a638995e15b06d7b5e27d1f733bd0
tree8837b2250a0ae79e82dd4d233fb3dec1818df15d
parent5ba7da70b11dc8c1a0df98b0b02c15d882be0ead
[FOSS_TLK]security: tlk_driver: add FIQ glue

Add FIQ glue for ARM64 cpus and register a handler with the secure world (TLK).
TLK handles the FIQ interrupts and calls our handler after it is done saving
the context. We then get the FIQ context via a SMC call and pass it to the
FIQ handler registered by the kernel (using fiq_glue_register_handler).

The FIQ debugger calls fiq_glue_register_handler() to register its handler
which we in turn call whenever a FIQ fires. The glue saves all the registers,
elr/spsr values and SP, which is then used by tlk_fiq_handler() to pass on to
the actual handler.

Change-Id: I6711c25892284dd82c9042479381eca5f707c9b4
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/755001
Reviewed-by: Automatic_Commit_Validation_User
security/tlk_driver/Kconfig
security/tlk_driver/Makefile
security/tlk_driver/ote_asm.S
security/tlk_driver/ote_fiq_glue.c [new file with mode: 0644]
security/tlk_driver/ote_protocol.h