System sometimes appears wedged under msim
|Reported by:||Jakub Jermář||Owned by:||Martin Decky|
|Blocker for:||Depends on:|
The latest mainline (r2266) HelenOS/mips32/msim will appear hung, especially after a longer period of inactivity or when we change focus of the terminal window, but a closer look will reveal that it is only the keyboard input that for some reason does not pass through as it should.
You can try to boot (try to give the system 64M instead of 32M), then let HelenOS rest for some time and see if it appears hung (does not react to keyboard input). If it is still alive, try issuing a couple of commands and switch to some other window on your desktop and then back to the terminal window with msim.
If you indeed manage to hang the system, you will be able to set a breakpoint on exc_dispatch() and see that the kernel is still ticking, only the keyboard interrupts are not processed for some reason.
When the system appears hung, the kernel is executing the WAIT instruction in
scheduler_separated_stack(), which suggests waiting for an interrupt event.