[PATCH v2] score: Fix thread deletion on SMP

2014-06-20 Thread Sebastian Huber
Close the thread object in _Thread_Make_zombie() so that all blocking operations that use _Thread_Get() in the corresponding release directive can find a terminating thread and can complete the operation. --- cpukit/score/src/threadrestart.c | 10 +-

Re: [rtems commit] JFFS2: Add device identifier for the flash device

2014-06-20 Thread Sebastian Huber
On 2014-06-17 11:08, Chris Johns wrote: On 17/06/2014 6:51 pm, Sebastian Huber wrote: On 2014-06-16 21:56, Chris Johns wrote: On 14/06/2014 2:00 am, Sebastian Huber wrote: Module:rtems Branch:master Commit:73bf499ce7710ff8e75833042f88d1ff5b3e84fa Changeset: http://git.rtems.org

How to add -std=gnu++11 to CXXFLAGS?

2014-06-26 Thread Sebastian Huber
in our build system? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine

[PATCH] score: Workaround for GCC 4.9 for atomic ops

2014-06-26 Thread Sebastian Huber
The GCC 4.9 ships its own stdatomic.h which is not C++ compatible. The suggested solution was to include atomic in case C++ is used. This works at least with GCC 4.9. See also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60940 ---

Re: PR2183 and affinity migration

2014-06-27 Thread Sebastian Huber
and push it. Gaisler will have to send their test code. I work currently an a solution for bug PR2183 since I hit it also in a new test case that works without the disabled thread dispatching trick. It should be ready next week. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr

[PATCH v2] bsps/sparc: Reduce copy and paste

2014-06-30 Thread Sebastian Huber
--- c/src/lib/libbsp/sparc/leon3/console/console.c | 31 +- .../libbsp/sparc/leon3/console/printk_support.c| 13 --- c/src/lib/libbsp/sparc/leon3/include/leon.h| 33 c/src/lib/libbsp/sparc/shared/include/apbuart.h|1 +

Re: [PATCH] RTEMS: Add multilibs for ARM

2014-07-01 Thread Sebastian Huber
On 2014-07-01 16:56, Sebastian Huber wrote: gcc/ChangeLog 2014-07-01 Sebastian Huber sebastian.hu...@embedded-brains.de * config/arm/t-rtems-eabi: Add mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard, mbig-endian/mthumb/march=armv7-r, and mbig-endian/mthumb

Re: [PATCH 3/3] score: Add SMP support to the cache manager

2014-07-04 Thread Sebastian Huber
. You must not be the owner of the Giant lock, since this may result in a livelock. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

Re: [PATCH 1/2] bsp/sparc: Flush icache before first time enabling interrupts

2014-07-04 Thread Sebastian Huber
. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG

Re: [PATCH 1/3] score: Use consistent type for SMP messages

2014-07-07 Thread Sebastian Huber
); } -void _SMP_Send_message( uint32_t cpu_index, unsigned long message ) +void _SMP_Send_message( uint32_t cpu_index, uint32_t message ) { Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index ); -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim

Re: [PATCH 3/3] score: Add SMP support to the cache manager

2014-07-07 Thread Sebastian Huber
I think instruction cache operations scoped by processors make no sense on SMP. Every processor should have the same view to the instruction memory. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189

[PATCH 1/4] termios: New low-level device API

2014-07-07 Thread Sebastian Huber
Add a new low-level device API to Termios that passes the TTY structure to the low-level device functions. This greatly simplifies the low-level device drivers since they are no longer forced to derive their private data from the minor number. It makes it possible to use the TTY low-level lock

[PATCH 4/4] bsps/sparc: Move APBUART printk support

2014-07-07 Thread Sebastian Huber
From: Christian Mauderer christian.maude...@embedded-brains.de --- .../libbsp/sparc/leon3/console/printk_support.c| 51 c/src/lib/libbsp/sparc/leon3/include/leon.h| 19 --- .../libbsp/sparc/shared/include/apbuart_termios.h | 19 +++

Re: [PATCH 3/4] capture: Remove nested rtems_interrupt_lock_acquire calls.

2014-07-11 Thread Sebastian Huber
code to manage it is not being a helpful RTOS. I am fine with adding additional locks which allow nesting, but the default lock used a the lowest level must not allow nesting. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41

Re: [PATCH-V2 6/7] bsp/sparc: Ensure that data cache snooping is enabled

2014-07-11 Thread Sebastian Huber
this as a comment, since the next person reviewing this code will probably ask the same question. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

[PATCH] doc: Update console driver documentation

2014-07-11 Thread Sebastian Huber
--- doc/bsp_howto/console.t | 716 ++- 1 files changed, 331 insertions(+), 385 deletions(-) diff --git a/doc/bsp_howto/console.t b/doc/bsp_howto/console.t index 555cf04..e35ca36 100644 --- a/doc/bsp_howto/console.t +++ b/doc/bsp_howto/console.t @@

Re: [PATCH] Add nios2-*-rtems*

2014-07-17 Thread Sebastian Huber
100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-07-17 Joel Sherrill joel.sherr...@oarcorp.com + + * config.gcc: Add nios2-*-rtems*. + * config/nios2/rtems.h: New file. + * gcc/config/nios2/t-rtems: New file. -- Sebastian Huber, embedded brains GmbH Address

Re: posix function (read/write) unusual beavior

2014-07-21 Thread Sebastian Huber
and look who writes what to this register. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht

[PATCH 3/3] rbtree: Do not set node off-tree in extract

2014-07-21 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/rbtree.h | 11 +-- cpukit/score/src/rbtreeextract.c | 3 --- testsuites/sptests/sprbtree01/init.c | 5 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/cpukit/score/include/rtems/score/rbtree.h

[PATCH 2/3] rbtree: Remove superfluous NULL pointer checks

2014-07-21 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/rbtree.h | 7 +++ cpukit/score/src/rbtree.c | 3 --- cpukit/score/src/rbtreeextract.c | 10 -- cpukit/score/src/rbtreeinsert.c | 3 --- testsuites/sptests/sprbtree01/init.c | 3 --- 5 files changed, 3

[PATCH 1/3] rbtree: Format

2014-07-21 Thread Sebastian Huber
--- cpukit/score/src/rbtree.c| 7 +- cpukit/score/src/rbtreeextract.c | 152 +-- cpukit/score/src/rbtreefind.c| 7 +- cpukit/score/src/rbtreeinsert.c | 69 ++ cpukit/score/src/rbtreeiterate.c | 12 ++--

Re: [PATCH 2/3] rbtree: Remove superfluous NULL pointer checks

2014-07-21 Thread Sebastian Huber
RBTree operations are unprotected? Yes, all operations are unprotected. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

Re: [PATCH 3/3] rbtree: Do not set node off-tree in extract

2014-07-21 Thread Sebastian Huber
container. Is this true? If so, this looks OK. Yes, this is analogous to the chains. The lowest level implementation should not do consistency checks (except via _Assert()). -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16

[PATCH v2] RTEMS: Add multilibs for ARM

2014-07-21 Thread Sebastian Huber
This change is necessary to support Cortex-M4 and Cortex-R based chips in RTEMS. This patch should be applied to GCC 4.8, 4.9 and mainline. I do not have write access, so in case this gets approved, please commit it for me. gcc/ChangeLog 2014-07-21 Sebastian Huber sebastian.hu...@embedded

Re: [PATCH 1/3] rbtree: Format

2014-07-22 Thread Sebastian Huber
++);' nl_create_while_one_liner= false# false/true I will fix this manually. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available

Re: [PATCH 1/3] rbtree: Format

2014-07-22 Thread Sebastian Huber
. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne

[PATCH] rbtree: Update maximum node in LIFO order

2014-07-22 Thread Sebastian Huber
The test sptests/sp35 showed a NULL pointer access due to an invalid maximum node field (e.g. a tree with one element and NULL as the maximum node). --- cpukit/score/include/rtems/score/rbtree.h| 16 ++-- cpukit/score/src/rbtreeinsert.c | 4 +-

[PATCH 2/2] rbtree: Rename find header in find control

2014-07-26 Thread Sebastian Huber
Simplify _RBTree_Find_control(). Avoid superfluous NULL pointer checks. --- cpukit/sapi/include/rtems/rbtree.h | 8 cpukit/score/include/rtems/score/rbtree.h| 29 ++-- testsuites/sptests/sprbtree01/init.c | 9 ++---

[PATCH 1/2] rbtree: Simplify off-tree handling

2014-07-26 Thread Sebastian Huber
Only use the parent pointer, since this pointer is never NULL for nodes which are part of a tree. Rename functions from *_off_rbtree() to *_off_tree(). --- cpukit/sapi/include/rtems/rbtree.h| 8 +++ cpukit/score/include/rtems/score/rbtree.h | 37 +--

[PATCH] RTEMS thread model configuration

2014-07-26 Thread Sebastian Huber
Sebastian Huber sebastian.hu...@embedded-brains.de * config.gcc (*-*-rtems*): Default to 'rtems' thread model. Enable selection of 'posix' or no thread model. --- gcc/config.gcc | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/config.gcc b/gcc

Re: Should the type of deviceOutputUsesInterrupts in console_fns struct be changed ?

2014-07-30 Thread Sebastian Huber
. http://rtems.org/onlinedocs/doc-current/share/rtems/html/bsp_howto/Console-Driver-Basics.html#Console-Driver-Basics -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu

[PATCH 3/3] posix: Simplify key implementation

2014-08-03 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/key.h | 33 ++ cpukit/posix/include/rtems/posix/keyimpl.h | 4 ++-- cpukit/posix/src/key.c | 20 ++ cpukit/posix/src/keygetspecific.c | 2 +- cpukit/posix/src/keysetspecific.c

[PATCH 2/3] rbtree: Add and use RBTree_Compare_result

2014-08-03 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/keyimpl.h | 2 +- cpukit/posix/src/key.c | 4 +- cpukit/sapi/include/rtems/rbheap.h | 1 - cpukit/sapi/include/rtems/rbtree.h | 9 ++- cpukit/sapi/src/rbheap.c |

[PATCH 1/3] Add and use RTEMS_CONTAINER_OF()

2014-08-03 Thread Sebastian Huber
--- cpukit/libblock/src/bdbuf.c| 4 +- cpukit/posix/include/rtems/posix/keyimpl.h | 3 ++ cpukit/posix/src/key.c | 4 +- cpukit/posix/src/keyfreememory.c | 8 ++-- cpukit/posix/src/keygetspecific.c

Re: [PATCH 1/3] Add and use RTEMS_CONTAINER_OF()

2014-08-05 Thread Sebastian Huber
); Delete the extra space between OF and (. This file has its own style. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

[PATCH 1/3] rbtree: Simplify insert and extract

2014-08-05 Thread Sebastian Huber
Simplify _RBTree_Insert() and _RBTree_Extract(). Remove more superfluous NULL pointer checks. Change _RBTree_Is_root() to use only the node. Add parent parameter to _RBTree_Sibling(). Delete _RBTree_Grandparent() and _RBTree_Parent_sibling(). --- cpukit/sapi/include/rtems/rbtree.h

Re: GCC Head Gives C++ Compile Error with RTEMS

2014-08-07 Thread Sebastian Huber
This is a known problem: http://lists.rtems.org/pipermail/devel/2014-June/007224.html I don't know how to add this flag to the CXXFLAGS in our build system. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49

Re: [PATCH] rtems_termios_puts: Copy and write more than one char at once

2014-08-08 Thread Sebastian Huber
-rawOutBuf.theBuf[tty-rawOutBuf.Tail], nwaiting); } tty-rawOutBufState = rob_busy; } rtems_termios_interrupt_lock_release (tty, lock_context); -len--; +len -= partlen; } } -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany

Re: Can User Extensions Be Dynamically Installed?

2014-08-09 Thread Sebastian Huber
. http://www.rtems.org/onlinedocs/doxygen/cpukit/html/group__ScoreUserExt.html#ga6e0af3d698d5b72c947eb0c6552e4193 It is not allowed in the context switch extension. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49

[PATCH 1/2] arm: Add support for FPv4-SP floating point unit

2014-08-11 Thread Sebastian Huber
@@ */ /* - * Copyright (c) 2011 Sebastian Huber. All rights reserved. + * Copyright (c) 2011-2014 Sebastian Huber. All rights reserved. * * embedded brains GmbH * Obere Lagerstr. 30 @@ -37,17 +37,26 @@ void __attribute__((naked)) _CPU_Context_switch( movt r2, #:upper16

[PATCH 2/2] bsp/lpc24xx: Add LPC40XX variants

2014-08-11 Thread Sebastian Huber
--- c/src/lib/libbsp/arm/lpc24xx/Makefile.am | 27 ++- c/src/lib/libbsp/arm/lpc24xx/configure.ac | 12 ++--- .../lib/libbsp/arm/lpc24xx/make/custom/lpc40xx.inc | 11 + .../arm/lpc24xx/make/custom/lpc40xx_ea_ram.cfg | 5 ++

Re: [PATCH 1/2] arm: Add support for FPv4-SP floating point unit

2014-08-12 Thread Sebastian Huber
On 08/11/2014 11:12 PM, Joel Sherrill wrote: Is there any tool patch missing? I may be thinking of nios and I think I committed that. No tool patch is missing. I use currently the latest GCC 4.9 without any patches. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178

Re: [PATCH 1/2] arm: Add support for FPv4-SP floating point unit

2014-08-12 Thread Sebastian Huber
. If there is only one place, then there is no real need for a define. I added improved exception support, so now we have two places and a define. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail

Re: [PATCH] BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)

2014-08-13 Thread Sebastian Huber
*addr ); This is probably superfluous copy and paste stuff. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request

Re: [PATCH] BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)

2014-08-13 Thread Sebastian Huber
On 13/08/14 21:48, Premysl Houdek wrote: +extern const tms570_sci_context driver_context_table[]; Never include extern declarations in a source file. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189

Re: [PATCH] BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)

2014-08-14 Thread Sebastian Huber
On 14/08/14 09:48, Pavel Pisa wrote: Hello Sebastian, On Thursday 14 of August 2014 07:39:19 Sebastian Huber wrote: Hello, its nice that you use the new Termios device API. I would be happy to receive comments if you found something odd about it. Contains the current GCC 4.8 or 4.9 branch

Re: [PATCH] rtems_termios_puts: Copy and write more than one char at once

2014-08-14 Thread Sebastian Huber
and not in termios.c in particular. Thanks, Kolja -- mr.k.waschk - ixo.de - hamburg, germany -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

[PATCH] score: Fix initially locked prio inherit sema

2014-08-19 Thread Sebastian Huber
--- cpukit/score/src/coremutex.c | 15 +++ testsuites/sptests/sp51/init.c | 35 +++ testsuites/sptests/sp51/sp51.doc | 3 +++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/cpukit/score/src/coremutex.c

Re: We should release 4.11

2014-08-20 Thread Sebastian Huber
On 19/08/14 18:38, Gedare Bloom wrote: Anything holding it up at the moment? For the SPARC GCC not all patches are in the GCC upstream, e.g. a multilib update is missing. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41

Re: We should release 4.11

2014-08-20 Thread Sebastian Huber
reliable: [PATCH] Properly flush cache when writing to MPC55XX flash. I sent it July 14 2014. Do I open a bug as well? I don't find this patch. Would you mind resending it? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16

Re: We should release 4.11

2014-08-20 Thread Sebastian Huber
On 20/08/14 13:21, Joel Sherrill wrote: On August 20, 2014 1:26:19 AM CDT, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: On 19/08/14 18:38, Gedare Bloom wrote: Anything holding it up at the moment? For the SPARC GCC not all patches are in the GCC upstream, e.g. a multilib

Re: [PATCH] lpc24xx/lpc17xx: lpc24xx_pin_set_function() keep LPC4088 W type pin in digital mode for non-analog function.

2014-08-20 Thread Sebastian Huber
Thanks, checked in as: http://git.rtems.org/rtems/commit/?id=0a66c1266f1f0968345b2a0bcb7acbeeba0c1d82 -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded

Re: feedback on Re: [PATCH v3] BSP for TMS570LS31x Hercules Development Kit from TI (TMS570LS3137)

2014-08-21 Thread Sebastian Huber
On 21/08/14 11:21, Pavel Pisa wrote: Hello Sebastian, On Thursday 21 of August 2014 08:59:15 Sebastian Huber wrote: On 20/08/14 20:17, Joel Sherrill wrote: Hi Initial quick feedback. I build normally with --enable-rtems-debug and the tms570ls3137_hdk variant failed to build

Re: [Bug 2180] New: _TOD_Get_with_nanoseconds() is broken on SMP

2014-08-22 Thread Sebastian Huber
On 21/08/14 15:51, Gedare Bloom wrote: On Thu, Aug 21, 2014 at 3:03 AM, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: On 20/08/14 16:05, Joel Sherrill wrote: On 8/20/2014 8:59 AM, Sebastian Huber wrote: On 20/08/14 15:53, Joel Sherrill wrote: On 8/20/2014 8:12 AM, Daniel

Re: [PATCH 2/2] rtems: Add more clock tick functions

2014-08-24 Thread Sebastian Huber
version in the same way as your example, since _Watchdog_Ticks_since_boot is a global volatile variable. Linux uses the same approach for time_before(). -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89

Re: [PATCH 2/2] rtems: Add more clock tick functions

2014-08-24 Thread Sebastian Huber
On 08/24/2014 05:02 AM, Chris Johns wrote: On 23/08/2014 1:12 am, Sebastian Huber wrote: Add rtems_clock_ticks_later(), rtems_clock_ticks_later_us() and rtems_clock_ticks_later_us(). FIXME: Patch is incomplete. Documentation and tests are missing. Just for API review. --- cpukit/rtems

Re: [PATCH] score: Add missing define to cache manager

2014-08-25 Thread Sebastian Huber
Hello Daniel, thanks for the fix: http://git.rtems.org/rtems/commit/?id=e7a42a0cfbafc2311888780b086010aef6556311 -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu

Re: powerpc/gwlcfm does not compile

2014-08-25 Thread Sebastian Huber
Fixed: http://git.rtems.org/rtems/commit/?id=0a314839012ab765a70df05eaadc4dba7440223b -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: powerpc/mpc5668g does not compile

2014-08-25 Thread Sebastian Huber
Fixed: http://git.rtems.org/rtems/commit/?id=f3237a3c3bbe5a298b5ae30a36b24e6f601c6f8b -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: [PATCH] score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general

2014-08-25 Thread Sebastian Huber
*heir ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; #define _CPU_Start_multitasking _BSP_Start_multitasking + #endif In case it is LEON specific, then it should have a LEON specific name. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone

Re: [PATCH] score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general

2014-08-25 Thread Sebastian Huber
On 08/25/2014 05:04 PM, Joel Sherrill wrote: On 8/25/2014 5:10 AM, Sebastian Huber wrote: On 25/08/14 11:45, Daniel Cederman wrote: --- cpukit/score/cpu/sparc/rtems/score/cpu.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit

Re: [PATCH] score: Define _CPU_Start_multitasking only for LEON SPARC, not SPARC in general

2014-08-26 Thread Sebastian Huber
On 25/08/14 19:29, Joel Sherrill wrote: On 8/25/2014 11:44 AM, Sebastian Huber wrote: On 08/25/2014 05:04 PM, Joel Sherrill wrote: On 8/25/2014 5:10 AM, Sebastian Huber wrote: On 25/08/14 11:45, Daniel Cederman wrote: --- cpukit/score/cpu/sparc/rtems/score/cpu.h |2 ++ 1 file

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Sebastian Huber
Hello, I work currently on a MMC/SD driver for the DesignWare Mobile Storage Host. I use the FreeBSD MMC/SD stack for this. It is based on the USB stack library. I will probably publish it this week in my private Git area. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4

Re: Rtems_fsmount dosfs hanging

2014-08-26 Thread Sebastian Huber
for an MMC/SD host driver is the stack. The host specific driver then needs only implementations for the IOS settings and the requests. It is similar to the Linux or U-Boot stack for MMC/SD cards. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany

Re: [PATCH] Adding eth linker script section for arm bsp.

2014-08-27 Thread Sebastian Huber
you really need a lpc1768_mbed_ahb_ram and a lpc1768_mbed_ahb_ram_eth variant? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

Re: [PATCH] Adding eth linker script section for arm bsp.

2014-09-02 Thread Sebastian Huber
the new version of this add. Regards On Fri, Aug 29, 2014 at 2:30 PM, Sebastian Huber sebastian.hu...@embedded-brains.de mailto:sebastian.hu...@embedded-brains.de wrote: Hello Federico, you can do it like this: http://git.rtems.org/rtems/__tree/c/src/lib/libbsp/arm/__altera-cyclone-v

Re: CMSIS?

2014-09-03 Thread Sebastian Huber
Hello, there are also BSD licensed CMSIS versions: http://comments.gmane.org/gmane.comp.lib.libopencm3/361 The original ARM license makes it pretty useless for us. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax

Re: BSPs which define NDEBUG in CFLAGS

2014-09-03 Thread Sebastian Huber
On 03/09/14 13:41, Federico Casares wrote: We did the lpc1768* BSPs. If we remove the NDEBUG... which will be the procedure to disable ASSERTS for production builds? Someone needs to add the magic to deal with NDEBUG in our build system. -- Sebastian Huber, embedded brains GmbH Address

Re: [PATCH 01/23] raspberrypi: Use shared bspreset.c

2014-09-05 Thread Sebastian Huber
On 05/09/14 15:48, Joel Sherrill wrote: On 9/5/2014 1:40 AM, Sebastian Huber wrote: On 04/09/14 18:16, Gedare Bloom wrote: On Wed, Sep 3, 2014 at 11:25 AM, Joel Sherrill joel.sherr...@oarcorp.com wrote: --- c/src/lib/libbsp/arm/csb337/startup/bspreset.c | 1 + c/src/lib/libbsp/arm

Re: [PATCH] Adding eth linker script section for arm bsp.

2014-09-08 Thread Sebastian Huber
variants, but we also have BSP options. It is not possible to test everything. Regarding the latest patch. Please reduce the copy and paste in the *.cfg files. We don't need three copies of the same file. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany

[PATCH] Add -std=gnu++11 to CXXFLAGS if SMP is enabled

2014-09-08 Thread Sebastian Huber
This is necessary to use the atomic header file used for the atomic operations. --- c/src/aclocal/prog-cxx.m4 | 11 +-- testsuites/aclocal/prog-cxx.m4 | 7 ++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/c/src/aclocal/prog-cxx.m4 b/c/src/aclocal/prog-cxx.m4

Re: [PATCH] score: More strict RTEMS_DEQUALIFY implementation.

2014-09-08 Thread Sebastian Huber
( *, _type, _var ) ^ /home/sh/rtems-4.11/c/src/../../cpukit/posix/src/keysetspecific.c:64:33: note: in expansion of macro 'RTEMS_DECONST' value_pair_ptr-value = RTEMS_DECONST( double *, (int *)value ); -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim

[PATCH] tests: Reduce retry count to two

2014-09-08 Thread Sebastian Huber
This avoids test durations of more than one hour on fast targets. --- testsuites/psxtests/psxintrcritical01/init.c | 2 +- testsuites/sptests/spintrcritical13/init.c | 2 +- testsuites/sptests/spintrcritical15/init.c | 2 +- testsuites/sptests/spintrcritical16/init.c | 2 +- 4 files

Re: [PATCH] Add -std=gnu++11 to CXXFLAGS if SMP is enabled

2014-09-09 Thread Sebastian Huber
On 09/09/14 04:00, Nick Withers wrote: On Mon, 2014-09-08 at 11:14 +0200, Sebastian Huber wrote: This is necessary to use the atomic header file used for the atomic operations. -std=c++11 wouldn't cut it? I don't know, we use some GNU extensions here and there. -- Sebastian Huber, embedded

[PATCH] tests: Rework interrupt critical tests

2014-09-09 Thread Sebastian Huber
This avoids test durations of more than one hour on fast targets, since fast targets can count a lot during one clock tick period, so the minor loop iteration count was quite high. Estimate now the test body duration to iterate only through the interesting time window. Add and use

Re: [PATCH] Adding eth linker script section for arm bsp.

2014-09-09 Thread Sebastian Huber
identical except the name. Other BSPs use a *.inc file to avoid the copy and paste. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

[PATCH] sptests/sp39: Convert to sptests/spintrcritical21

2014-09-09 Thread Sebastian Huber
Use interrupt critical section test support. Do not print end of test message in case of failure. --- testsuites/sptests/Makefile.am | 3 +- testsuites/sptests/configure.ac| 2 +- testsuites/sptests/sp39/Makefile.am| 22 ---

Re: rtems-tld tracing with printk

2014-09-09 Thread Sebastian Huber
On 10/09/14 05:53, Chris Johns wrote: No code in RTEMS was altered to do this. Sounds like you can do pretty nice things with this approach. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09

Re: [PATCH] smptests/smpcache01: Test the SMP cache manager

2014-09-10 Thread Sebastian Huber
several NULL pointer accesses. If you call rtems_cache_invalidate_entire_data_processor_set() on systems having a write-back cache, then you kill the stack frame and the test does weird things. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone

Re: [PATCH] or1k: Let CPU/BSP Fatal handler have access to source

2014-09-10 Thread Sebastian Huber
Thanks, committed. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine

Re: Current Warnings Report

2014-09-11 Thread Sebastian Huber
The code is awful, but c/src/../../cpukit/libfs/src/dosfs/msdos_conv.c:452:48: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] is a false positive. On which target and GCC version do you get this warning? -- Sebastian Huber, embedded brains GmbH Address

[PATCH] dosfs: Check error status

2014-09-11 Thread Sebastian Huber
--- cpukit/libfs/src/dosfs/msdos_misc.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/cpukit/libfs/src/dosfs/msdos_misc.c b/cpukit/libfs/src/dosfs/msdos_misc.c index c09aa19..03ec38f 100644 --- a/cpukit/libfs/src/dosfs/msdos_misc.c +++

Re: [PATCH] smptests/smpcache01: Remove invalidation of data cache lines from test

2014-09-11 Thread Sebastian Huber
. rtems_cache_invalidate_entire_instruction(); - rtems_cache_invalidate_multiple_instruction_lines( 0, 10 ); + rtems_cache_invalidate_multiple_instruction_lines( function_to_flush, + 4 /* arbitrary size */ ); } -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178

[PATCH] bsps/arm: Delete obsolete compiler flags

2014-09-11 Thread Sebastian Huber
These flags are obsolete with the EABI based ARM tool chain. --- c/src/lib/libbsp/arm/csb336/make/custom/csb336.cfg| 2 +- c/src/lib/libbsp/arm/csb337/make/custom/csb337.cfg| 2 +- c/src/lib/libbsp/arm/edb7312/make/custom/edb7312.cfg | 2 +-

Re: [PATCH 3/4] Revert: rtems-rfs-buffer.c: Correct printf() format specifiers to eliminate warnings

2014-09-11 Thread Sebastian Huber
On 11/09/14 15:28, Joel Sherrill wrote: + printf (% PRIuPTR , ((intptr_t) buffer-user)); Typo, PRIuPTR vs. PRIiPTR? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail

Re: In nfs_dir_read() count used before and after limiting?

2014-09-11 Thread Sebastian Huber
understands this comment on it? Sorry, Peter. I don't have time to look at this at the moment. The NFS code is hard to understand. Since it works for me I have no urgent need to spend time on this. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany

[PATCH] doc: Clarify ABI in SPARC CPU supplement

2014-09-12 Thread Sebastian Huber
--- doc/cpu_supplement/sparc.t | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/doc/cpu_supplement/sparc.t b/doc/cpu_supplement/sparc.t index d0b7641..5ed0ec6 100644 --- a/doc/cpu_supplement/sparc.t +++ b/doc/cpu_supplement/sparc.t @@ -214,11

Re: [PATCH-V2] smptests/smpcache01: Remove invalidation of data cache lines from test

2014-09-16 Thread Sebastian Huber
/smpcache01/smpcache01.scn | 18 -- 3 files changed, 33 insertions(+), 33 deletions(-) Thanks, I checked it in. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu

Cache Manager Functions with Processor Set

2014-09-16 Thread Sebastian Huber
on an SMP system running an operating system and application in one address space to do processor specific cache operations? The functions are currently unused (except for the test program). -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89

Re: Cache Manager Functions with Processor Set

2014-09-16 Thread Sebastian Huber
enough. I am in favour of removing these new API calls in case there is no strong use case. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: Cache Manager Functions with Processor Set

2014-09-16 Thread Sebastian Huber
On 16/09/14 14:10, Daniel Hellstrom wrote: 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

Re: [PATCH] cpukit: Move zlib into librtemcpu.a and do not install libz.a.

2014-09-16 Thread Sebastian Huber
added libraries appear before this. If we remove libz.a then this will break all application Makefiles, that assume that RTEMS provides it. I would still provide libz.a. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax

Re: Cache Manager Functions with Processor Set

2014-09-16 Thread Sebastian Huber
On 16/09/14 16:00, Daniel Hellstrom wrote: On 09/16/2014 02:23 PM, Sebastian Huber wrote: On 16/09/14 14:10, Daniel Hellstrom wrote: 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

Re: [PATCH] cpukit: Move zlib into librtemcpu.a and do not install libz.a.

2014-09-17 Thread Sebastian Huber
On 17/09/14 07:51, Chris Johns wrote: On 17/09/2014 3:30 pm, Sebastian Huber wrote: On 17/09/14 02:26, Chris Johns wrote: The JFFS2 file system can optionally use zlib as a compressor and if this is the only reference to zlib the application will not link. Adding -lz does not work because

Separation of RTEMS sources and tool chain patches

2014-09-17 Thread Sebastian Huber
tool chain as part of a Git bisect process to find changes causing a regression. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

Re: [PATCH] RTEMS thread model configuration

2014-09-17 Thread Sebastian Huber
Ping^2. On 02/05/14 10:46, Sebastian Huber wrote: Ping. On 2014-04-18 12:11, Sebastian Huber wrote: From: Sebastian Huber sebastian-hu...@web.de The command line to build a GCC for RTEMS contained virtually always a '--enable-threads'. This patch helps to avoid this extra configuration

[PATCH] RTEMS: Update contrib/config-list.mk

2014-09-17 Thread Sebastian Huber
contrib/ChangeLog 2014-09-17 Sebastian Huber sebastian.hu...@embedded-brains.de * config-list.mk (LIST): Add arm-rtems. Add nios2-rtems. Remove extra option from powerpc-rtems. --- contrib/config-list.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] RTEMS: Update contrib/config-list.mk

2014-09-17 Thread Sebastian Huber
RTEMS targets should have it or none. With a recent commit this option is superfluous. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: [rtems commit] tod.h - libcsupport like other driver and helper prototype files

2014-09-18 Thread Sebastian Huber
also all applications that used this file via #include tod.h or #include bsp/tod.h. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: [rtems commit] tod.h - libcsupport like other driver and helper prototype files

2014-09-18 Thread Sebastian Huber
On 18/09/14 14:37, Joel Sherrill wrote: On September 18, 2014 4:19:17 AM CDT, Sebastian Huber sebastian.hu...@embedded-brains.de wrote: On 16/09/14 23:00, Joel Sherrill wrote: .../libcsupport/include/rtems}/tod.h |3 +-- I don't think this is the right location

  1   2   3   4   5   6   7   8   9   10   >