diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-02-11 17:39:45 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-02-13 09:57:22 +0530 |
commit | 1a8ca08cc037c65c605e7e2f98b8c01606eaca3b (patch) | |
tree | 57bb07fa0b0ccfc6d3df6e96b5609affaaa82f56 /platform | |
parent | 897b8fbdd92fcfad194417d348b8dad16ab0e17a (diff) |
lib: Initialize out value in SBI calls
As per the SBI specification, the return value in sbiret is undefined
if not explicitly described in the function. However, supervisor may
check this value by mistake and get a garbage value.
Initialize it to zero to avoid nasty supervisor bugs.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform')
0 files changed, 0 insertions, 0 deletions