mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
BL31: Fix warning about BL32 init function
The expected value for failure is 0, so the warning only has to be shown in that case. This is the way the TSPD has done it since it was introduced, and the way SPM and OP-TEE do it. Trusty wrongly returns 0 on success. In the case of TLK, the return value of tlkd_init() is passed from the secure world in register X1 when calling the SMC TLK_ENTRY_DONE. Change-Id: I39106d67631ee57f109619f8830bf4b9d96155e6 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
e52ed092cd
commit
74ad948f43
1 changed files with 2 additions and 4 deletions
|
@ -108,10 +108,8 @@ void bl31_main(void)
|
|||
|
||||
int32_t rc = (*bl32_init)();
|
||||
|
||||
if (rc != 0) {
|
||||
WARN("BL31: BL32 initialization failed (rc = %d)\n",
|
||||
rc);
|
||||
}
|
||||
if (rc == 0)
|
||||
WARN("BL31: BL32 initialization failed\n");
|
||||
}
|
||||
/*
|
||||
* We are ready to enter the next EL. Prepare entry into the image
|
||||
|
|
Loading…
Add table
Reference in a new issue