<div dir="ltr">Hi, thanks ! Now everything works ok.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 3 Dec 2019 at 09:23, Vojtech Horky <<a href="mailto:horky@d3s.mff.cuni.cz">horky@d3s.mff.cuni.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello.<br>
<br>
Dne 02. 12. 19 v 23:40 Vojtěch Antošík napsal(a):<br>
> I believe the problem is actually somewhere else. Interrupt vector table <br>
> (or whatever it's called) only dumps registers and switches msim to <br>
> interactive mode. I am not completely sure whether it is meant to be <br>
> part of the assignment or not (more likely just a forgotten part of <br>
> exception handling implementation) but you have to change those <br>
> instructions to make it actually jump to the handler when an interrupt <br>
> is raised.<br>
<br>
Ooops, I forgot to commit changes to head.S to actually jump to the C <br>
code. Please, merge with 0678bb6494 if you have not already added the <br>
jump there. Sorry about this.<br>
<br>
- VH<br>
<br>
<br>
<br>
> <br>
> po 2. 12. 2019 v 22:44 odesílatel Vojtech Horky <<a href="mailto:horky@d3s.mff.cuni.cz" target="_blank">horky@d3s.mff.cuni.cz</a> <br>
> <mailto:<a href="mailto:horky@d3s.mff.cuni.cz" target="_blank">horky@d3s.mff.cuni.cz</a>>> napsal:<br>
> <br>
>  Â  Â Hello.<br>
> <br>
>  Â  Â Dne 02. 12. 19 v 22:38 Josef Starychfojtu napsal(a):<br>
>  Â  Â  > Hi,<br>
>  Â  Â  ><br>
>  Â  Â  > I am trying to make the interruption just work (jump to handle<br>
>  Â  Â exception<br>
>  Â  Â  > code after some cycles). According to documentation, when Compare<br>
>  Â  Â  > register and Count register equal, it causes interrupt. I used the<br>
>  Â  Â  > time_interrupt_after function to set Compare = Count + X and then<br>
>  Â  Â  > watched their values in while loop, but nothing happens, even tho<br>
>  Â  Â Count<br>
>  Â  Â  > was greater than Compare after a while. I have just a simple<br>
>  Â  Â debug print<br>
>  Â  Â  > in handle_exception_general function and it is not triggered. I<br>
>  Â  Â  > call time_interrupt_after and interrupts_restore(true) (tried even<br>
>  Â  Â  > without it) in main function of a thread. Any suggestions on what<br>
>  Â  Â am I<br>
>  Â  Â  > doing wrong?<br>
> <br>
>  Â  Â Your explanation is correct, it only misses one extra point. Timer<br>
>  Â  Â interrupt is not triggered when interrupts are disabled. I would thus<br>
>  Â  Â suggest checking that.<br>
> <br>
>  Â  Â - VH<br>
> <br>
>  Â  Â  ><br>
>  Â  Â  > Thanks !<br>
>  Â  Â  ><br>
>  Â  Â  > Josef Starychfojtu<br>
>  Â  Â  ><br>
>  Â  Â  > _______________________________________________<br>
>  Â  Â  > NSWI004 mailing list<br>
>  Â  Â  > <a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a> <mailto:<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a>><br>
>  Â  Â  > <a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
>  Â  Â  ><br>
>  Â  Â _______________________________________________<br>
>  Â  Â NSWI004 mailing list<br>
>  Â  Â <a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a> <mailto:<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a>><br>
>  Â  Â <a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
> <br>
> <br>
> _______________________________________________<br>
> NSWI004 mailing list<br>
> <a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
> <a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
> <br>
<br>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>