MIME-Version: 1.0 Date: Tue, 3 May 2011 14:07:28 +0200 Message-ID: From: Aurele Traynard Content-Type: multipart/alternative; boundary=bcaec51a8172e6476f04a25dfb70 Subject: [Xenomai-help] reading/writing registers List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xenomai help --bcaec51a8172e6476f04a25dfb70 Content-Type: text/plain; charset=ISO-8859-1 hello, I am writing a little test. I put all my RT things in a module : one ISR and one RT task. in init_module I call : drv->data.regs = ioremap(0x04000000, 64*1024*1024); drv->data.gpio = ioremap(0x40E00000, 64*1024*1024); this is to acces registers rthal_irq_request(8, my_rt_isr, NULL, &(drv->data)); rthal_irq_enable(8); for the ISR in my interrupt routine I use : writel(1, data->gpio + 0x48); for hardware interrupt acknowledge but when my interrupt routine is called linux is freezing so i think that I am never going out of the ISR (I am 99.9% sure). I am not sure but I think that It is due to the hardware interrupt aknoledge... my question is : can I call "writel(1, data->gpio + 0x48);" in my ISR? is it good or not? is there an other way to access registers? thanks for your answers. PS firstly I was calling : "GEDR0 = 0x1;" but in RT task this macro doesn't work --bcaec51a8172e6476f04a25dfb70 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable hello,

I am writing a little test. I put all my RT things in a modul= e : one ISR and one RT task.
in init_module I call :

drv->data= .regs =3D ioremap(0x04000000, 64*1024*1024);
drv->data.gpio =3D iorem= ap(0x40E00000, 64*1024*1024);
this is to acces registers

rthal_irq_request(8, my_rt_isr, NULL, &am= p;(drv->data));
rthal_irq_enable(8);
for the ISR

in my inte= rrupt routine I use : writel(1, data->gpio + 0x48); for hardware interru= pt acknowledge

but when my interrupt routine is called linux is freezing so i think th= at I am never going out of the ISR (I am 99.9% sure).
I am not sure but = I think that It is due to the hardware interrupt aknoledge...

my que= stion is :
can I call "writel(1, data->gpio + 0x48);" in my ISR?
is i= t good or not?
is there an other way to access registers?

thanks= for your answers.

PS firstly I was calling : "GEDR0 =3D 0x1;&q= uot; but in RT task this macro doesn't work
--bcaec51a8172e6476f04a25dfb70--