ARM-software / tf-issues

Issue tracking for the ARM Trusted Firmware project
37 stars 16 forks source link

Incorrect documentation regarding interrupt handlers #358

Open lumag opened 8 years ago

lumag commented 8 years ago

In documentation it is written, that interrupt handler returns a pointer to the context which is used to restore state. However it seems that in reality the return value is ignored and context is restored by el3_exit using sp_el3.

soby-mathew commented 8 years ago

Yes, you are right. The context management in Trusted Firmware stores the current cpu_context pointer in sp_el3 and this allows us to ignore the return value from the interrupt handler. But this return value is useful if context management has to be done differently. The document can be modified to reflect this.

soby-mathew commented 8 years ago

Internal ref: http://jira.arm.com/browse/GENFW-1402