[PATCH v3 2/3] Always provide register_t via

2016-04-20 Thread Sebastian Huber
Always provide register_t via for glibc and BSD compatibility. Define __BIT_TYPES_DEFINED__ to 1 like glibc for legacy header files. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/types.h | 6 ++ winsup/cygwin/include/machine/types.h | 5 - 2 files changed, 2 insertio

[PATCH v3 1/3] Resurrect for

2016-04-20 Thread Sebastian Huber
Resurrect for use in . Newlib targets may provide an own version of in their machine directory to add custom user types for . Check the _SYS_TYPES_H header guard to prevent a direct include of , since the file is a Newlib speciality. Signed-off-by: Sebastian Huber --- newlib/libc/include/ma

[PATCH v3 3/3] Provide FreeBSD types for on RTEMS

2016-04-20 Thread Sebastian Huber
Provide the following types via on RTEMS for FreeBSD compatibility if __BSD_VISIBLE * accmode_t, * cap_rights_t, * c_caddr_t, * cpulevel_t, * fixpt_t, * lwpid_t, * uintfptr_t, * vm_offset_t, * vm_ooffset_t, * vm_paddr_t, * vm_pindex_t, and * vm_size_t. Signed-off-by: Sebastian Huber

Re: [civetweb] Interface for setting stack size and scheduler options

2016-04-20 Thread Christian Mauderer
Hello, I'm currently try to replace our mongoose port with a current version of civetweb. Civetweb is a fork of the last MIT licensed version of mongoose that is still maintained under the MIT license. To reduce the number of patches that are necessary, I tried to clean up the patch that allows s

RKI Build Error

2016-04-20 Thread Olufowobi, Habeeb
Hi, I am trying to build RKI for Raspberrypi but I have been getting this error message: arm-rtems4.12-gcc -Wa,-a=legacy-build/arm-rtems4.12-raspberrypi/task_cmd.lis -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7 -D__ARM__ --pipe -B/home/dipupo/development/rtems/kernel/bui

Re: [PATCH 2/3] i386/pc386: Add IO and memory support to PCI UART devices.

2016-04-20 Thread Joel Sherrill
On Wed, Apr 20, 2016 at 6:47 PM, Chris Johns wrote: > On 21/04/2016 8:57 AM, Joel Sherrill wrote: > > > > +/* > > + * IO Register Access Routines > > + */ > > +static uint8_t pci_ns16550_io_get_register(uint32_t addr, uint8_t i) > > +{ > > + uint8_t val = rtems_inb(addr

Re: [PATCH 2/3] i386/pc386: Add IO and memory support to PCI UART devices.

2016-04-20 Thread Chris Johns
On 21/04/2016 8:57 AM, Joel Sherrill wrote: > > +/* > + * IO Register Access Routines > + */ > +static uint8_t pci_ns16550_io_get_register(uint32_t addr, uint8_t i) > +{ > + uint8_t val = rtems_inb(addr + i); > + if (UART_PCI_IO) > +printk( "RD(%p -> 0x%02x)

Re: [PATCH 1/3] i386/pc386: Add support for the gdb stub to use available console drivers.

2016-04-20 Thread Joel Sherrill
On Wed, Apr 20, 2016 at 6:42 PM, Chris Johns wrote: > On 21/04/2016 9:01 AM, Joel Sherrill wrote: > > Console/Printk Device Selection > > === > > @@ -19,9 +19,9 @@ in the following order of priority: > > + VGA and keyboard > > + COM1 through COM

Re: [PATCH 1/3] i386/pc386: Add support for the gdb stub to use available console drivers.

2016-04-20 Thread Chris Johns
On 21/04/2016 9:01 AM, Joel Sherrill wrote: > Console/Printk Device Selection > === > @@ -19,9 +19,9 @@ in the following order of priority: > + VGA and keyboard > + COM1 through COM4aaa > > What is the aaa? > No idea, must have been cat on the k

Re: [PATCH 2/3] i386/pc386: Add IO and memory support to PCI UART devices.

2016-04-20 Thread Joel Sherrill
On Wed, Apr 20, 2016 at 2:20 AM, Chris Johns wrote: > Use the BAR to determine IO and memory mapped support for PCI UART > boards. > --- > c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c | 150 > - > 1 file changed, 113 insertions(+), 37 deletions(-) > > diff --git a/c/src

Re: [PATCH 3/3] ibchip/ns16550: Minor optimisation.

2016-04-20 Thread Joel Sherrill
These look good and almost all cosmetic. Apply. On Wed, Apr 20, 2016 at 2:20 AM, Chris Johns wrote: > --- > c/src/libchip/serial/ns16550.c | 27 ++- > 1 file changed, 14 insertions(+), 13 deletions(-) > > diff --git a/c/src/libchip/serial/ns16550.c > b/c/src/libchip/seri

New Warning in spsysinit01

2016-04-20 Thread Joel Sherrill
Hi New warning in spsysinit01 that needs to be fixed: ../../../../../../../rtems/c/src/../../testsuites/sptests/spsysinit01/init.c:517:35: warning: passing argument 1 of '_Chain_Node_count_unprotected' from incompatible pointer type [-Wincompatible-pointer-types] ../../../../../../../rtems/c/src/

New warning in shell/hexdump-odssyntax.c

2016-04-20 Thread Joel Sherrill
Hi This is a new warning with the tool update. Anyone have any ideas? ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/hexdump-odsyntax.c:373:2: warning: implicit declaration of function 'asprintf' [-Wimplicit-function-declaration] ../../../../../../rtems/c/src/../../cpukit/libmisc/shell/

epiphany GCC ICE and tool update

2016-04-20 Thread Joel Sherrill
Hi The epiphany 4.12 tools are using gcc 4.9.0 and giving an internal compiler error. Given that there have been multiple 4.9 dot releases and multiple major releases since then, I didn't want to report the internal compiler error with GCC before asking... should the epiphany tools be updated? Is

Re: waf changes to libbsd.

2016-04-20 Thread Joel Sherrill
Do it. On Wed, Apr 20, 2016 at 3:45 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > > On 20/04/16 09:48, Chris Johns wrote: > >> Hi, >> >> Now makefile support has been removed from libbsd I would like to move >> the wscript to not be generated and to have it import the gener

[PATCH v2 3/5] Remove duplicate int*_t definitions

2016-04-20 Thread Sebastian Huber
Types are already available via included some lines above. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/types.h | 4 1 file changed, 4 deletions(-) diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 52349f4..4224a98 100644 --- a/newlib/libc/

[PATCH v2 5/5] Provide FreeBSD types for on RTEMS

2016-04-20 Thread Sebastian Huber
Provide the following types via on RTEMS for FreeBSD compatibility if __BSD_VISIBLE * accmode_t, * cap_rights_t, * c_caddr_t, * cpulevel_t, * fixpt_t, * lwpid_t, * uintfptr_t, * vm_offset_t, * vm_ooffset_t, * vm_paddr_t, * vm_pindex_t, and * vm_size_t. Signed-off-by: Sebastian Huber

[PATCH v2 4/5] Always provide register_t via

2016-04-20 Thread Sebastian Huber
Always provide register_t via for glibc and BSD compatibility. Define __BIT_TYPES_DEFINED__ to 1 like glibc for legacy header files. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/types.h | 6 ++ winsup/cygwin/include/machine/_user_types.h | 5 - 2 files changed

[PATCH v2 2/5] Remove duplicate u_int*_t definitions

2016-04-20 Thread Sebastian Huber
Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/types.h | 4 1 file changed, 4 deletions(-) diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 325fedc..52349f4 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@

[PATCH v2 1/5] Introduce

2016-04-20 Thread Sebastian Huber
Introduce for . Newlib targets may provide an own version of in their machine directory to add custom user types for . Signed-off-by: Sebastian Huber --- newlib/libc/include/machine/_user_types.h | 7 ++ newlib/libc/include/sys/types.h | 10 +- winsup/cygwin/include/cygwin/ty

Re: [PATCH v2] [libatomic] Add RTEMS support

2016-04-20 Thread Joel Sherrill
As the other RTEMS target maintainer. I second the request. --joel On Apr 20, 2016 7:35 AM, "Sebastian Huber" < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > I know that I am pretty late, but is there a chance to get this into the > GCC 6.1 release? > > On 19/04/16 14:56, Sebastian Hube

Re: [PATCH v2] [libatomic] Add RTEMS support

2016-04-20 Thread Sebastian Huber
Hello, I know that I am pretty late, but is there a chance to get this into the GCC 6.1 release? On 19/04/16 14:56, Sebastian Huber wrote: v2: Do not use architecture configuration due to broken ARM libatomic support. gcc/ * config/rtems.h (LIB_SPEC): Add -latomic. libatomic/

Re: waf changes to libbsd.

2016-04-20 Thread Sebastian Huber
On 20/04/16 09:48, Chris Johns wrote: Hi, Now makefile support has been removed from libbsd I would like to move the wscript to not be generated and to have it import the generated part. This will make maintaining the non-generated part easier because I do not need to edit python within pyt

Re: I2C Driver Support

2016-04-20 Thread Sebastian Huber
On 20/04/16 08:53, Chris Johns wrote: Three I2C driver variants exist * no framework drivers, This is difficult, since there is no clear search criterium. Examples are c/src/lib/libbsp/powerpc/gen5200/i2c/mpc5200mbus.c c/src/lib/libcpu/m68k/mcf5206/mbus/mcfmbus.c * libi2c drivers, and c

waf changes to libbsd.

2016-04-20 Thread Chris Johns
Hi, Now makefile support has been removed from libbsd I would like to move the wscript to not be generated and to have it import the generated part. This will make maintaining the non-generated part easier because I do not need to edit python within python strings. OK? Chris ___

[PATCH 3/3] ibchip/ns16550: Minor optimisation.

2016-04-20 Thread Chris Johns
--- c/src/libchip/serial/ns16550.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/c/src/libchip/serial/ns16550.c b/c/src/libchip/serial/ns16550.c index 12d220c..6473028 100644 --- a/c/src/libchip/serial/ns16550.c +++ b/c/src/libchip/serial/ns16550

[PATCH 2/3] i386/pc386: Add IO and memory support to PCI UART devices.

2016-04-20 Thread Chris Johns
Use the BAR to determine IO and memory mapped support for PCI UART boards. --- c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c | 150 - 1 file changed, 113 insertions(+), 37 deletions(-) diff --git a/c/src/lib/libbsp/i386/pc386/console/uart_bus_pci.c b/c/src/lib/libbsp/i38

[PATCH 1/3] i386/pc386: Add support for the gdb stub to use available console drivers.

2016-04-20 Thread Chris Johns
Move the gdb stub from the i386 UART code to use the libchip drivers. Use any ports discovered during the probes. Add gdb control to the boot command line. Change the device naming to the full device path, not a partial path. For example /dev/com1. --- c/src/lib/libbsp/i386/pc386/Makefile.am

i386/px386: GDB use console drivers and add boot command line support.

2016-04-20 Thread Chris Johns
Update the pc386 to use the BSP's console drivers. Fix the gdb stub support to allow connecting while running if the UART interrupts are usable. Add IO and memory support to the PCI UART drivers. Change the boot command line to use the full device path.