summaryrefslogtreecommitdiff
path: root/doc/usage/cmd/sbi.rst
blob: 5492925a8bc34e096221242d3d9d2c48ff80513e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.. SPDX-License-Identifier: GPL-2.0+

.. index::
   single: sbi (command)

sbi command
===========

Synopsis
--------

::

    sbi

Description
-----------

The sbi command is used to display information about the SBI (Supervisor Binary
Interface) implementation on RISC-V systems.

The output may look like:

::

    => sbi
    SBI 1.0
    OpenSBI 1.1
    Machine:
      Vendor ID 0
      Architecture ID 0
      Implementation ID 0
    Extensions:
      Set Timer
      Console Putchar
      Console Getchar
      Clear IPI
      Send IPI
      Remote FENCE.I
      Remote SFENCE.VMA
      Remote SFENCE.VMA with ASID
      System Shutdown
      SBI Base Functionality
      Timer Extension
      IPI Extension
      RFENCE Extension
      Hart State Management Extension
      System Reset Extension
      Performance Monitoring Unit Extension

The first line indicates the version of the RISC-V SBI specification.
The second line indicates the implementation.
The Machine section shows the values of the machine information registers.
The Extensions section enumerates the implemented SBI extensions.

Configuration
-------------

To use the sbi command you must specify CONFIG_CMD_SBI=y.