Check Trusty is present during the SPD's initialization
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 30 Nov 2016 11:24:01 +0000 (11:24 +0000)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 30 Nov 2016 11:26:22 +0000 (11:26 +0000)
commite97e413fb5b4f9dd72b76cdfd6cfa4713b9232aa
tree5aec0a58101bd17f829b6aa99e3120fffdf4e40d
parent2fa94890aebe74f0279a4bb796471aaa049815d2
Check Trusty is present during the SPD's initialization

Add a debug assertion in the initialization function of Trusty's SPD
to check for the presence of Trusty. If Trusty is absent then the SPD's
setup function already detects it and returns an error code so the init
function will never been called. Therefore, a debug assertion is enough
to catch this improbable error case.

Change-Id: Id20013e9291cdeef7827b919de2a22455f6cd9f9
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
services/spd/trusty/trusty.c