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
1 parent 592dd7c commit d3280beb700321b0ef47b4f61d84667ba501bc61
@Juan Castillo Juan Castillo authored on 5 Jun 2014
Showing 11 changed files
View
bl31/bl31_main.c
View
bl31/context_mgmt.c
View
bl31/interrupt_mgmt.c
View
common/bl_common.c
View
drivers/arm/gic/arm_gic.c
View
drivers/arm/tzc400/tzc400.c
View
include/common/bl_common.h
View
include/drivers/arm/tzc400.h
View
plat/fvp/aarch64/fvp_common.c
View
plat/fvp/bl31_fvp_setup.c
View
services/spd/tspd/tspd_common.c