Hello Cassio,<br><br>It seems that you have created the semaphore as GLOBAL, and the RTEMS documentation says:<br><div style="margin-left:40px"><i>The priority inheritance and priority ceiling algorithms are only supported for local, binary</i><br>
<i>semaphores that use the priority task wait queue blocking discipline.</i><br></div><br>Cheers,<br><br>Matías<br><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 2:00 PM,  <span dir="ltr"><<a href="mailto:rtems-users-request@rtems.org" target="_blank">rtems-users-request@rtems.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send rtems-users mailing list submissions to<br>
        <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:rtems-users-request@rtems.org">rtems-users-request@rtems.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:rtems-users-owner@rtems.org">rtems-users-owner@rtems.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of rtems-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Semaphore - Task priority queueing not working (Binkowski, Cassio)<br>
   2. Re: Power management (Sebastian Huber)<br>
   3. Can rtems4.11-gcc compile rtems-4.10? (??)<br>
   4. Re: Can rtems4.11-gcc compile rtems-4.10? (Pierre Ficheux)<br>
   5. Re: Can rtems4.11-gcc compile rtems-4.10? (Ralf Corsepius)<br>
   6. Re: Can rtems4.11-gcc compile rtems-4.10? (Ralf Corsepius)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 23 Jul 2012 23:57:31 -0300<br>
From: "Binkowski, Cassio" <<a href="mailto:cassioiks@gmail.com">cassioiks@gmail.com</a>><br>
To: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
Subject: Semaphore - Task priority queueing not working<br>
Message-ID:<br>
        <CAG93Rg4FJdoh_NdRGnRJvwJJyvd7jnYJUXoqw9fCDGpMTb=<a href="mailto:ppA@mail.gmail.com">ppA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello<br>
<br>
I am creating a Semaphore where Tasks are queued by priority, and yet a<br>
Task with lower priority stands in front of a higher priority task.<br>
<br>
Here are the steps I'm following:<br>
<br>
1) Create a Semaphore;<br>
2) Task 1, with priority 1, obtains the Semaphore;<br>
3) Task 2, with priority 3, tries to obtain the Semaphore with "wait for<br>
ever condition";<br>
4) Task 3, with priority 2, tries to obtain the Semaphore with "wait for<br>
ever condition";<br>
5) Task 1 releases the Semaphore;<br>
6) Task 2 obtains the Semaphore. *---> This is where Task 3 should obtains<br>
the **Semaphore, because of the Priority.*<br>
<br>
This is how I'm creating the Semaphore:<br>
<br>
status = rtems_semaphore_create(<br>
rtems_build_name('S','M','P','R'),<br>
 1,<br>
RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_GLOBAL,<br>
0,<br>
 &semaphoreId<br>
);<br>
<br>
<br>
What am I doing wrong?<br>
<br>
Best regards<br>
Cassio<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.rtems.org/pipermail/rtems-users/attachments/20120723/4aaa79b4/attachment-0001.html" target="_blank">http://www.rtems.org/pipermail/rtems-users/attachments/20120723/4aaa79b4/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 24 Jul 2012 09:52:29 +0200<br>
From: Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>><br>
To: RTEMS <<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>><br>
Subject: Re: Power management<br>
Message-ID: <<a href="mailto:500E543D.1020409@embedded-brains.de">500E543D.1020409@embedded-brains.de</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello,<br>
<br>
everything that the RTEMS core system offers in terms of power management is an<br>
application specific idle task.  For good power management you need a device<br>
driver model which supports suspend and resume operations.   The standard RTEMS<br>
device drivers have no such capability.  Thus power management is up to the<br>
application in the RTEMS world.  It is possible to use the FreeBSD driver model<br>
on RTEMS for example which has support for suspend and resume operations, but<br>
every driver of your hardware has to be written with power management in mind.<br>
<br>
--<br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany<br>
Phone   : +49 89 18 90 80 79-6<br>
Fax     : +49 89 18 90 80 79-9<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine gesch?ftliche Mitteilung im Sinne des EHUG.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 25 Jul 2012 00:08:01 +0800<br>
From: ?? <<a href="mailto:shurphey@gmail.com">shurphey@gmail.com</a>><br>
To: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
Subject: Can rtems4.11-gcc compile rtems-4.10?<br>
Message-ID: <<a href="mailto:500EC861.3010809@gmail.com">500EC861.3010809@gmail.com</a>><br>
Content-Type: text/plain; charset=GB2312<br>
<br>
Hi all,<br>
Someone can tell me how to use rtems4.11-gcc to compile rtems-4.10? Now,<br>
i have rtems4.11 toolchains and rtems4.10 source code,<br>
i want to use the toolchain to compile the code, i configured the<br>
target=xxxx-rtems4.11, but fail. Thanks!<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 24 Jul 2012 18:21:56 +0200<br>
From: Pierre Ficheux <<a href="mailto:pierre.ficheux@openwide.fr">pierre.ficheux@openwide.fr</a>><br>
To: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
Subject: Re: Can rtems4.11-gcc compile rtems-4.10?<br>
Message-ID: <<a href="mailto:500ECBA4.5040903@openwide.fr">500ECBA4.5040903@openwide.fr</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Le 24/07/2012 18:08, ?? a ?crit :<br>
> Hi all,<br>
> Someone can tell me how to use rtems4.11-gcc to compile rtems-4.10? Now,<br>
> i have rtems4.11 toolchains and rtems4.10 source code,<br>
> i want to use the toolchain to compile the code, i configured the<br>
> target=xxxx-rtems4.11, but fail. Thanks!<br>
><br>
<br>
What's the use of it? It's not so difficult/long to build a 4.10 compiler.<br>
<br>
<a href="http://www.rtems.org/wiki/index.php/Building_Tools" target="_blank">http://www.rtems.org/wiki/index.php/Building_Tools</a><br>
<br>
regards<br>
<br>
--<br>
Pierre FICHEUX  -/- CTO OWI, France -\- <a href="mailto:pierre.ficheux@openwide.fr">pierre.ficheux@openwide.fr</a><br>
                                          <a href="http://ingenierie.openwide.fr" target="_blank">http://ingenierie.openwide.fr</a><br>
                                          <a href="http://www.ficheux.org" target="_blank">http://www.ficheux.org</a><br>
I would love to change the world, but they won't give me the source code<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Tue, 24 Jul 2012 18:38:22 +0200<br>
From: Ralf Corsepius <<a href="mailto:ralf.corsepius@rtems.org">ralf.corsepius@rtems.org</a>><br>
To: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
Subject: Re: Can rtems4.11-gcc compile rtems-4.10?<br>
Message-ID: <<a href="mailto:500ECF7E.4020308@rtems.org">500ECF7E.4020308@rtems.org</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
On 07/24/2012 06:08 PM, ?? wrote:<br>
> Hi all,<br>
> Someone can tell me how to use rtems4.11-gcc to compile rtems-4.10?<br>
You can't.<br>
<br>
  Both are different generations of toolchains with different setups and<br>
different features.<br>
<br>
Ralf<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Tue, 24 Jul 2012 18:44:28 +0200<br>
From: Ralf Corsepius <<a href="mailto:ralf.corsepius@rtems.org">ralf.corsepius@rtems.org</a>><br>
To: <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
Subject: Re: Can rtems4.11-gcc compile rtems-4.10?<br>
Message-ID: <<a href="mailto:500ED0EC.8040901@rtems.org">500ED0EC.8040901@rtems.org</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
On 07/24/2012 06:21 PM, Pierre Ficheux wrote:<br>
> Le 24/07/2012 18:08, ?? a ?crit :<br>
>> Hi all,<br>
>> Someone can tell me how to use rtems4.11-gcc to compile rtems-4.10? Now,<br>
>> i have rtems4.11 toolchains and rtems4.10 source code,<br>
>> i want to use the toolchain to compile the code, i configured the<br>
>> target=xxxx-rtems4.11, but fail. Thanks!<br>
>><br>
><br>
> What's the use of it? It's not so difficult/long to build a 4.10 compiler.<br>
><br>
> <a href="http://www.rtems.org/wiki/index.php/Building_Tools" target="_blank">http://www.rtems.org/wiki/index.php/Building_Tools</a><br>
<br>
This is just a rough and coarse outline, describing the basic working<br>
principle, it lacks many details and doesn't reflect the fact building<br>
the toolchains is a rolling and evolving process. I can't recommend<br>
anybody (esp. new-comers) following it.<br>
<br>
That said, if not very being careful, it's pretty much guaranteed to<br>
kill an installation. It's one of the reasons why I am supplying binary<br>
packages and why OpenSource OS vendors are supplyling binary packages ;)<br>
<br>
Ralf<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
<br>
<br>
End of rtems-users Digest, Vol 70, Issue 29<br>
*******************************************<br>
</blockquote></div><br>