URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [common/] [crt0.S] - Diff between revs 39 and 40
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 39 |
Rev 40 |
Line 186... |
Line 186... |
csrw mcycle, zero
|
csrw mcycle, zero
|
csrw mcycleh, zero
|
csrw mcycleh, zero
|
csrw minstret, zero
|
csrw minstret, zero
|
csrw minstreth, zero
|
csrw minstreth, zero
|
|
|
|
// restore mcause reset value (so that 'main' knows we are coming from reset)
|
|
li x12, 0x80000000
|
|
csrw mcause, x12
|
|
|
|
// call actual app's main function
|
jal ra, main
|
jal ra, main
|
|
|
|
|
// *********************************************************
|
// *********************************************************
|
// Go to endless sleep mode if main returns
|
// Go to endless sleep mode if main returns
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.