Re: When is to preempt safe?

2011-10-09 Thread Michael Blizek
Hi! On 00:24 Sun 09 Oct , Parmenides wrote: 2011/10/8 Michael Blizek mic...@michaelblizek.twilightparadox.com: Hi! There are 2 different kind of locks: Those which can be preempted (mutex and semaphores) and those which cannot (spinlocks). Spinlocks do busy waiting until the lock

Re: When is to preempt safe?

2011-10-09 Thread Dave Hylands
Hi Michi, On Sat, Oct 8, 2011 at 11:29 PM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 00:24 Sun 09 Oct     , Parmenides wrote: 2011/10/8 Michael Blizek mic...@michaelblizek.twilightparadox.com: Hi! There are 2 different kind of locks: Those which can be

Re: When is to preempt safe?

2011-10-09 Thread michi1
Hi! On 23:53 Sat 08 Oct , Dave Hylands wrote: Hi Michi, On Sat, Oct 8, 2011 at 11:29 PM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: ... Disabling interrupts actually disables preemption as well. Preemption is triggered by a timer interrupt, which cannot arrive in

Re: When is to preempt safe?

2011-10-09 Thread michi1
Hi! On 19:52 Sun 09 Oct , Parmenides wrote: 2011/10/9 Daniel Baluta daniel.bal...@gmail.com: On Sat, Oct 8, 2011 at 7:19 PM, Parmenides mobile.parmeni...@gmail.com wrote: Well, I think that if task B has higher priority than task A, then A would never have the chance to release

Re: Enabling USB OTG

2011-10-09 Thread Peter Teoh
Read Sven on programming and enabling OTG for Android: http://sven.killig.de/android/N1/2.2/usb_host/ For example, the following discussion described its successful implementation: http://forum.xda-developers.com/showthread.php?t=993152 At the hardware level I think u will need to connect your

Re: userspace address to bus address

2011-10-09 Thread Peter Teoh
while reading this: http://linux.die.net/man/2/mlock notice that u have to allocate + write to the memory first, before mlocking it - did u do that? (this is to prevent copy-on-write page fault, which means the memory is allocated.but is not really resident until written to itso