Skip to content

Commit

Permalink
Clarify error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAZoidberg committed May 17, 2020
1 parent 05a7649 commit 7bc0ca1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion riscv-sbi.adoc
Expand Up @@ -66,7 +66,16 @@ returning an error code. This is analogous to returning the C structure
};
----

Standard SBI error codes are listed below
Every function defined in the specification has a set of error codes associated
with a case in which they are returned. In the even of such a case, that error
code must be returned. Cases unaccounted for by the specification should use
`SBI_ERR_FAILED` and be added in the next version of the SBI specification.

Custom SBI calls defined in a vendor or firmware extension can return custom
error codes, however it is recommended that they use the standard error codes
when appropriate.

The standard SBI error codes are listed below:

[cols="<,>",options="header,compact"]
|===
Expand Down

0 comments on commit 7bc0ca1

Please sign in to comment.