Additional runtime check for DTB presence in BL2
authorJohn Tsichritzis <john.tsichritzis@arm.com>
Fri, 7 Sep 2018 09:42:37 +0000 (10:42 +0100)
committerJohn Tsichritzis <john.tsichritzis@arm.com>
Fri, 7 Sep 2018 10:44:45 +0000 (11:44 +0100)
commita606031e7c1fbb4628aa6f478620eb1862e3d3c5
tree14a86f5622e406550daad051bd8ed145bbee007f
parent7af2dd2ef6e79fd18c5c6f604e20b885ff9f342b
Additional runtime check for DTB presence in BL2

In Mbed TLS shared heap code, an additional sanity check is introduced
in BL2. Currently, when BL2 shares heap with BL1, it expects the heap
info to be found in the DTB. If for any reason the DTB is missing, BL2
cannot have the heap address and, hence, Mbed TLS cannot proceed. So,
BL2 cannot continue executing and it will eventually crash.  With this
change we ensure that if the DTB is missing BL2 will panic() instead of
having an unpredictable crash.

Change-Id: I3045ae43e54b7fe53f23e7c2d4d00e3477b6a446
Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
plat/arm/common/arm_dyn_cfg.c