From: Ben Warren <bwarren@qstreams.com>
To: Stuart Hodgson <stuart@quadrics.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Semaphores in eldk4.1
Date: Fri, 30 Nov 2007 13:10:14 -0500 [thread overview]
Message-ID: <47505206.9080605@qstreams.com> (raw)
In-Reply-To: <47503B5A.6090604@quadrics.com>
HI Stuart,
Stuart Hodgson wrote:
> Hi,
>
> I have been suing the eldk4.1 tool chain for a few months now and have
> not not encountered any problems with building until now. I build for
> two slightly different archs, ppc_85xx and ppx_82xx.
>
> The problem I have come up against is related to some of the semaphore
> functions in semaphore.h, namely sem_wait, sem_post. This was originally
> noticed in a third party driver I am porting from one board to another
> but a small test program has shown the same results.
>
> Calls to these functions on the ppc_82xx platform return -1 with an
> error code of 38, in this case meaning ENOSYS (not implemented). On the
> ppc_85xx the same program executes fine, thus I conclude that it is
> specific to the libc-2.3.5 for ppc_82xx. Has anyone else come across
> this problem, I did find one thread but there was no conclusion listed.
>
>
These work fine for me with ppc_6xx architecture and ELDK 4.1, although
they didn't with ELDK 4.0. In that case, I was getting ENOSYS on
sem_open() and sem_init(). Do these functions return 0 for you? I assume
you're using a kernel that supports POSIX semaphores (I think that
started at 2.6.12) and that you're using the glibc version of ELDK and
not ulibc.
> I also can not find anything stating that these functions are not
> implemented for the 82xx arch compared with others for the eldk4.1
>
> Thanks
>
> Stuart
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
regards,
Ben
next prev parent reply other threads:[~2007-11-30 18:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-30 16:33 Semaphores in eldk4.1 Stuart Hodgson
2007-11-30 18:10 ` Ben Warren [this message]
2007-11-30 22:27 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47505206.9080605@qstreams.com \
--to=bwarren@qstreams.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=stuart@quadrics.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.