[PATCH 15/32] leon, grcan: RTEMS_NO_TIMEOUT on tx_sem

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index 45b7af1..1348d7a 100644 --- a/c/src/lib/libbsp/sparc/shared/can/grcan.

[PATCH 14/32] leon, grcan: redesigned bus-off and AHB error handling

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg When bus-off condition is detected by the ISR, it sets the started flag to STATE_BUSOFF. This is monitored by the user functions grcan_read() and grcan_write() each time they want to enable DMA or update interrupt mask. If they detect that ISR has detected bus-off then they wil

[PATCH 13/32] leon, grcan: updated device name and use it for ISR

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/can/grcan.c | 28 --- c/src/lib/libbsp/sparc/shared/include/grcan.h | 11 +++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c

[PATCH 17/32] leon, grcan: semaphore reset count required after flushing

2017-05-11 Thread Daniel Hellstrom
It is also required to use semaphore release instead of flush when stopping or on BUSOFF/AHBERR condition. Otherwise a task just about to wait (taking the semaphore) could end up locked because the semaphore count is still the same. There was previously a scenario where the semaphore flush would n

[PATCH 19/32] leon, grcan: removed unused txerror, rxerror

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 13 - 1 file changed, 13 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index b1eacc0..da236ef 100644 --- a/c/src/lib/libbsp/sparc/shared/can/grcan.c

[PATCH 18/32] leon, grcan: fixed historical comment

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index ac1c718..b1eacc0 100644 --- a/c/src/lib/libbsp/sparc/shared/can

[PATCH 16/32] leon, grcan: split hw_stop() into hw and sw stop

2017-05-11 Thread Daniel Hellstrom
this is to avoid owning the spin-lock during semaphore operations. --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 13 + 1 file changed, 13 insertions(+) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index 1348d7a..1050934 100644 -

[PATCH 21/32] leon, genirq: SMP support for PCI peripherals

2017-05-11 Thread Daniel Hellstrom
The common interrupt layer for GRLIB PCI perihperals is prepared for SMP support by this patch. The existing locking (interrupt disabling) is replaced by a new requirement on the user to implement locking before calling the genirq API. This approach avoids taking more locks than necessary. The spl

[PATCH 09/32] leon, grcan: use RTEMS 4.12 SMP interrupt lock

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/shared/can/grcan.c | 71 +++ 1 file changed, 44 insertions(+), 27 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c index e955b20..409e68b 100644 --- a/c/src/

[PATCH 24/32] leon, grtm: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/tmtc/grtm.c | 198 +- 1 file changed, 115 insertions(+), 83 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c b/c/src/lib/libbsp/sparc/shared/tmtc/grtm.c index a1038d4..bd7d98f 100644 --- a/c/src/lib/libbsp/sparc/sha

[PATCH 22/32] leon, pci-peripherals: SMP support by spin-locks and updated genirq

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/pci/gr_701.c | 67 ++- c/src/lib/libbsp/sparc/shared/pci/gr_cpci_gr740.c | 76 -- c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c | 66 ++- .../lib/libbsp/sparc/shared/pci/gr_rasta_adcdac.c | 68

[PATCH 20/32] leon: allow SMP boot from any CPU

2017-05-11 Thread Daniel Hellstrom
From: Martin Aberg --- c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | 5 + c/src/lib/libbsp/sparc/shared/start/start.S | 14 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c b/c/src/lib/libbsp/sparc/leon3/

[PATCH 32/32] score: remove part of an assertion that cannot compile with Clang

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen --- cpukit/score/include/rtems/score/threadqimpl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 574221c..975221c 100644 --- a/cpukit/score/include/r

[PATCH 25/32] leon, apbuart: remove old RAW UART driver

2017-05-11 Thread Daniel Hellstrom
e file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - * - * - * 2007-07-11, Daniel Hellstrom - *Added ioctl command APBUART_CLR_STATS - */ - -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#ifndef DEFA

[PATCH 29/32] leon, grtc: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/tmtc/grtc.c | 91 ++- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/tmtc/grtc.c b/c/src/lib/libbsp/sparc/shared/tmtc/grtc.c index 3cceb60..c01d7d8 100644 --- a/c/src/lib/libbsp/sparc/shar

[PATCH 27/32] leon, gr1553bm: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c | 53 --- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c b/c/src/lib/libbsp/sparc/shared/1553/gr1553bm.c index d1b208f..d63983b 100644 --- a/c/src/lib/libbsp/sp

[PATCH 30/32] sparc: Adjust assembly to improve compability with LLVM

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen - All references of %0 changed to %g0 - 'call label,0' changed to 'call label'. According to the sparc specification call does not take any registers - '.seg "text"' changed to '.section ".text"' - the synonym stub is replaced with stb - the synonym stuh is replaced with

[PATCH 26/32] leon, gr1553bc: SMP support by using spin-locks

2017-05-11 Thread Daniel Hellstrom
Since DMA buffers are managed by the user, responsibility is put on the user to cope with SMP in the application. --- c/src/lib/libbsp/sparc/shared/1553/gr1553bc.c | 123 ++ 1 file changed, 84 insertions(+), 39 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/1553/g

[PATCH 31/32] sparc: only define start if it is different from SYM(start)

2017-05-11 Thread Daniel Hellstrom
From: Jacob Hansen The SYM define concatenates the input with the compiler set __USER_LABEL_PREFIX__ define. This define appears to be '_' in GCC but empty in Clang. Therefore when compiling with Clang/LLVM 'SYM(start)' and 'start' defines the same symbol, and the compiler complains that the symb

[PATCH 28/32] leon, grtc: updated overrun condition handling

2017-05-11 Thread Daniel Hellstrom
The following functions now reports to the user that an overrun has occured by returning errno EIO: * grtc_read, on overrun and no more data in the DMA buffer * ioctl(GRTC_IOC_RECV), on overrun and no more frames in the DMA buffer * ioctl(GRTC_IOC_ISSTARTED), EIO is returned on overrun --- c/sr

[PATCH 23/32] leon, ahbstat: remove printf warnings

2017-05-11 Thread Daniel Hellstrom
--- c/src/lib/libbsp/sparc/shared/amba/ahbstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c index ee697f6..11bccb9 100644 --- a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c +++

Re: [PATCH 00/32] LEON

2017-05-12 Thread Daniel Hellstrom
haven't tested Chris BSP tester. Daniel Cederman added recently to our internal Jenkins test system that the RTEMS test-suite is run on TSIM when committing to our git repository, which is looking really good. This is very promising going forward. I'm away all next week. So if it is o

Re: [PATCH rtems-tools v4] tester/rtemstoolkit: add renode implementation

2023-09-05 Thread Daniel Hellstrom
eally interesting GSoC project. /Daniel On 2023-08-18 16:25, Gedare Bloom wrote: Daniel / Gaisler: On Sun, Aug 6, 2023 at 11:05 PM Muhammad Sulthan Mazaya wrote: Add gpl to the prom binary file name + include the leon3 prom assembly source with licensing commented --- .../testing

Re: Upgrading tools - gcc, binutils, and gdb

2024-05-29 Thread Daniel Hellström
perspective, having it also in RTEMS6 releases sounds very good. Thanks, Daniel Den 5/30/2024 kl. 1:44 AM, skrev Joel Sherrill: Thanks. It may be a couple of days before I have a merge request ready. Thanks. On Wed, May 29, 2024, 6:28 PM Chris Johns wrote: On 30/5/2024 7:22 am, Joel Sherrill

Re: [PATCH] bsps/sparc: Add and use

2018-11-26 Thread Daniel Hellstrom
Hi Sebastian, Thanks for this! I haven't tried it out but it looks good to me. Regards, Daniel On 2018-11-26 15:46, Sebastian Huber wrote: Reduce copy and paste. --- bsps/sparc/headers.am | 1 + bsps/sparc/include/grlib-impl.h

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
bject could be to use the RTEMS memalign() instead of custom alignment within the driver for descriptor tables etc. The history there is that memalign() did not exist when writing most of the drivers. Merry Christmas and a happy new year! Daniel On 2018-11-27 08:11, Sebastian Huber wrote:

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
Hi Sebastian, On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi Sebastian, Sorry for my very late response! I have reviewed the code but not executed it, it looks okay with me. I'm guessing it is also a positive thing to r

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi Sebastian, Sorry for my very late response! I have reviewed the code but not executed it, it

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:12, Sebastian Huber wrote: On 21/12/2018 15:06, Daniel Hellstrom wrote: On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57, Sebastian Huber wrote: Hello Daniel, On 21/12/2018 14:42, Daniel Hellstrom wrote: Hi

Re: [PATCH] bsps/sparc: Add grlib_malloc(), grlib_calloc()

2018-12-21 Thread Daniel Hellstrom
On 2018-12-21 15:20, Sebastian Huber wrote: On 21/12/2018 15:18, Daniel Hellstrom wrote: On 2018-12-21 15:12, Sebastian Huber wrote: On 21/12/2018 15:06, Daniel Hellstrom wrote: On 2018-12-21 15:02, Sebastian Huber wrote: On 21/12/2018 14:59, Daniel Hellstrom wrote: On 2018-12-21 14:57

<    3   4   5   6   7   8