[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] mark_bh



Hi Kevin,

kbb@xxxxxxxxxxxxxxxx wrote:
I am using the 2.4 petalinux and porting laptop code to the microblaze.

The code is trying to use the

queue_task( XX,XX);
mark_bh(IMMEDIATE_BH);

calls.  THis doesn't seem to work as it locks up on the microblaze.  Has
anyone used these kind of calls on a flat memory model and got them to
work?

sure, this should work. It's used in the uartlite driver for example (on the SERIAL_BH).

linux-2.4.x/arch/microblaze/kernel/xmbserial.c:357

It may be that a previously untriggered race condition is now being hit, or some locking violation that previosuly didn't matter, now matters.

To debug this you'll need to get a bit forensic on the lockup, use XMD to see where the kernel is and try to backtrace from there.

I will be converting them to tasklets but it seems as though I should have
the same problem.

Tasklets also work fine, but it's easy to use them wrongly! Nothing MicroBlaze specific about that however.

Regards,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/