mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 22:27:21 -04:00
[docs] SW/crt0: minor edits
This commit is contained in:
parent
809bd07ba8
commit
34c8ce9aeb
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue