2011/4/22 Gilles Chanteperdrix <[email protected]> > Aurele Traynard wrote: > > 2011/4/22 Gilles Chanteperdrix <[email protected]> > > > >> Aurele Traynard wrote: > >>> ok i'm sorry i wasn't clear at all... > >>> my problem is : when i call readl in a rt_task, the task is stopped... > >>> (maybe because the rt_task is launched in a module?) > >>> "Xenomai: suspending kernel thread bf0041c8 ('test_rt') at 0xbf003824 > >> after > >>> exception #0" > >>> if i remove the readl there is no problem > >>> > >>> With a normal Linux, in a module there isn't any problem > >> On what platform? I can think of two things: > >> - the platform you use maps the ioremaped memory on-demand (x86 and ARM > >> at least do not allow this, but I do not know about other platforms) > >> - you are making an unaligned access, it works with Linux because it has > >> a handler for handling unaligned accesses, whereas Xenomai default > >> handler is to simply suspend a task doing this kind of things. > >> > >> Please do not forget to CC the mailing list. > >> > >> -- > >> Gilles. > >> > > I'm working with PXA270 (ARMv5te), FPGA's registers physicaly are mapped > as > > CPU's registers... so it is alligned (i read 0x040001C0 and i use a > 32bits > > integer....) > > so if i understand it should work... > > Are you sure 0x040001C0 is a virtual address? > > -- > Gilles. > I'm sure it is not a virtual address. It is the physical address. I use "ioremap" and after i use the value given by "ioremap" in "readl"
I apologize I realized my mistake thanks to you... it wasn't in any case from Xenomai (I just launch the task too early...) Thanks a lot for your time. Aurèle
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
