[NSWI004] A04

Georgii Ekserdzhian gxrjan at gmail.com
Fri Nov 20 18:27:39 CET 2020


Good evening.
Can you please answer some questions:
You say in the assignment that handle_exception_general_asm pushes
exception context on the stack of the currently running thread. But then
handle_exception_general is called an as a parameter it has a pointer to an
exception_context. Are these contexts the same? Do I need only "cause"
register from it? What value in cause indicates that it is indeed an
interrupt exception and not something else? How can I call a register dump?
Also:
We made for testing purposes two threads. thread_1 executes for a bit and
after quantum interrupt is executed.
handle_exception_general is executed which calls scheduler_schedule_next
and we can see the call to the context switch to the second thread, but for
some reason the execution goes back to handle_exception_general. What can
be the cause of this? (we pushed our code to our repo in A04 branch in case
you want to see the code).

Georgii Ekserdzhian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201120/3fe61c42/attachment.htm>


More information about the NSWI004 mailing list