mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
added some comments to help debuggers in the future
This commit is contained in:
parent
9e2d80764d
commit
13c1cf12b2
@ -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…
Reference in New Issue
Block a user