fachat / GeckOS-V2

GeckOS version 2, a multi-tasking and multithreading operating system for the 6502
http://www.6502.org/users/andre/osa/index.html
GNU General Public License v2.0
240 stars 28 forks source link

Improve device interrupt handling #77

Closed fachat closed 7 months ago

fachat commented 1 year ago

Device interrupts are currently handled via standard DEVCMD chain. Interrupt handling could be faster if:

fachat commented 7 months ago

The kernel interrupt code has been cleaned up, with clear separation of hardware out to the architecture code. CHECKTIMER() now ack's a timer interrupt, and returns C=1 if it was the timer. The kernel then either sends DC_IRQ or DC_TIMER to the devices.

fachat commented 7 months ago

Interruptible devices are possible now.

(only console does cli, and only for short periods though - it is not really made for this due to setscr copying variables around at the beginning)