Changes between Version 1 and Version 2 of Ticket #11
- Timestamp:
- Feb 15, 2010, 11:18:58 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11 – Description
v1 v2 14 14 15 15 16 We could handle all this a portable and easy way if we had an exception/syscall/whatever-handling thread. On exception/syscall, we can switch to this thread, passing arguments and state through cpu-local variables. This could make thread switching easy. 16 We could handle all this a portable and easy way if we switched back to kernel mode (not exception or user). On exception/syscall, we can switch to other kernel-mode threads. 17 18 19 Optional exception: 17 20 18 21 This does not concern IRQs, which must be as-quick as possible. But as we sometimes have to switch threads on IRQ, we should add a mecanism allowing the IRQ handler to request a system service ASAP. Then directly in the asm IRQ handling code, we can detect this service request, and make the IRQ handler jump to the syscall code rather than returning to the user code.