|
From: David G. <dga...@gm...> - 2018-07-16 16:07:12
|
Hi Roger, nice to read that you're working on those drivers 2018-07-16 17:02 GMT+02:00 Roger Burrows <an...@xp...>: > I'm looking at the NetUSBee code with the objective of getting a mouse driver > (and later a keyboard driver) to work under TOS. > > In /sys/usb/src.km/ucd/netusbee/isp116x-hcd.c, I don't understand why > TOS_INT_OFF/TOS_INT_ON are not used every time that MINT_INT_OFF/MINT_INT_ON > are used. Both set the interrupt level to 6 to prevent device drivers (hooked > off etv_timer) from being called while critical sections are running. Can > someone explain why some sections of code are protected under MiNT but not > under TOS? > When I added that code, interrupts were set/unset the same for MiNT and TOS, indeed I use the same macros for both systems, after adding that code the transfer rate using USB storage devices decreased significantly. As the NetUSBee TOS driver was stable before the code was added Claude proposed to turn off the interrupts in the TOS driver only where it was done previously. Although I think it's like playing to the "Russian Roulette" ;-) for now it looks like the driver is still stable under TOS...well there are some problems with some TTs and PAK3 cards, but those issues I suspect are timing related. |