Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-11-01 Thread Philippe Gerum
On 10/31/2016 07:12 PM, Giulio Moro wrote: > Thanks Philippe, > >>> //causes mode switches: >>> rt_printf("%f\n", arr[n]); >>> >> >> This is due to minor faults, when the memory is there but not referenced >> to by a valid PTE in the page table for the current process yet. >> >> Before the 3.10

Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-10-31 Thread Giulio Moro
Thanks Philippe, >> //causes mode switches: >> rt_printf("%f\n", arr[n]); >> > >This is due to minor faults, when the memory is there but not referenced >to by a valid PTE in the page table for the current process yet. > >Before the 3.10 series, the pipeline used to switch to secondary mode

Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-10-31 Thread Philippe Gerum
On 10/27/2016 03:43 AM, Giulio Moro wrote: > Hello there, > > I am new to the list, I am working on this project > https://github.com/BelaPlatform/Bela/ for real-time audio > on the BeagleBone Black using Xenomai. > > I am trying to use Xenomai's POSIX skin to create and access > shared

Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-10-27 Thread Leopold Palomo-Avellaneda
El Dijous, 27 d'octubre de 2016, a les 11:50:50, Giulio Moro va escriure: > >- xenomai 2.6.3 is old. 2.6.5 is the last stable version of 2.6.x branch. > >Also, 2.6.x branch AFAIK is just in maintenance mode, so I would recommend > >you if you are beginning a new project use Xenomai 3.x > > Thanks

Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-10-27 Thread Giulio Moro
>- xenomai 2.6.3 is old. 2.6.5 is the last stable version of 2.6.x branch. >Also, 2.6.x branch AFAIK is just in maintenance mode, so I would recommend you >if you are beginning a new project use Xenomai 3.x Thanks for the advice, the project started three years ago so it was 2.x from the

Re: [Xenomai] accessing mmap'ed memory causes mode switches

2016-10-27 Thread Leopold Palomo-Avellaneda
Hi Giulio, El Dijous, 27 d'octubre de 2016, a les 01:43:21, Giulio Moro va escriure: > Hello there, > > I am new to the list, I am working on this project > https://github.com/BelaPlatform/Bela/ for real-time audio > on the BeagleBone Black using Xenomai. welcome!!! Nice project. > I am

[Xenomai] accessing mmap'ed memory causes mode switches

2016-10-26 Thread Giulio Moro
Hello there, I am new to the list, I am working on this project https://github.com/BelaPlatform/Bela/ for real-time audio on the BeagleBone Black using Xenomai. I am trying to use Xenomai's POSIX skin to create and access shared memory objects, but I am getting mode switches to secondary