<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-07-03 4:59 GMT+02:00 Hesham Almatary <span dir="ltr"><<a href="mailto:heshamelmatary@gmail.com" target="_blank">heshamelmatary@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You can have a look at riscv-pk [1] as a RISC-V reference how to<br>
handle interrupts. RTEMS-wise, you can look at or1k and ARM code and<br>
how the platform-dependent interrupt handling code is linked to<br>
platform-independent one.<br>
<br>
mcause value can be used as an index to a software vector table that you set up.<br>
<br>
Why do you need software interrupts? GSoC-wise, I thought the plan was<br>
to develop UART/Console driver (which doesn't need interrupts), and<br>
use simulated ticker, as a first step. Then it will be easier to<br>
debug/proceed from there with interrupt handling code.<br></blockquote><div>I thought, I have to implement an interrupt console driver. Okay, then I am going to</div><div>investigate a simulated ticker. </div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>