From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 13 Oct 2008 09:55:54 +0000 (GMT) From: Gabriele Moabiti MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1962456848-1223891754=:58327" Message-ID: <967654.58327.qm@domain.hid> Subject: Re: [Xenomai-help] trap exceptions in user List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Xenomai help --0-1962456848-1223891754=:58327 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >> I did't specify I have passed mem=3Dxxx to kernel to take the upper 16MB= =0A>> I think the RTDM mapping works.=0A>=0A>Yes, but I still think this is= useless. If your user-space code expects=0A>to be running from 1MB to 16MB= , it expects this for virtual addresses,=0A>not for physical addresses. So,= I really think you should mmap the 1MB=0A>to 16MB region by passing the st= art address to mmap with the MMAP_FIXED=0A>flag.=0A=0AI have tried fixed mm= ap mode and I have no luck.=0AOutside the mmap mapped memory exceptions are= trapped with rthal_trap_catch.=0AInside the callback doesn't work... seems= to dislike mapped memory...=0A=0AAnother question:=0AIs it right I can set= rthal_trap_catch only in kernel rt/nrt task?=0A=0A Gabriele=0A=0A=0A = Scopri il blog di Yahoo! Mail:=0ATrucchi, novit=C3=A0 e scrivi la tua op= inione.=0Ahttp://www.ymailblogit.com/blog --0-1962456848-1223891754=:58327 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
&= gt;> I did't specify I have passed mem=3Dxxx to kernel to take the upper= 16MB
>> I think the RTDM mapping works.
>
>Yes, but I= still think this is useless. If your user-space code expects
>to be = running from 1MB to 16MB, it expects this for virtual addresses,
>not= for physical addresses. So, I really think you should mmap the 1MB
>= to 16MB region by passing the start address to mmap with the MMAP_FIXED
= >flag.

I have tried fixed mmap mode and I have no luck.
Outsid= e the mmap mapped memory exceptions are trapped with rthal_trap_catch.
I= nside the callback doesn't work... seems to dislike mapped memory...

Another question:
Is it right I can set rthal_trap_cat= ch only in kernel rt/nrt task?

    Gabriele


=0A=0A=0A=0A
Scopri il Blog d= i Yahoo! Mail: trucchi, novit=C3=A0, consigli... e scrivi la tua opinio= ne! --0-1962456848-1223891754=:58327--