[NSWI004] A04

Petr Tuma petr.tuma at d3s.mff.cuni.cz
Mon Nov 23 13:01:29 CET 2020


Hello Georgii,

> Also, when handle_exception_general returns shouldn't it go to EPC?

Not sure what you mean here, but the general exception handler uses the ERET instruction to return, and (in most cases) that returns to the address in EPC, yes.

> Do we need to manipulate the count register somehow? Or it will reset automatically?

After the timer interrupt ? The register just keeps counting, you could reset it manually, or update the compare register, up to you.

Petr


More information about the NSWI004 mailing list