added some comments to help debuggers in the future

This commit is contained in:
DTowersM 2022-06-10 01:44:52 +00:00
parent d280f10a8d
commit b586e3af37

View file

@ -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