arm-trusted-firmware/include
Juan Castillo 40fc6cd141 Add optional platform error handler API
This patch adds an optional API to the platform port:

    void plat_error_handler(int err) __dead2;

The platform error handler is called when there is a specific error
condition after which Trusted Firmware cannot continue. While panic()
simply prints the crash report (if enabled) and spins, the platform
error handler can be used to hand control over to the platform port
so it can perform specific bookeeping or post-error actions (for
example, reset the system). This function must not return.

The parameter indicates the type of error using standard codes from
errno.h. Possible errors reported by the generic code are:

    -EAUTH  : a certificate or image could not be authenticated
              (when Trusted Board Boot is enabled)
    -ENOENT : the requested image or certificate could not be found
              or an IO error was detected
    -ENOMEM : resources exhausted. Trusted Firmware does not use
              dynamic memory, so this error is usually an indication
              of an incorrect array size

A default weak implementation of this function has been provided.
It simply implements an infinite loop.

Change-Id: Iffaf9eee82d037da6caa43b3aed51df555e597a3
2015-10-28 09:13:40 +00:00
..
bl31 Merge pull request #390 from vikramkanigiri/at/unify_bakery_locks_v2 2015-09-14 21:49:10 +01:00
bl32 Send power management events to the Trusted OS (TLK) 2015-09-30 10:38:28 +05:30
common Use standard errno definitions in load_auth_image() 2015-10-23 16:57:52 +01:00
drivers IO Framework: use standard errno codes as return values 2015-10-23 16:57:52 +01:00
lib Make CASSERT() macro callable from anywhere 2015-10-19 08:52:35 +01:00
plat Add optional platform error handler API 2015-10-28 09:13:40 +00:00
stdlib Enable type-checking of arguments passed to printf() et al. 2015-03-06 13:07:43 +00:00