[PATCH] LEON3: fix console close handling

2014-06-26 Thread Daniel Hellstrom
On SMP rtems_interrupt_lock_context must be used. Most tests fail with a NULL pointer exception when exiting, except on NGMP where main memory is at 0x. --- c/src/lib/libbsp/sparc/leon3/console/console.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 3/5 v2] SPARC: add BSP specific error handler

2014-07-03 Thread Daniel Hellstrom
PATCHv2: BSP_fatal_exit defined in header Instead of calling the system call TA instruction directly it is better paractise to isolate the trap implementation to the system call functions. BSP_fatal_exit() is added. --- c/src/lib/libbsp/sparc/erc32/Makefile.am |1 +

[PATCH 5/5] LEON3: use CPU_Fatal_halt for halt

2014-07-03 Thread Daniel Hellstrom
By removing the bsp_reset() mechanism and instead relying on the CPU_Fatal_halt() routine SMP and single-core can halt by updating the _Internal_errors_What_happened structure and set the state to SYSTEM_STATE_TERMINATED (the generic way). This will be better for test scripts and debugger that can

[PATCH 1/2] LEON3: add dedicated SMP BSP config

2014-07-03 Thread Daniel Hellstrom
In order to support older toolchains and LEON3 v7 systems the -mcpu=leon3 flag can not be used in the LEON3 BSP. The SMP kernel however requires -mcpu=leon3 for the CAS support only present in GCC-4.8 and GCC-4.9. --- .../libbsp/sparc/leon3/make/custom/leon3smp.cfg|8 1 files

Re: [PATCH 5/5] LEON3: use CPU_Fatal_halt for halt

2014-07-04 Thread Daniel Hellstrom
On 07/04/2014 08:25 AM, Sebastian Huber wrote: On 2014-07-03 09:29, Daniel Hellstrom wrote: By removing the bsp_reset() mechanism and instead relying on the CPU_Fatal_halt() routine SMP and single-core can halt by updating the _Internal_errors_What_happened structure and set the state

Re: capture engine ref_count question

2014-08-27 Thread Daniel Hellstrom
of off board streaming of the trace data. I like this approach much better, but I assumed it would be harder to implement. Then we could basically remove the task struct.. That would solve allocation/freeing of the task structs too? Thanks, Daniel Hellstrom

Re: Cache Manager Functions with Processor Set

2014-09-16 Thread Daniel Hellstrom
On 09/16/2014 01:49 PM, Sebastian Huber wrote: On 16/09/14 13:42, Daniel Hellstrom wrote: Hello, what is the use case for the following functions: rtems_cache_flush_multiple_data_lines_processor_set() rtems_cache_invalidate_multiple_data_lines_processor_set

[PATCH 4/5 v3] SPARC: Fatal_halt use source and exit codes

2014-10-06 Thread Daniel Hellstrom
The Fatal_halt handler now have two options, either halt as before or enter system error state to return to debugger or simulator. The exit-code is now also propagated to the debugger which is very useful for testing. The CPU_Fatal_halt handler was split up into two, since the only the LEON3

Re: [PATCH 4/5 v3] SPARC: Fatal_halt use source and exit codes

2014-10-06 Thread Daniel Hellstrom
On 10/06/2014 01:01 PM, Sebastian Huber wrote: On 06/10/14 11:56, Daniel Hellstrom wrote: diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index 70d1785..65966b7 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc

Re: [PATCH 4/5 v4] SPARC: Fatal_halt use source and exit codes

2014-10-06 Thread Daniel Hellstrom
On 10/06/2014 01:40 PM, Sebastian Huber wrote: Thanks, looks good. Thanks! I will apply it after I fix [PATH 3/5], I will remove the bsp_reset form leon2/erc32 so it is similar to leon3 and also use the CPU_Fatal_halt(). ___ devel mailing list

Re: [PATCH 5/5] LEON3: use CPU_Fatal_halt for halt

2014-10-06 Thread Daniel Hellstrom
On 07/04/2014 08:25 AM, Sebastian Huber wrote: On 2014-07-03 09:29, Daniel Hellstrom wrote: By removing the bsp_reset() mechanism and instead relying on the CPU_Fatal_halt() routine SMP and single-core can halt by updating the _Internal_errors_What_happened structure and set the state

[PATCH] erc32,leon2: replace bsp_reset with SPARC fatal handler

2014-10-06 Thread Daniel Hellstrom
Now that a SPARC fatal handler is defined, we no longer need the BSP specific reset routine. --- c/src/lib/libbsp/sparc/erc32/configure.ac |2 +- c/src/lib/libbsp/sparc/leon2/configure.ac |2 +- c/src/lib/libbsp/sparc/shared/start/start.S |7 --- 3 files changed, 2

Re: [PATCH] erc32,leon2: replace bsp_reset with SPARC fatal handler

2014-10-07 Thread Daniel Hellstrom
On 10/07/2014 07:37 AM, Sebastian Huber wrote: Both patches look fine to me. Thanks for reviewing! I'll apply them all then. Daniel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH 2/3] LEON3 SMP: support static interrupt affinity

2014-10-07 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 11 +++ c/src/lib/libbsp/sparc/shared/irq/irq-shared.c | 38 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h

[PATCH 1/3] SPARC BSPs: added CPU aware interrupt ctrl operations

2014-10-07 Thread Daniel Hellstrom
The LEON2 and ERC32 maps the new macros to CPU0 since they do not support SMP. With the LEON3 a specific CPU's interrupt controller registers can be modified using macros. --- c/src/lib/libbsp/sparc/erc32/include/erc32.h | 14 ++- c/src/lib/libbsp/sparc/leon2/include/leon.h | 12 ++

Re: [PATCH 2/3 v2] LEON3 SMP: support static interrupt affinity

2014-10-09 Thread Daniel Hellstrom
On 10/09/2014 11:43 AM, Sebastian Huber wrote: On 09/10/14 11:31, Daniel Hellstrom wrote: On 10/09/2014 11:13 AM, Sebastian Huber wrote: On 08/10/14 15:49, Daniel Hellstrom wrote: +#ifdef RTEMS_SMP +/* Weak table used to implement static interrupt CPU affinity in a SMP + * configuration

[PATCH] DEVFS04: make test work on LEON3-FT GR712RC

2014-11-14 Thread Daniel Hellstrom
The LEON3 BSP have support for up to 8 termios consoles, the LEON3-FT GR712RC uses 6 UARTs. This does not take into account the BSP maximum devices instead it is hardcoded to 6. This patch increases it the maximum devices of DEVFS04 from 6 to 10. --- testsuites/libtests/devfs04/init.c |2 +-

[PATCH 1/4] SPARC: window overflow optimization

2014-11-19 Thread Daniel Hellstrom
I see no need for waiting the 3 instruction delay for wim to be written in this case, since the STD after does not depend on WIM --- c/src/lib/libcpu/sparc/reg_win/window.S |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libcpu/sparc/reg_win/window.S

[PATCH 3/4] SPARC: optimize window underflow trap

2014-11-19 Thread Daniel Hellstrom
Save five instructions on underflow handling. By using an optimized trap entry we can move instructions from the window underflow function into the trap entry vector. By setting WIM=0 and using RESTORE it is possible to move the new WIM register content from the trapped window into the

[PATCH 4/4] SPARC: optimize IRQ enable disable

2014-11-19 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides the IRQ disable/enabled can now be inline

[PATCH 2/4] SPARC: optimize window overflow trap entry

2014-11-19 Thread Daniel Hellstrom
By using a optimized trap entry we can move instructions from the window overflow function into the trap entry vector. By using the saved locals instead of g1 we don't need to save that register temporarily. Also spead out non store instructions inbetween stores to use the write buffer better. ---

Re: [PATCH 4/4] SPARC: optimize IRQ enable disable

2014-11-20 Thread Daniel Hellstrom
! DanielH On Wed, Nov 19, 2014 at 10:35 AM, Daniel Hellstrom dan...@gaisler.com wrote: * Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode

Re: [PATCH 4/4] SPARC: optimize IRQ enable disable

2014-11-20 Thread Daniel Hellstrom
Hi, I will fix this. I missed it since it I never enabled RTEMS_PROFILING. Thanks! Daniel On 11/20/2014 10:12 AM, Sebastian Huber wrote: With your patches applied I get a link-time error: gmake[6]: Entering directory

Re: [PATCH 4/4] SPARC: optimize IRQ enable disable

2014-11-20 Thread Daniel Hellstrom
On 11/20/2014 12:08 PM, Sebastian Huber wrote: On 20/11/14 10:22, Daniel Hellstrom wrote: I will fix this. I missed it since it I never enabled RTEMS_PROFILING. I did a test suite run on NGMP with profiling enabled and your patches with a local fix. So overall they don't make things worse

Re: [PATCH 4/4] SPARC: optimize IRQ enable disable

2014-11-20 Thread Daniel Hellstrom
On 11/20/2014 03:09 PM, Sebastian Huber wrote: On 20/11/14 12:36, Daniel Hellstrom wrote: On 11/20/2014 12:08 PM, Sebastian Huber wrote: On 20/11/14 10:22, Daniel Hellstrom wrote: I will fix this. I missed it since it I never enabled RTEMS_PROFILING. I did a test suite run on NGMP

[PATCH 4/4 v2] SPARC: optimize IRQ enable disable

2014-11-24 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides the IRQ disable/enabled can now be inline

Re: [PATCH 4/4 v2] SPARC: optimize IRQ enable disable

2014-11-24 Thread Daniel Hellstrom
On 11/24/2014 04:29 PM, Gedare Bloom wrote: On Mon, Nov 24, 2014 at 5:15 AM, Daniel Hellstrom dan...@gaisler.com wrote: * Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable This will result in faster Disable/Enable code since

Re: [PATCH 2/2] sparc/leon2: LEON_Is_interrupt_masked for Leon2 in leon.h wrongly defined

2014-11-24 Thread Daniel Hellstrom
Ok, what about ERC32 which has the same macros? On 11/24/2014 04:41 PM, Gedare Bloom wrote: Daniel commit these if you agree with the assessment. On Sun, Nov 23, 2014 at 4:53 PM, Jiri Gaisler j...@gaisler.se wrote: Condition needs to be inverted, as a 1 in the mask register means

Re: [PATCH 2/2] sparc/leon2: LEON_Is_interrupt_masked for Leon2 in leon.h wrongly defined

2014-11-24 Thread Daniel Hellstrom
Ok, Thanks! DanielH On 24 November 2014 17:15:03 CET, Jiri Gaisler j...@gaisler.se wrote: On 11/24/2014 05:02 PM, Daniel Hellstrom wrote: Ok, what about ERC32 which has the same macros? ERC32 is correctly defined. The leon2/3 were wrong because the defines were copied from ERC32, but the mask

Re: [PATCH 1/2] rtems: Add rtems_cache_coherent_allocate()

2014-12-01 Thread Daniel Hellstrom
Hello Sebastian, The coherent code looks nice and clean. I'm wondering, is it possbile to add a memory region to the coherent area and at the same time make malloc() return memory from that area when the default heap connected to malloc() is empty? As I recall that is the behaviour of linux,

[PATCH 4/4 v3] SPARC: optimize IRQ enable disable

2014-12-03 Thread Daniel Hellstrom
* Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable * Add to SPARC CPU supplement documentation This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides

[PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-04 Thread Daniel Hellstrom
The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch enables the relatively new LEON3 model and generates SPARCv7 compatible code. This shuold be comptabile with all single-core LEON3/4 systems. The LEON3 model is required for SMP to make

[PATCH 2/2] NGMP BSP: add GCC muser-mode switch

2014-12-04 Thread Daniel Hellstrom
Recent GCC have SPARC multilib with muser-mode. This makes CAS instruction operating in both user and priveleged mode. It is required to allow the CAS in systems where RTEMS run in user mode. --- c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg |2 +- 1 files changed, 1 insertions(+), 1

Re: SPARC GCC Version

2014-12-04 Thread Daniel Hellstrom
On 12/04/2014 03:20 PM, Sebastian Huber wrote: On 04/12/14 14:25, Sebastian Huber wrote: On 04/12/14 13:22, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: I have now posted the two BSP build changes for LEON3+NGMP BSPs that reflect the updated GCC-4.9.2 toolchain

Re: [PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-04 Thread Daniel Hellstrom
On 12/04/2014 03:26 PM, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch enables the relatively new LEON3 model and generates SPARCv7 compatible code. This shuold

Re: [PATCH 1/2] LEON3: use new mcpu=leon3v7 build flag

2014-12-19 Thread Daniel Hellstrom
On 12/04/2014 04:26 PM, Sebastian Huber wrote: On 04/12/14 15:54, Daniel Hellstrom wrote: On 12/04/2014 03:26 PM, Sebastian Huber wrote: On 04/12/14 13:10, Daniel Hellstrom wrote: The LEON3 BSP has been using mcpu=cypress which is a SPARCV7 that is compatible with SPARCv8 CPUs. This patch

Re: [PATCH] grspw: descriptor tables no longer statically allocated

2015-01-22 Thread Daniel Hellstrom
Hello, Haven't tested but seems good. Thanks, Daniel On 01/21/2015 05:05 PM, Gedare Bloom wrote: Claudio and Daniel H, OK to commit? -Gedare On Tue, Dec 23, 2014 at 10:08 PM, Gedare Bloom ged...@rtems.org wrote: This is a patch proposed for PR 1761 [https://devel.rtems.org/ticket/1761].

Re: Fwd: [PATCH 000/111] GRLIB/LEON RTEMS RCC patches

2015-03-17 Thread Daniel Hellstrom
On 03/15/2015 10:29 PM, Chris Johns wrote: On 14/03/2015 12:39 pm, Amar Takhar wrote: On 11/03/2015 1:27 am, Karel Gardas wrote: Yes, this is a big patch but if you do not merge it now and later following waf work you do tree/file placement refactoring than the patch would be even harder to

Re: About ether_output() function in if_etheresubr.c

2015-03-17 Thread Daniel Hellstrom
Hello Albert, Please provide more information about the order and content of the packets being transferred. My guess is that the following would happen: 1. PC sends to broadcast: ARP request for RTEMS IP 2. RTEMS responds PC: ARP reply 3. PC sends to RTEMS: PING request 4. RTEMS sends to

Re: Fwd: [PATCH 007/111] LIBPCI: added PCI layer to cpukit/libpci

2015-02-27 Thread Daniel Hellstrom
pOn 02/26/2015 08:35 PM, Gedare Bloom wrote: On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom dan...@gaisler.com wrote: --- cpukit/Makefile.am |3 + cpukit/configure.ac| 12 + cpukit/libpci/CHANGES | 46 ++ cpukit/libpci/Makefile.am

Re: [PATCH 000/111] GRLIB/LEON RTEMS RCC patches

2015-02-27 Thread Daniel Hellstrom
On 02/26/2015 05:58 PM, Gedare Bloom wrote: On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom dan...@gaisler.com wrote: Hi, I have rebased and tested briefly the RTEMS code that we have used on LEON2/3/4 on RTEMS-4.10 during the last couple of years. A couple of years ago most stuff that did

Re: [PATCH 005/111] leon3: make timer initialization configurable

2015-02-27 Thread Daniel Hellstrom
the register address variable. On Thu, Feb 26, 2015 at 11:38 AM, Daniel Hellstrom dan...@gaisler.com wrote: Its now possible to select which timer core will be used for system clock timer and to control the timer prescaler that affects all timer instances on that timer core. The timer

[PATCH 066/111] GPTIMER: avoid build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index 67ac7a2..b879483 100644 ---

[PATCH 073/111] GR-RASTA-SPW-ROUTER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 ++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am

[PATCH 091/111] GRSPW_PKT: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h |3 +++ c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c |2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h

[PATCH 061/111] B1553BRM: change the init of the RT legalization registers

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553brm.c| 23 - c/src/lib/libbsp/sparc/shared/include/b1553brm.h |8 +++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c

[PATCH 074/111] APBUART_CONS: fix build warning

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am |4 .../lib/libbsp/sparc/shared/include/apbuart_cons.h | 16

[PATCH 080/111] LEON: B1553RT driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553rt.c|5 + c/src/lib/libbsp/sparc/shared/include/b1553rt.h |5 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553rt.c b/c/src/lib/libbsp/sparc/shared/1553/b1553rt.c index

[PATCH 078/111] GR1553B: fixed build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/gr1553b.c| 16 +++--- c/src/lib/libbsp/sparc/shared/1553/gr1553bc.c |4 +- c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c |4 +- c/src/lib/libbsp/sparc/shared/1553/gr1553rt.c | 28 ++

[PATCH 046/111] NGMP PCI: added support for NGMP prototype boards

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 13 - cpukit/libpci/pci/ids_extra.h|1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c b/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c

[PATCH 059/111] GRSPW_PKT: Add support for Interrupt-codes

2015-02-26 Thread Daniel Hellstrom
From: Andreas Larsson andr...@gaisler.com Update: Daniel Hellstrom updated SpW-IRQ implementation accoring to changes in hardware register layout and features. --- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | 72 +- c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c | 309

[PATCH 043/111] GRPCI2: updated register layout to newer specification

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci2.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index 3891c25..5886336 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c +++

[PATCH 077/111] AT697PCI: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/include/at697_pci.h | 26 ++ c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c | 24 ++-- c/src/lib/libbsp/sparc/leon2/preinstall.am |4 +++ 4 files

[PATCH 067/111] GRETH: fix build warnings with GCC-4.9

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/include/bsp.h |2 +- c/src/lib/libbsp/sparc/shared/net/greth.c | 43 +++- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h index

[PATCH 070/111] GRSPW: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/spw/grspw.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw.c b/c/src/lib/libbsp/sparc/shared/spw/grspw.c index 4d66d13..d50e757 100644 --- a/c/src/lib/libbsp/sparc/shared/spw/grspw.c +++

[PATCH 048/111] LEON PCI: host bridge driver support for probing dev0=AD16

2015-02-26 Thread Daniel Hellstrom
Before the LIBPCI didn't probe device0 (AD16), the host bridge drivers used bus=dev=func=0 to internally probe the host bridge's target interface. Now that LIBPCI uses bus=dev=func=0 to access device0, bus=0xff is introduced internally to identify the host bridge target configuration space. ---

[PATCH 032/111] GPTIMER: Only probe pending bit on timer0

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 22 -- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index d093ca1..2314a3b 100644 ---

[PATCH 064/111] GRTM: fixed descriptor TS bit declaration

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grtm.h |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grtm.h b/c/src/lib/libbsp/sparc/shared/include/grtm.h index c2cf9ef..1bf7681 100644 ---

[PATCH 056/111] GRTIMER: added to GPTIMER driver

2015-02-26 Thread Daniel Hellstrom
GRTIMER is compatible with GPTIMER, however the GPTIMER driver does not support the extended features of GRTIMER. --- c/src/lib/libbsp/sparc/shared/timer/gptimer.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c

[PATCH 063/111] GRSPW_PKT: grspw_status renamed in header

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h index ee71980..2cf70eb 100644 ---

[PATCH 071/111] GRPCI: fixed build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am|1 + c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am|4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am|4 +++

[PATCH 028/111] GRSPW: New packet based driver for SPW/SPW2/SPW2_DMA

2015-02-26 Thread Daniel Hellstrom
This patch adds a new driver for the GRSPW SpaceWire AMBA interface family. The new driver does not implement a standard RTEMS driver, instead it provides only a library interface to the GRSPW devices. This driver can be used to implement a RTEMS I/O driver or used directly. New features compared

[PATCH 106/111] GR-TMTC-1553: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/gr_tmtc_1553.h |8 +++- c/src/lib/libbsp/sparc/shared/pci/gr_tmtc_1553.c | 20 +--- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_tmtc_1553.h

[PATCH 069/111] LEON3: watchdog use common timer defines

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/timer/watchdog.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c b/c/src/lib/libbsp/sparc/leon3/timer/watchdog.c index 15e2142..37e0d43 100644 ---

[PATCH 001/111] IO_MANAGER: early dynamic driver registration

2015-02-26 Thread Daniel Hellstrom
Adds the possibility to register drivers before the IO Manager has completed the initialization. Sometimes the BSP may want to register a driver dynamically early in the boot process. --- cpukit/sapi/src/io.c |4 cpukit/sapi/src/ioregisterdriver.c | 14 +- 2

[PATCH 029/111] APBUART: fix GRMON -u support for older UARTs

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c index 2785286..64d1b15 100644 ---

[PATCH 047/111] APBUART: debug bit was cleared incorrectly

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c | 32 ++-- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart_cons.c index 64d1b15..e0fa64e 100644 ---

[PATCH 031/111] leon,gpiolib: add mask/unmask interrupt support

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c| 11 +++ c/src/lib/libbsp/sparc/shared/gpio/grgpio.c | 12 c/src/lib/libbsp/sparc/shared/include/gpiolib.h |4 3 files changed, 27 insertions(+), 0 deletions(-) diff --git

[PATCH 025/111] GRPCI: fix target BAR1 initialization

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci.c b/c/src/lib/libbsp/sparc/shared/pci/grpci.c index f496405..0b781d3 100644 --- a/c/src/lib/libbsp/sparc/shared/pci/grpci.c +++

[PATCH 042/111] AMBAPP: update AMBA PnP ID database

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c | 55 +++- c/src/lib/libbsp/sparc/shared/include/ambapp_ids.h | 44 +--- 2 files changed, 77 insertions(+), 22 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ambapp_names.c

[PATCH 093/111] SPICTRL: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/spi/spictrl.c | 29 +- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/spi/spictrl.c b/c/src/lib/libbsp/sparc/shared/spi/spictrl.c index b149a95..dab478d 100644 ---

[PATCH 102/111] GR-RASTA-ADCDAC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/include/gr_rasta_adcdac.h |9 +-- .../lib/libbsp/sparc/shared/pci/gr_rasta_adcdac.c | 22 +-- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_adcdac.h

[PATCH 005/111] leon3: make timer initialization configurable

2015-02-26 Thread Daniel Hellstrom
Its now possible to select which timer core will be used for system clock timer and to control the timer prescaler that affects all timer instances on that timer core. The timer and interrupt controller AMBA devices are exported to make it possible for other code to get detailed information. For

[PATCH 002/111] LEON3: GPTIMER timer watchdog driver

2015-02-26 Thread Daniel Hellstrom
Last timer instance of GPTIMER is sometimes a watchdog timer that can reset the system on timer underflow. --- c/src/lib/libbsp/sparc/leon3/Makefile.am|2 + c/src/lib/libbsp/sparc/leon3/include/watchdog.h | 49 c/src/lib/libbsp/sparc/leon3/preinstall.am |4 +

[PATCH 006/111] leon3,ngmp: simplify cpucounter initialization

2015-02-26 Thread Daniel Hellstrom
Remove support for using the second timer for time stamping. Instead the user can configure the system clock timer to a higher base clock frequency (lower the prescaler). This change does not affect the GR712RC or LEON4-N2X. The GR712RC does not have two GPTIMERs and the N2X uses the Interrupt

[PATCH 016/111] LEON: GPTIMER driver, Timer Library and System Clock for LEON3

2015-02-26 Thread Daniel Hellstrom
With this patch the LEON family can access the GRLIB GPTIMER using the Timer library (TLIB). A System Clock driver instead of BSP/clock/ck_init.c is provided using the TLIB. The classic clock driver is split in two parts, clock driver and timer driver. The BSPs need only to fullfill the timer

[PATCH 008/111] LIBPCI: added PCI shell command

2015-02-26 Thread Daniel Hellstrom
--- cpukit/libmisc/Makefile.am |3 +- cpukit/libmisc/shell/main_pci.c| 525 cpukit/libmisc/shell/shellconfig.h | 16 ++ 3 files changed, 543 insertions(+), 1 deletions(-) create mode 100644 cpukit/libmisc/shell/main_pci.c diff --git

[PATCH 003/111] leon3: clock driver rely on previous found timer

2015-02-26 Thread Daniel Hellstrom
No point in scanning for the same GPTIMER twice. Rely on amba.c AMBA PnP scanning. --- c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 11 ++- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c

[PATCH 095/111] GRPWM: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pwm/grpwm.c | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pwm/grpwm.c b/c/src/lib/libbsp/sparc/shared/pwm/grpwm.c index 753a680..b4506c6 100644 ---

[PATCH 081/111] LEON: B1553BRM driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/b1553brm.c|3 --- c/src/lib/libbsp/sparc/shared/include/b1553brm.h |8 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c b/c/src/lib/libbsp/sparc/shared/1553/b1553brm.c index

[PATCH 098/111] GPIOLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c b/c/src/lib/libbsp/sparc/shared/gpio/gpiolib.c index 4eca013..6fb1cfc 100644 ---

[PATCH 101/111] GR-LEON4-N2X: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../lib/libbsp/sparc/shared/include/gr_leon4_n2x.h |7 +-- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 19 +-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_leon4_n2x.h

[PATCH 084/111] LEON: GRPCI2 driver warning fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/grpci2.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/pci/grpci2.c b/c/src/lib/libbsp/sparc/shared/pci/grpci2.c index eacd228..53c4181 100644 ---

[PATCH 075/111] GPTIMER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/Makefile.am|1 + c/src/lib/libbsp/sparc/leon2/preinstall.am |4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am|1 + c/src/lib/libbsp/sparc/leon3/preinstall.am |4 +++

[PATCH 053/111] GR-RASTA-TMTC: updated for new version

2015-02-26 Thread Daniel Hellstrom
From this driver's point of view the major new thing is that the GRPCI peripheral PCI bridge has been updated to GRPCI2, the second version. This means that both Big and Little Endian systems are now supported and autodetected on runtime. The PCI frequency is used as AMBA frequency of the

[PATCH 105/111] GR-RASTA-TMTC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/include/gr_rasta_tmtc.h|8 - c/src/lib/libbsp/sparc/shared/pci/gr_rasta_tmtc.c | 29 +-- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_tmtc.h

[PATCH 107/111] LEON CONS: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/uart/cons.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/cons.c b/c/src/lib/libbsp/sparc/shared/uart/cons.c index 3de9f54..f0af1f9 100644 --- a/c/src/lib/libbsp/sparc/shared/uart/cons.c +++

[PATCH 109/111] LEON2: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../libbsp/sparc/shared/drvmgr/leon2_amba_bus.c| 33 ++- 1 files changed, 11 insertions(+), 22 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/drvmgr/leon2_amba_bus.c b/c/src/lib/libbsp/sparc/shared/drvmgr/leon2_amba_bus.c index f4ff89f..a52ec0f 100644 ---

[PATCH 111/111] MCTRL: fix build warnings in MCTRL driver

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon2/Makefile.am |1 + c/src/lib/libbsp/sparc/leon2/preinstall.am|4 +++ c/src/lib/libbsp/sparc/leon3/Makefile.am |1 + c/src/lib/libbsp/sparc/leon3/preinstall.am|4 +++ c/src/lib/libbsp/sparc/shared/include/mctrl.h | 26

[PATCH 110/111] AMBAPP GRLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../sparc/shared/include/drvmgr/ambapp_bus_grlib.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h b/c/src/lib/libbsp/sparc/shared/include/drvmgr/ambapp_bus_grlib.h index a0e0548..97a23ac 100644 ---

[PATCH 108/111] AMBAPP_BUS: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c | 41 + 1 files changed, 18 insertions(+), 23 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c b/c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c index c95e8fd..29a38d9 100644 ---

[PATCH 090/111] TLIB: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/tlib.h | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/tlib.h b/c/src/lib/libbsp/sparc/shared/include/tlib.h index df9466e..ea43951 100644 ---

[PATCH 083/111] LEON: I2CMST driver warnings fixes

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c |2 +- c/src/lib/libbsp/sparc/shared/include/i2cmst.h |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c b/c/src/lib/libbsp/sparc/shared/i2c/i2cmst.c index f71af0b..b95e39f

[PATCH 012/111] LEON3: implemented BSP DRVMGR startup initialization

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/leon3/amba/amba.c | 50 c/src/lib/libbsp/sparc/leon3/clock/ckinit.c| 10 c/src/lib/libbsp/sparc/leon3/console/console.c | 10 .../lib/libbsp/sparc/leon3/startup/bsppredriver.c | 32 - 4 files

[PATCH 014/111] LEON3: implemented AMBA PnP Bus Driver for Driver Manager

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/Makefile.am |7 + c/src/lib/libbsp/sparc/leon3/Makefile.am |7 + c/src/lib/libbsp/sparc/leon3/include/bsp.h |7 + c/src/lib/libbsp/sparc/leon3/preinstall.am | 12 + c/src/lib/libbsp/sparc/shared/drvmgr/ambapp_bus.c

[PATCH 013/111] sparc BSPs: implemented libpci IRQ BSP support

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/erc32/include/bsp.h |7 +++ c/src/lib/libbsp/sparc/leon2/include/bsp.h | 10 ++ c/src/lib/libbsp/sparc/leon3/include/bsp.h |9 +++-- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/erc32/include/bsp.h

[PATCH 011/111] DRVMGR: added drvmgr shell command

2015-02-26 Thread Daniel Hellstrom
--- cpukit/libmisc/Makefile.am |2 +- cpukit/libmisc/shell/main_drvmgr.c | 426 cpukit/libmisc/shell/shellconfig.h |9 + 3 files changed, 436 insertions(+), 1 deletions(-) create mode 100644 cpukit/libmisc/shell/main_drvmgr.c diff --git

[PATCH 104/111] GR-RASTA-SPW-ROUTER: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- .../sparc/shared/include/gr_rasta_spw_router.h |5 - .../libbsp/sparc/shared/pci/gr_rasta_spw_router.c | 17 +++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_rasta_spw_router.h

[PATCH 100/111] GR_701: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/include/gr_701.h |9 ++--- c/src/lib/libbsp/sparc/shared/pci/gr_701.c | 18 -- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/include/gr_701.h

[PATCH 094/111] SPWCUC: fix build warnings

2015-02-26 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/time/spwcuc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c b/c/src/lib/libbsp/sparc/shared/time/spwcuc.c index 738ec1a..f5d0f11 100644 --- a/c/src/lib/libbsp/sparc/shared/time/spwcuc.c

  1   2   3   4   5   >