Re: [PATCH] arm: Select the TLB invalidate based on the core's Id variant.

2019-06-26 Thread Chris Johns
On 26/6/19 3:53 pm, Sebastian Huber wrote: > On 26/06/2019 00:22, Chris Johns wrote: >> On 25/6/19 9:59 pm, Sebastian Huber wrote: >>> Can't you use the >>> >>> B4.1.94 ID_PFR1, Processor Feature Register 1, VMSA >>> >>> and test for the Virtualization Extensions? >> >> This is a neater solution. C

Re: stdatomic.h Use By RTEMS Questions

2019-06-26 Thread Sebastian Huber
Hello Joel, the SMP support assumes a C11 memory model. The _Atomic_* API is also used in uniprocessor configurations. Here, interrupt disable/enable is used to ensure atomicity and memory barriers are replaced with compiler barriers. -- Sebastian Huber, embedded brains GmbH Address : Dorni

Re: [PATCH] arm: Select the TLB invalidate based on the core's Id variant.

2019-06-26 Thread Sebastian Huber
On 26/06/2019 09:07, Chris Johns wrote: #if defined(__ARM_ARCH_7A__) if (MPIDR & (1 << 39) == 0) { if ((MPIDR & (1 << 30)) == 0) { arm_cp15_tlb_invalidate_entry_all_asids(mva); } else #endif { arm_cp15_tlb_instruction_invalidate_entry(mva); arm_cp15_tlb_data_inval

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
> > To be able to better reproduce issues, could you please: > > 1. record a raw record item stream produced by the Qemu target via the nc > tool in a file (not more than 100KiB) > > 2. add this file to rtems-tools > Okay. Where do I have to add this file? > > 3. modify the record-client program t

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Sebastian Huber
On 26/06/2019 12:55, Ravindra Kumar Meena wrote: To be able to better reproduce issues, could you please: 1. record a raw record item stream produced by the Qemu target via the nc tool in a file (not more than 100KiB) 2. add this file to rtems-tools Okay. Where do I have to a

[PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
--- newlib/libc/include/ndbm.h | 84 + newlib/libc/search/Makefile.am | 1 + newlib/libc/search/ndbm.c | 215 + 3 files changed, 300 insertions(+) create mode 100644 newlib/libc/include/ndbm.h create mode 100644 newlib/libc/search/ndbm.c d

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
Hello, Newlib is compiling successfully. But when i applied patch to RSB. It is not generating ndbm.h inside rtems/5/sparc-rtem5/include this time. I am following same steps again which I followed that day when ndbm.h was successfully generated. Below are the log files generated by

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
On Wed, Jun 26, 2019 at 8:35 PM Vaibhav Gupta wrote: > Hello, > > Newlib is compiling successfully. > But when i applied patch to RSB. It is not generating ndbm.h > inside rtems/5/sparc-rtem5/include this time. > > I am following same steps again which I followed that day when ndbm.h wa

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
26th June Work Summary: Updated the file generation code in rtems-tools with required changes. Improved the metadata for the same. I have squashed the commits. https://github.com/rmeena840/rtems-tools/commit/c0035feab6d99b4aeecdd0d76b049f3e2c7aa9ef https://github.com/rmeena840/rtems-tools/commit/f

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
Hello Gedare, as you suggested, to use the group name of patch as 'newlib'. I did that and then removed the line"%patch setup newlib -p1" It has generated ndbm.h in include directory. Vaibhav Gupta On Wed, Jun 26, 2019 at 8:41 PM Vaibhav Gupta wrote: > > > On Wed, Jun 26, 2019 at 8:35 PM Va

Re: [PATCH v2] port ndbm

2019-06-26 Thread Aditya Upadhyay
On Thu, Jun 27, 2019 at 2:11 AM Vaibhav Gupta wrote: > > Hello Gedare, > as you suggested, to use the group name of patch as 'newlib'. > I did that and then removed the line"%patch setup newlib -p1" > It has generated ndbm.h in include directory. > You are applying the patches to RSB just for

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Sebastian Huber
On 26/06/2019 17:58, Ravindra Kumar Meena wrote: 26th June Work Summary: Updated the file generation code in rtems-tools with required changes. Improved the metadata for the same. I have squashed the commits. https://github.com/rmeena840/rtems-tools/commit/c0035feab6d99b4aeecdd0d76b049f3e2c7aa

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
On Thu, Jun 27, 2019 at 10:08 AM Aditya Upadhyay wrote: > On Thu, Jun 27, 2019 at 2:11 AM Vaibhav Gupta > wrote: > > > > Hello Gedare, > > as you suggested, to use the group name of patch as 'newlib'. > > I did that and then removed the line"%patch setup newlib -p1" > > It has generated ndbm

Re: [PATCH v2] port ndbm

2019-06-26 Thread Aditya Upadhyay
On Thu, Jun 27, 2019 at 11:14 AM Vaibhav Gupta wrote: > > > > On Thu, Jun 27, 2019 at 10:08 AM Aditya Upadhyay wrote: >> >> On Thu, Jun 27, 2019 at 2:11 AM Vaibhav Gupta >> wrote: >> > >> > Hello Gedare, >> > as you suggested, to use the group name of patch as 'newlib'. >> > I did that and then

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
On Thu, Jun 27, 2019 at 10:53 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 26/06/2019 17:58, Ravindra Kumar Meena wrote: > > 26th June Work Summary: > > > > Updated the file generation code in rtems-tools with required changes. > > Improved the metadata for the same. I have

Coverity Scan Configuration?

2019-06-26 Thread Sebastian Huber
Hello, the RTEMS project uses Coverity Scan: https://scan.coverity.com/projects/rtems?tab=overview Can it be configured in the open source program variant? For example Coverity supports a couple of MISRA rules: https://www.synopsys.com/content/dam/synopsys/sig-assets/datasheets/coverity-misr

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Sebastian Huber
On 27/06/2019 08:15, Ravindra Kumar Meena wrote: On Thu, Jun 27, 2019 at 10:53 AM Sebastian Huber > wrote: On 26/06/2019 17:58, Ravindra Kumar Meena wrote: > 26th June Work Summary: > > Updated the file generation code in rtems-to

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
On Thu, Jun 27, 2019 at 11:24 AM Aditya Upadhyay wrote: > On Thu, Jun 27, 2019 at 11:14 AM Vaibhav Gupta > wrote: > > > > > > > > On Thu, Jun 27, 2019 at 10:08 AM Aditya Upadhyay > wrote: > >> > >> On Thu, Jun 27, 2019 at 2:11 AM Vaibhav Gupta > wrote: > >> > > >> > Hello Gedare, > >> > as you

Re: [PATCH v2] port ndbm

2019-06-26 Thread Vaibhav Gupta
I even tried: $ cd /home/varodek/development/newlib/b-sparc-rtems5-newlib/sparc-rtems5/newlib/libc/posix $ sparc-rtems5-nm -A ./*.o | grep lib_a-ndbm.o Output << ./lib_a-ndbm.o: T dbm_clearerr ./lib_a-ndbm.o: T dbm_close ./lib_a-ndbm.o: T dbm_delete ./lib_a-ndbm.o: T

Re: GSoC Project | Basic Support for Trace Compass

2019-06-26 Thread Ravindra Kumar Meena
> > > > Is there a way to set the file size for which nc should output? I can > > get around minimum 500KB of file. > > I am following this > > https://linux.die.net/man/1/nc > > You can use dd to reduce the file size, e.g. > > dd if=input-file of=output-file count=131072 > Okay. It worked. I have