]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc: exception command
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 26 Jan 2021 11:59:09 +0000 (12:59 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 27 Jan 2021 11:52:57 +0000 (12:52 +0100)
Create man-page for exception command.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
doc/usage/exception.rst [new file with mode: 0644]
doc/usage/index.rst

diff --git a/doc/usage/exception.rst b/doc/usage/exception.rst
new file mode 100644 (file)
index 0000000..412a03b
--- /dev/null
@@ -0,0 +1,68 @@
+exception command
+=================
+
+Synopsis
+--------
+
+::
+
+    exception <type>
+
+Description
+-----------
+
+The exception command is used to test the handling of exceptions like undefined
+instructions, segmentation faults or alignment faults.
+
+type
+  type of exception to be generated. The available types are architecture
+  dependent. Use 'help exception' to determine which are available.
+
+  **ARM:**
+
+  breakpoint
+    prefetch abort
+
+  unaligned
+    data abort
+
+  undefined
+    undefined instruction
+
+  **RISC-V:**
+
+  unaligned
+    load address misaligned
+
+  undefined
+    undefined instruction
+
+  **Sandbox:**
+
+  sigsegv
+    illegal memory access
+
+  undefined
+    undefined instruction
+
+  **x86:**
+
+  undefined
+    undefined instruction
+
+Examples
+--------
+
+::
+
+    => exception undefined
+
+    Illegal instruction
+    pc = 0x56076dd1a0f9, pc_reloc = 0x540f9
+
+    resetting ...
+
+Return value
+------------
+
+The return value $? is always set to 0 (true).
index f75bd082378bcb7b9cb2e061f0ffa6777caf8928..83cfbafd9058ecc7f4f7c54a90c02ada4710edc7 100644 (file)
@@ -19,6 +19,7 @@ Shell commands
    button
    conitrace
    echo
+   exception
    exit
    false
    for