Skip to content

Commit

Permalink
[docs] SW/crt0: minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
stnolting committed Jul 6, 2024
1 parent 809bd07 commit 34c8ce9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/datasheet/software.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -535,14 +535,9 @@ The `crt0.S` start-up performs the following operations:
. If `main` returns:
** All interrupt sources are disabled by clearing <<_mie>>.
** The return value of `main` is copied to the <<_mscratch>> CSR to allow inspection by the debugger.
** Call all _destructors_ (if there are any).
** Call all _destructors_ (if there are any). If any destructor causes an exception the crt0's trap handler is used for handling (= skipping) this.
** The CPU enters sleep mode executing the `wfi` instruction in an endless loop.

.Bootloader Start-Up Code
[NOTE]
The bootloader uses the same start-up code as any "usual" application. However, certain parts are omitted when compiling
`crt0` for the bootloader (like calling constructors and destructors). See the `crt0` source code for more information.


:sectnums:
===== Early Trap Handler
Expand Down

0 comments on commit 34c8ce9

Please sign in to comment.