Re: Clash in sethostname char const argument

2014-10-30 Thread Sebastian Huber
Hello Pavel, On 31/10/14 02:04, Pavel Pisa wrote: I am starting to test GCC-4.9.2 toolchain with actual RTEMS and I have noticed that when I use actual Newlib GIT there is added #if __BSD_VISIBLE || (defined(_XOPEN_SOURCE) && __XSI_VISIBLE < 500) int _EXFUN(sethostname, (const char *, size_

Re: libdl: rtems.git dependence on rtems-tools.git

2014-10-30 Thread Gedare Bloom
On Thu, Oct 30, 2014 at 7:13 PM, Chris Johns wrote: > On 31/10/2014 6:42 am, Gedare Bloom wrote: >> >> On Thu, Oct 30, 2014 at 3:40 PM, Gedare Bloom wrote: >>> >>> On Thu, Oct 30, 2014 at 3:32 PM, Chris Johns wrote: Hi, Libdl tests in the testsuite depend on tools in rtems-to

Clash in sethostname char const argument

2014-10-30 Thread Pavel Pisa
Hello Sebastian, I am starting to test GCC-4.9.2 toolchain with actual RTEMS and I have noticed that when I use actual Newlib GIT there is added #if __BSD_VISIBLE || (defined(_XOPEN_SOURCE) && __XSI_VISIBLE < 500) int _EXFUN(sethostname, (const char *, size_t)); #endif to include/sys/unistd.

libdl: Push of libdl (RTL) code to master.

2014-10-30 Thread Chris Johns
Hi all, I have pushed the RTL code to our git master. The code resides under cpukit/libdl and user access is via the dlopen, dlclose and dlinfo family of calls. The test output with the SIS BSP is: $ sparc-rtems4.11-run $(find . -name dl01.exe) *** BEGIN OF TEST libdl (RTL) Loader 1 *** load:

Re: libdl: rtems.git dependence on rtems-tools.git

2014-10-30 Thread Chris Johns
On 31/10/2014 6:42 am, Gedare Bloom wrote: On Thu, Oct 30, 2014 at 3:40 PM, Gedare Bloom wrote: On Thu, Oct 30, 2014 at 3:32 PM, Chris Johns wrote: Hi, Libdl tests in the testsuite depend on tools in rtems-tools.git/linkers. Should I raise a configure error if the tools are not found or not

Re: libdl: rtems.git dependence on rtems-tools.git

2014-10-30 Thread Gedare Bloom
On Thu, Oct 30, 2014 at 3:40 PM, Gedare Bloom wrote: > On Thu, Oct 30, 2014 at 3:32 PM, Chris Johns wrote: >> Hi, >> >> Libdl tests in the testsuite depend on tools in rtems-tools.git/linkers. >> Should I raise a configure error if the tools are not found or not build the >> tests ? >> >> Raising

Re: libdl: rtems.git dependence on rtems-tools.git

2014-10-30 Thread Gedare Bloom
On Thu, Oct 30, 2014 at 3:32 PM, Chris Johns wrote: > Hi, > > Libdl tests in the testsuite depend on tools in rtems-tools.git/linkers. > Should I raise a configure error if the tools are not found or not build the > tests ? > > Raising an error is my preferred option because libdl for the supporte

libdl: rtems.git dependence on rtems-tools.git

2014-10-30 Thread Chris Johns
Hi, Libdl tests in the testsuite depend on tools in rtems-tools.git/linkers. Should I raise a configure error if the tools are not found or not build the tests ? Raising an error is my preferred option because libdl for the supported archs is tested however it creates a dependency between rt

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Joel Sherrill
On 10/30/2014 12:06 PM, Jennifer Averett wrote: > Addressing all the comments. About the scoped blocks I used the style > that existed in cpuusage already. That section of code is modified code > from rtems_cpu_usage_report_with_plugin. Just reformat it. :) --joel > Jennifer > >> -Original

RE: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Jennifer Averett
Addressing all the comments. About the scoped blocks I used the style that existed in cpuusage already. That section of code is modified code from rtems_cpu_usage_report_with_plugin. Jennifer > -Original Message- > From: devel [mailto:devel-boun...@rtems.org] On Behalf Of Gedare Bloom

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Joel Sherrill
On 10/30/2014 10:11 AM, Jennifer Averett wrote: > My name and email are correct in git config. And if it was converting git accounts into email addresses, I would just be joel@ which would likely bounce as well. -joel >> -Original Message- >> From: devel [mailto:devel-boun...@rtems.org] O

RE: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Jennifer Averett
My name and email are correct in git config. > -Original Message- > From: devel [mailto:devel-boun...@rtems.org] On Behalf Of Gedare Bloom > Sent: Thursday, October 30, 2014 10:08 AM > To: Joel Sherrill > Cc: Jennifer Averett; rtems-de...@rtems.org > Subject: Re: [rtems commit] libmisc: Ad

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Gedare Bloom
The problem may be a setup issue on git.rtems.org, where it converts from user login to email, I think it might be doing something dumb like just taking login-name @rtems.org On Thu, Oct 30, 2014 at 11:03 AM, Joel Sherrill wrote: > > On 10/30/2014 9:55 AM, Gedare Bloom wrote: >> The email address

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Joel Sherrill
On 10/30/2014 9:55 AM, Gedare Bloom wrote: > The email address came from VC, so it is a problem in the commit setup I > guess. OK. I will help her double check. Working on multiple machines, I periodically find one that is wrong for myself. :( --joel > On Thu, Oct 30, 2014 at 10:55 AM, Joel She

Re: 4.11 Branching To Do

2014-10-30 Thread Gedare Bloom
On Thu, Oct 30, 2014 at 6:31 AM, Sebastian Huber wrote: > On 29/10/14 22:49, Joel Sherrill wrote: >> >> Very desirable >> = >> + x86 context switch SMP handoff logic > > > For someone with good enough x86 assembly skills, this should be fairly > simple. You just have to implement the

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Gedare Bloom
The email address came from VC, so it is a problem in the commit setup I guess. On Thu, Oct 30, 2014 at 10:55 AM, Joel Sherrill wrote: > FWIW she is jennifer.aver...@rtems.org not jennifer@. > > --joel > > On 10/30/2014 9:53 AM, Gedare Bloom wrote: >> I missed reviewing this patch earlier, but th

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Joel Sherrill
FWIW she is jennifer.aver...@rtems.org not jennifer@. --joel On 10/30/2014 9:53 AM, Gedare Bloom wrote: > I missed reviewing this patch earlier, but there are some style > problems with it, please fix them on the head. > > On Tue, Oct 28, 2014 at 11:17 AM, Jennifer Averett wrote: >> Module:

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Gedare Bloom
I missed reviewing this patch earlier, but there are some style problems with it, please fix them on the head. On Tue, Oct 28, 2014 at 11:17 AM, Jennifer Averett wrote: > Module:rtems > Branch:master > Commit:6031da438d219c6ec5d9d48f1df2aef91710cce3 > Changeset: > http://git.rtems.or

Re: rtems head broken for leon3 smp

2014-10-30 Thread Joel Sherrill
On 10/30/2014 9:32 AM, Andreas Larsson wrote: > On 2014-10-30 15:09, Sebastian Huber wrote: >> On 30/10/14 15:05, Joel Sherrill wrote: >>> On 10/30/2014 8:56 AM, Sebastian Huber wrote: On 23/10/14 19:46, Jennifer Averett wrote: > Running the leon3 with grsim fails due to the patch > >

Re: rtems head broken for leon3 smp

2014-10-30 Thread Andreas Larsson
On 2014-10-30 15:09, Sebastian Huber wrote: On 30/10/14 15:05, Joel Sherrill wrote: On 10/30/2014 8:56 AM, Sebastian Huber wrote: On 23/10/14 19:46, Jennifer Averett wrote: Running the leon3 with grsim fails due to the patch bsp/sparc: Ensure that data cache snooping is enabled It looks like

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Joel Sherrill
On 10/30/2014 8:39 AM, Sebastian Huber wrote: > On 28/10/14 16:17, Jennifer Averett wrote: >> +/* Count the number of tasks and sort this load value */ >> +task_count++; >> +for (i = 0; i < RTEMS_CPUUSAGE_TOP_MAX_LOAD_TASKS; i++) { >> + if (load_tas

Re: rtems head broken for leon3 smp

2014-10-30 Thread Sebastian Huber
On 30/10/14 15:05, Joel Sherrill wrote: On 10/30/2014 8:56 AM, Sebastian Huber wrote: On 23/10/14 19:46, Jennifer Averett wrote: Running the leon3 with grsim fails due to the patch bsp/sparc: Ensure that data cache snooping is enabled It looks like cache snooping is disabled when it is ran fo

Re: rtems head broken for leon3 smp

2014-10-30 Thread Joel Sherrill
On 10/30/2014 8:56 AM, Sebastian Huber wrote: On 23/10/14 19:46, Jennifer Averett wrote: Running the leon3 with grsim fails due to the patch bsp/sparc: Ensure that data cache snooping is enabled It looks like cache snooping is disabled when it is ran for all the tests. Where is this supposed

Re: rtems head broken for leon3 smp

2014-10-30 Thread Sebastian Huber
On 23/10/14 19:46, Jennifer Averett wrote: Running the leon3 with grsim fails due to the patch bsp/sparc: Ensure that data cache snooping is enabled It looks like cache snooping is disabled when it is ran for all the tests. Where is this supposed to be set at with this change? The simulator

Re: [rtems commit] libmisc: Add top to cpuusage.

2014-10-30 Thread Sebastian Huber
On 28/10/14 16:17, Jennifer Averett wrote: +/* Count the number of tasks and sort this load value */ +task_count++; +for (i = 0; i < RTEMS_CPUUSAGE_TOP_MAX_LOAD_TASKS; i++) { + if (load_tasks[i]) { +if ((l == 0) || (l < load[i])) +

Re: 4.11 Branching To Do

2014-10-30 Thread Sebastian Huber
On 29/10/14 22:49, Joel Sherrill wrote: Very desirable = + x86 context switch SMP handoff logic For someone with good enough x86 assembly skills, this should be fairly simple. You just have to implement the sequence described here: http://git.rtems.org/rtems/tree/cpukit/score/cp

Re: Decreasing BSS size for STM32F4

2014-10-30 Thread Sebastian Huber
On 14/10/14 12:47, Мороз Олег wrote: arm-rtems4.11-readelf -l shell.exe Elf file type is EXEC (Executable file) Entry point 0x8000189 There are 4 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0

Re: Decreasing BSS size for STM32F4

2014-10-30 Thread Sebastian Huber
On 29/10/14 17:49, Chris Nott wrote: Hi, I have a BSP almost identical to STM32F4 except I want a slight change to the linker settings (I want to offset the start location because there is a bootloader at location 0). Two questions: - Is there any way to do this other than to a) duplicate th