discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] shmat issue


From: Joshua Lackey
Subject: Re: [Discuss-gnuradio] shmat issue
Date: Mon, 25 Oct 2010 14:36:32 -0400
User-agent: Mutt/1.4.2.3i

Quoting Philip Balister (address@hidden):
> >On Wed, Oct 20, 2010 at 01:02:15PM -0400, Philip Balister wrote:
> >>On 10/19/2010 10:51 PM, Eric Blossom wrote:
> >>OK, it looks like x86 sets SHMLBA to PAGE_SIZE and arm uses 4 *
> >>PAGE_SIZE. Need to puzzle through this a little more. This is the
> >>failing check in the kernel.
> >
> >OK.  What's PAGE_SIZE on arm?
> 
> PAGE_SIZE is still 4096, there is an additional restriction on the 
> address passed to shmat().

Is the additional restriction '4 * PAGE_SIZE'?  If so, look in the
circular_buffer.cc for kalibrate and change the line that reads:

        m_pagesize = getpagesize();

to

        m_pagesize = 4 * getpagesize();

It may be that easy.  The rest of the logic should work.

Alternatively, you can force the use of Posix shared memory and see if
that works for kalibrate on your platform.  (The easiest thing to do
would be to look for D_HOST_OSX and make sure those #ifdef's are the
ones that gets compiled.)

Email me with your results and I'll add some code to make arm work in
the next version of kal.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]