multitasking and locking the kernel
Posted: Fri Sep 26, 2008 1:07 am
Hi,
I am getting around to fixing my multitasking but I'm not sure of the best way to lock my kernel during critical operations. I've tried just setting a flag so the timer keeps firing but I don't think this is working for me. My critical operations are a few vm86 routines which I think are causing a problem with my timer/scheduler.
Should I mask off the timer irq? Or should I just do a cli?
Any suggestions would be appreciated.
I am getting around to fixing my multitasking but I'm not sure of the best way to lock my kernel during critical operations. I've tried just setting a flag so the timer keeps firing but I don't think this is working for me. My critical operations are a few vm86 routines which I think are causing a problem with my timer/scheduler.
Should I mask off the timer irq? Or should I just do a cli?
Any suggestions would be appreciated.