lib: sbi: system reset with invalid parameters
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 15 Oct 2021 13:42:21 +0000 (15:42 +0200)
committerAnup Patel <anup@brainfault.org>
Mon, 18 Oct 2021 10:37:21 +0000 (16:07 +0530)
commit67cbbcb100d321ec61f6424392562834083e9c98
treeacf36afbfa2b654a9c2d9d9f141c3132c920fc41
parentc38973e0879e719d2b3ce1304802ea6b995d0d7e
lib: sbi: system reset with invalid parameters

The SBI specification requires that sbi_system_reset() returns
SBI_ERR_INVALID_PARAM if reset_type or reset_reason are not valid.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_ecall_replace.c