]> git.baikalelectronics.ru Git - arm-tf.git/commit
Rework incorrect use of assert() and panic() in codebase
authorJuan Castillo <juan.castillo@arm.com>
Thu, 5 Jun 2014 08:45:36 +0000 (09:45 +0100)
committerJuan Castillo <juan.castillo@arm.com>
Mon, 28 Jul 2014 11:20:16 +0000 (12:20 +0100)
commitd3280beb700321b0ef47b4f61d84667ba501bc61
tree8a6c3f70a6f8d289256ac3fb940ea07a339072a1
parent592dd7cbe658cc33ae2818c9ed543ac57e97f784
Rework incorrect use of assert() and panic() in codebase

Assert a valid security state using the macro sec_state_is_valid().
Replace assert() with panic() in those cases that might arise
because of runtime errors and not programming errors.
Replace panic() with assert() in those cases that might arise
because of programming errors.

Fixes ARM-software/tf-issues#96

Change-Id: I51e9ef0439fd5ff5e0edfef49050b69804bf14d5
bl31/bl31_main.c
bl31/context_mgmt.c
bl31/interrupt_mgmt.c
common/bl_common.c
drivers/arm/gic/arm_gic.c
drivers/arm/tzc400/tzc400.c
include/common/bl_common.h
include/drivers/arm/tzc400.h
plat/fvp/aarch64/fvp_common.c
plat/fvp/bl31_fvp_setup.c
services/spd/tspd/tspd_common.c