diff options
author | Andrew Jones <[email protected]> | 2023-04-27 18:36:26 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-04-29 13:04:50 -0700 |
commit | 41cad8284d5e6bf1d49d3c10a6b52ee1ae866a20 (patch) | |
tree | 5ec9f85ff9226487c9e5bafa47a4a69338ca8915 /lib/mpi/mpi-mul.c | |
parent | e4ef93edd4e0b022529303db1915766ff9de450e (diff) |
RISC-V: Align SBI probe implementation with spec
sbi_probe_extension() is specified with "Returns 0 if the given SBI
extension ID (EID) is not available, or 1 if it is available unless
defined as any other non-zero value by the implementation."
Additionally, sbiret.value is a long. Fix the implementation to
ensure any nonzero long value is considered a success, rather
than only positive int values.
Fixes: b9dcd9e41587 ("RISC-V: Add basic support for SBI v0.2")
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions