Re: [PATCH 2/2] Update rtems-default to gcc 6.20160327 and newlib-2.4.0

2016-04-03 Thread Nick Withers
On Sun, 2016-04-03 at 14:11 -0500, Joel Sherrill wrote: > --- >  rtems/config/4.12/rtems-default.bset   |  2 +- >  .../tools/rtems-gcc-6-20160327-newlib-2.4.0-1.cfg  | 22 > ++ >  2 files changed, 23 insertions(+), 1 deletion(-) >  create mode 100644 rtems/config/tool

Re: Fwd: [Bug debug/65779] [5 Regression] undefined local symbol on powerpc [regression]

2016-02-10 Thread Nick Withers
On Wed, 2016-02-10 at 13:17 -0600, Joel Sherrill wrote: > It looks like the PowerPC bug in GCC about local symbols is fixed. > > Should we bump gcc to a git tag or the next snapshot? We already have. See https://lists.rtems.org/pipermail/devel/2016-January/013461.html and ht tps://git.rtems.org/

[Fwd: Re: [PATCH] grp.h: use __BSD_VISIBLE and __XSI_VISIBLE guards]

2016-01-29 Thread Nick Withers
FYI, in case I'm full of it :-P RTEMS Shell uses a group_from_gid(), but rolls its own. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) Forwarded Me

Re: Fwd: [Bug debug/65779] [5/6 Regression] undefined local symbol on powerpc [regression]

2016-01-24 Thread Nick Withers
g |jakub at > > gcc > > dot gnu.org > > > > --- Comment #15 from Jakub Jelinek --- > > Created attachment 37389 > > --> > > https://gcc.gnu.org/bugzilla/attachment.cgi?id=37389&action=edit > > gcc6-pr65779.patch > > > > U

BSP confdefs.h requirements

2016-01-19 Thread Nick Withers
Hi y'all, https://git.rtems.org/rtems/commit/?id=bb291a4a87d3b3212999eddfa6f3b4cd 5eea4032 ...I still hate that this is a thing (see https://lists.rtems.org/pipermail/users/2013-August/026957.html ). Is there anything I can do or help I can lend to making this better? -- Nick Wi

Re: RFC: Minimizing stack sizes on tests

2016-01-16 Thread Nick Withers
ow B. I'm not really sure if it always recurses though, to be honest. The doco (https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Warning-Options.html )'s a bit sparse... Oh, and it isn't too great when unoptimised on constructs like 'char buffer[strlen("bam")]' where it do

Re: [PATCH] Chase Newlib sys/select.h changes

2015-12-20 Thread Nick Withers
lo Nick, > > > > this patch needs an update once this is committed to Newlib: > > > > https://sourceware.org/ml/newlib/2015/msg00905.html > > > > On 10/12/15 10:04, Nick Withers wrote: > > > Hi all, > > > > > > Attached is a patch for

Re: Problem with system time in lpc176x bsp

2015-12-18 Thread Nick Withers
n something like this in any other bsp? Yep, this sounds familiar... See https://devel.rtems.org/ticket/2230 (pre-timecounter changes) and https://devel.rtems.org/ticket/2356 (post-). -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engin

Breaking master [Was: [PATCH] Chase Newlib sys/select.h changes]

2015-12-10 Thread Nick Withers
Hullo again, On Thu, 2015-12-10 at 20:04 +1100, Nick Withers wrote: > Hi all, > > Attached is a patch for master similar to that I posted to the Newlib > mailing list in https://sourceware.org/ml/newlib/2015/msg00888.html * > . > > It chases Newlib changes to sys/types

[PATCH] Chase Newlib sys/select.h changes

2015-12-10 Thread Nick Withers
I ran into troubles with dl02 which I'll look into separately -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C)From 1e033ef3f37c58f0d03b0c92e72ef42eb1e98254 Mon Sep 17 00:0

Re: [PATCH] CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checked

2015-10-20 Thread Nick Withers
hem all I don't really need to know :-) > On 10/20/2015 5:41 PM, Nick Withers wrote: > > A couple of doco typos... > > > > On Tue, 2015-10-20 at 14:47 -0500, Joel Sherrill wrote: > > > closes #2431. > > > --- > > > cpukit/sapi/include/confdefs.

Re: [PATCH] CONFIGURE_IMFS_MEMFILE_BYTES_PER_BLOCK was undocumented and not error checked

2015-10-20 Thread Nick Withers
le "are" there. > +between 16 and 512 inclusively. In other words, valid values are 16, > +32, 64, 128, 257,and 512. "257,and" -> "256 and". Since I'm here, I'd say "inclusive" rather than "inclusively" too, but maybe that's jus

Re: [PATCH] [NFS client] Respect 2^32 - 1 B NFSv2 maximum file size

2015-08-05 Thread Nick Withers
Like this? Applies to at least master and 4.11. On Tue, 2015-08-04 at 10:37 -0400, Gedare Bloom wrote: > Can you file a ticket and refer/close it with the commit message? What > versions should this be applied to? > > On Mon, Aug 3, 2015 at 9:51 PM, Nick Withers wrote: > > H

[PATCH] [NFS client] Respect 2^32 - 1 B NFSv2 maximum file size

2015-08-03 Thread Nick Withers
Hi all, The attached patch teaches the NFS client to respect the 2^32 - 1 B NFSv2 file size limit. Without this patch accesses to offsets at or above 4 GiB would silently be remapped to the mod 4 2^32 location. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research

Re: Issues on FreeBSD

2015-07-23 Thread Nick Withers
On Thu, 2015-07-23 at 03:20 -0500, Joel Sherrill wrote: > > On 7/23/2015 3:17 AM, Nick Withers wrote: > > On Thu, 2015-07-23 at 02:50 -0500, Joel Sherrill wrote: > >> Hi > >> > >> I was test building on FreeBSD and noticed a couple of issues. > >>

Re: Issues on FreeBSD

2015-07-23 Thread Nick Withers
(the /usr/bin/perl -> /usr/local/bin/perl link was removed recently). 'Course that drops the "-w" flag for extra warnings. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering

Re: Using tar to access files

2015-06-29 Thread Nick Withers
On Tue, 2015-06-30 at 10:09 +0530, Sujay Raj wrote: > I need to access configurations files the for web server I am porting to > rtems. > > I create a tar archive , that contains the required folders and files , > convert it into c source using rtems-bin2c , ( a header file and a c source > ) and

Re: Error while compiling rtems main branch for sparc

2015-05-31 Thread Nick Withers
Does re-running bootstrap in the source dir and re-configuring sort it? -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) On Sun, 2015-05-31 at 20:31 -0400, Joel Sherrill

Re: [PATCH] Don't fail to create passwd and group files if /etc already exists

2015-02-20 Thread Nick Withers
/rtems/commit/?id=3211e8e9c0565fae8b13ba0115e3a23ad3ae8ade Would chucking a (void) in front of the mkdir() shut Coverity up? -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) &g

[PATCH] Don't fail to create passwd and group files if /etc already exists

2015-02-19 Thread Nick Withers
rp_init(). The attached patch allows the mkdir() call to fail with EEXIST. Cheers! -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) From 8d0ffbc271326c64138181b895574db5e8e702ef M

Re: Obscure crashes due to gcc 4.9 -O2 => -fisolate-erroneous-paths-dereference

2015-02-18 Thread Nick Withers
On Wed, 2015-02-18 at 14:25 -0600, Joel Sherrill wrote: > > On 2/18/2015 2:05 PM, Gedare Bloom wrote: > > > > > > > On Wed, Feb 18, 2015 at 2:38 PM, Joel Sherrill > > wrote: > > Hi > > > > I am trying to wrap my head around this discussion and its > > impact o

Re: Starting with RTEMS

2015-02-16 Thread Nick Withers
On Mon, 2015-02-16 at 22:57 +0530, Rohini Kulkarni wrote: > Hi, > > > I am trying to build RTEMS for arm. I want to know what --enable > -rtemsbsp in config does, when building RTEMS. Hi Rohini! It selects which Board Support Package(s) (BSP(s)) you'd like to compile RTEMS for - or, if you pref

Re: [PATCH 1/3] Add rtems_filesystem_make_dev_t_from_pointer()

2015-02-04 Thread Nick Withers
ointer) >> 1); > >>> > > > >>> > > > >>> > >Sorry the irrelevant detail, but may I ask why not > >>> > > > >>> > > (((uint64_t)1) << 63) ... > >>> > > > >>> > >? > >>> > > > >> >Or (1UL << 63) > > It could be 1ULL, but AFAIK it is platform-dependent, so I preferred > > the explicit cast. > > > > Yes, 1UL is wrong. Nice would be UINT64_C(1), but this is not available > in all C++ versions. I change it to the cast, but I don't think it > really matters. Since we're on the topic... ((uint64_t) 1U << 63) is my preferred scheme, and makes no assumptions about widths (well, other than uint64_t :-P). Just my $AU0.02 :-) -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics Research School of Physics and Engineering The Australian National University ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: Question on all SPARC BSP get nanoseconds handler

2015-02-02 Thread Nick Withers
pment > joel.sherr...@oarcorp.comOn-Line Applications Research > Ask me about RTEMS: a free RTOS Huntsville AL 35805 > Support Available(256) 722-9985 -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics Research School of Physics and Engin

Re: Add an --enable-httpd-websocket configure option to enable WebSocket in the Mongoose HTTP server

2014-12-14 Thread Nick Withers
On Thu, 2014-12-11 at 08:25 +0100, Sebastian Huber wrote: > Hello Nick, > > this looks good, except that > > On 10/12/14 06:05, Nick Withers wrote: > > + for (pos = response; response + sizeof (response) - pos && (size = > > read(ctx->socket, pos, respons

Re: [PATCH] Correct a race condition between the e500 core decrementer wrapping and the tick interrupt being handled

2014-12-14 Thread Nick Withers
On Fri, 2014-12-12 at 08:02 +0100, Sebastian Huber wrote: > On 12/12/14 03:18, Nick Withers wrote: > > On Wed, 2014-12-10 at 08:42 +0100, Sebastian Huber wrote: > >> On 10/12/14 02:53, Nick Withers wrote: > >>> On Wed, 2014-12-03 at 08:09 +0100, Sebastian

Re: [PATCH] Correct a race condition between the e500 core decrementer wrapping and the tick interrupt being handled

2014-12-11 Thread Nick Withers
On Wed, 2014-12-10 at 08:42 +0100, Sebastian Huber wrote: > On 10/12/14 02:53, Nick Withers wrote: > > On Wed, 2014-12-03 at 08:09 +0100, Sebastian Huber wrote: > >> Hello Nick, > >> > >> to disable TCR[ARE] is not the right fix. You have to check the >

Re: [PATCH] Teach rtems_tarfs_load() about symlinks

2014-12-09 Thread Nick Withers
On Wed, 2014-12-10 at 16:34 +1100, Nick Withers wrote: > On Wed, 2014-12-03 at 08:23 +0100, Sebastian Huber wrote: > > > > On 03/12/14 07:07, Nick Withers wrote: > > > > > Anyone be interested in committing this? > > > > > > On Fri, 2014-03-07

Re: [PATCH] Teach rtems_tarfs_load() about symlinks

2014-12-09 Thread Nick Withers
On Wed, 2014-12-03 at 08:23 +0100, Sebastian Huber wrote: > > On 03/12/14 07:07, Nick Withers wrote: > > > Anyone be interested in committing this? > > > > On Fri, 2014-03-07 at 14:37 +1100, Nick Withers wrote: > > > > Hi all, > > > > > >

Re: Add an --enable-httpd-websocket configure option to enable WebSocket in the Mongoose HTTP server

2014-12-09 Thread Nick Withers
On Wed, 2014-12-03 at 08:12 +0100, Sebastian Huber wrote: > On 03/12/14 08:05, Nick Withers wrote: > > On Wed, 2014-12-03 at 07:48 +0100, Sebastian Huber wrote: > >> >Hello Nick, > >> > > >> >what is the benefit of providing this WebSocket stuff? > &

Re: [PATCH] Correct a race condition between the e500 core decrementer wrapping and the tick interrupt being handled

2014-12-09 Thread Nick Withers
quot;. Cool bananas. But what if it's called again with the same interrupt still pending? The timer counter may have wrapped again and we could return an earlier time. ...Couldn't we? What am I missing? Cheers :-) -- Nick Withers Embedded Systems Programmer Department of Nuclear Physic

Re: Add an --enable-httpd-websocket configure option to enable WebSocket in the Mongoose HTTP server

2014-12-04 Thread Nick Withers
Understood - I'll post a new patch with a test case (thanks for being on top of such things!). (Sorry about the formatting...) From: Sebastian Huber Sent: Wednesday, 3 December 2014 6:12 PM To: Nick Withers Cc: rtems-de...@rtems.org Subject: Re: A

Re: Add an --enable-httpd-websocket configure option to enable WebSocket in the Mongoose HTTP server

2014-12-02 Thread Nick Withers
cally served just wouldn't be workable with this application. Does that make sense? Perhaps I should shoot you off some examples of where I use it? -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National Unive

Re: [PATCH] Move the flash size probe into bankValidate() - averts potential fatal exception

2014-12-02 Thread Nick Withers
Ping :-) I *think* this particular one can be reviewed without PowerPC / flash-specific knowledge. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) On Wed, 2014-02-12 at 10

Re: Add an --enable-httpd-websocket configure option to enable WebSocket in the Mongoose HTTP server

2014-12-02 Thread Nick Withers
On Thu, 2014-01-02 at 10:45 +1100, Nick Withers wrote: > On Thu, 2013-12-19 at 15:38 +1100, Nick Withers wrote: > > Hi all, > > > > The attached patch adds an "--enable-httpd-websocket" configure option > > to enable WebSocket (see http://www.websocket.o

Re: [PATCH] Teach rtems_tarfs_load() about symlinks

2014-12-02 Thread Nick Withers
Anyone be interested in committing this? On Fri, 2014-03-07 at 14:37 +1100, Nick Withers wrote: > Hi all, > > The attached patch teaches rtems_tarfs_load() about symlinks, as well as > making it fail if it encounters an unsupported tar file entry type > (e.g., hard links) rathe

Re: [PATCH] Correct a race condition between the e500 core decrementer wrapping and the tick interrupt being handled

2014-12-02 Thread Nick Withers
Just a ping... I reckon It'd be nice to get this in before 4.11 :-) On Fri, 2014-11-14 at 12:08 +1100, Nick Withers wrote: > Hi all, > > Please find attached a patch to close a race between the e500 PowerPC > decrementer wrapping and the associated tick interrupt handler

Re: [PATCH] more data structures public in mongoose.h

2014-11-19 Thread Nick Withers
rt()) in Mongoose callbacks. You don't need to have the definition of struct mg_connection exposed for this scenario, at least. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engin

[PATCH] Correct a race condition between the e500 core decrementer wrapping and the tick interrupt being handled

2014-11-13 Thread Nick Withers
, the spnsext01 test passes on the MVME3100. -- Nick Withers Embedded Systems Programmer Department of Nuclear Physics, Research School of Physics and Engineering The Australian National University (CRICOS: 00120C) >From 9c21d107fa7fc109663f97d4a07fbc7f184d02bd Mon Sep 17 00:00:00 2001 From: N

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

2014-09-09 Thread Nick Withers
On Tue, 2014-09-09 at 16:59 +1000, Nick Withers wrote: > On Tue, 2014-09-09 at 08:52 +0200, Sebastian Huber wrote: > > 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

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

2014-09-09 Thread Nick Withers
On Tue, 2014-09-09 at 08:52 +0200, Sebastian Huber wrote: > 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 header file used for the atomic > >> >operations. > > "-

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

2014-09-08 Thread Nick Withers
R_TARGET], > [ > AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl > AC_REQUIRE([RTEMS_ENABLE_CXX]) > +RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) > > # If CXXFLAGS is not set, default to CFLAGS > -CXXFLAGS=${CXXFLAGS-${CFLAGS}} > +if test x"$rtems_cv_RTEMS_SMP" = x&quo