[PR 02] LEON3BSP MP: may wake one more CPU than expected
Joel Sherrill
joel.sherrill at OARcorp.com
Thu Feb 2 15:31:00 UTC 2012
On 02/02/2012 09:29 AM, Gedare Bloom wrote:
> PR 2006 has been filed on this bug.
I am working on the ones with PRs. Just give me some time.
> On Thu, Feb 2, 2012 at 9:46 AM, Daniel Hellstrom<daniel at gaisler.com> wrote:
>> The SHM code always wakes one CPU more that configured, however
>> this has never been a problem since RTEMS will be running on all CPUs
>> or only two cores were available.
>>
>> Signed-off-by: Daniel Hellstrom<daniel at gaisler.com>
>> ---
>> c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
>> index 12f3380..3711777 100644
>> --- a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
>> +++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
>> @@ -114,7 +114,7 @@ void Shm_Get_configuration(
>> if (LEON3_Cpu_Index == 0) {
>> tmp = 0;
>> for (i = 1;
>> - i< (Configuration.User_multiprocessing_table)->maximum_nodes+1; i++)
>> + i< (Configuration.User_multiprocessing_table)->maximum_nodes; i++)
>> tmp |= (1<< i);
>> LEON3_IrqCtrl_Regs->mpstat = tmp;
>> }
>> --
>> 1.7.0.4
>>
>> _______________________________________________
>> rtems-devel mailing list
>> rtems-devel at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-devel
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the devel
mailing list