sync on a smp system (again)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
FlashBurn

Re:sync on a smp system (again)

Post by FlashBurn »

Sorry, but I thought that I uploaded the code!

I think it is in the function "scheduler_enqueue_smp", because if I comment out the code for taking the spinlock of the thread then something get printed and I get a pagefault. With the code I get a deadlock.
FlashBurn

Re:sync on a smp system (again)

Post by FlashBurn »

Ok, you can?t find a deadlock, because there isn?t anyone ::) I forgot to change my multitask init function, which worked with the old code and there I set the spinlock acquired for the idle thread and so the scheduler can?t get this spinlock and will loop forever :(

Now I get a page fault and I will look if I can find the failure.
FlashBurn

Re:sync on a smp system (again)

Post by FlashBurn »

Yeah, I got it finally working 8) I implemented thread status and my scheduler_add_scheduler function waits now till the THREAD_RUN flag is cleared! It is working and I saved a lot of spinlocking the thread struc.
Post Reply