mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-24 13:57:07 -04:00
added some comments to help debuggers in the future
This commit is contained in:
parent
d280f10a8d
commit
b586e3af37
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ WRITE_READ_CSR mie, 0xFFF // Enable interrupts from all sources
|
|||
|
||||
// Code copied from test library to cause m time interrupt, with time loop replaced with wfi.
|
||||
|
||||
/* Note: the following line might cause problems in the future. If more than 0x50 cycles are needed before the wfi
|
||||
instruction begins, then the program might fall into a loop and run forever*/
|
||||
li x28, 0x50 // Desired offset from the present time
|
||||
mv a3, x28 // copy value in to know to stop waiting for interrupt after this many cycles
|
||||
la x29, 0x02004000 // MTIMECMP register in CLINT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue