Re: general comments on sysiinit patches

2016-01-26 Thread Sebastian Huber
On 26/01/16 17:28, Sebastian Huber wrote: Executable sizes for the SPARC/SIS minimum.exe. || ||= Text =||= Data =||= BSS =||= Workspace =||= Non-Text =|| ||= 4.9=|| 45808 || 2324 || 2708 ||3288 || 8320 || ||= 4.10 =|| 30032 || 1300 || 1296 ||

Re: general comments on sysiinit patches

2016-01-26 Thread Sebastian Huber
On 26/01/16 17:02, Sebastian Huber wrote: + Do you have any size metrics for current --disable-posix on a BSP with function sections enabled versus this new way? No, I was not interested in this comparison since my goal is to always enable POSIX in the long run. The size will drop a bit.

Re: general comments on sysiinit patches

2016-01-26 Thread Sebastian Huber
On 26/01/16 16:51, Joel Sherrill wrote: Hi I have questions that probably impact all/most of the patches so thought I would start another thread. Then it is just detailed review of the individual patches. + We have used EXTERN to avoid duplicating extern and instantiating data. You appear t

general comments on sysiinit patches

2016-01-26 Thread Joel Sherrill
Hi I have questions that probably impact all/most of the patches so thought I would start another thread. Then it is just detailed review of the individual patches. + We have used EXTERN to avoid duplicating extern and instantiating data. You appear to have completely removed that pattern with no

[PATCH 21/38] Optional POSIX Mutex initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/muteximpl.h | 11 ++- cpukit/posix/src/mutex.c | 13 - cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c

[PATCH 23/38] Optional POSIX Semaphore initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/semaphoreimpl.h | 9 + cpukit/posix/src/semaphore.c | 11 ++- cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/in

[PATCH 01/38] Statically initialize _Objects_Information_table

2016-01-26 Thread Sebastian Huber
--- cpukit/sapi/src/exinit.c | 19 +-- cpukit/sapi/src/posixapi.c| 8 cpukit/sapi/src/rtemsapi.c| 8 cpukit/score/include/rtems/score/objectimpl.h | 2 +- 4 files changed, 14 insertions(+), 23 deletio

[PATCH 35/38] Use linker set for MPCI initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- .../lib/libbsp/powerpc/beatnik/startup/bspstart.c | 3 - .../lib/libbsp/powerpc/mvme5500/startup/bspstart.c | 1 - cpukit/sapi/Makefile.am| 1 - cpukit/sapi/include/rtems/config.h | 11 +++- cpukit/sapi/include/rtems/init.h

[PATCH 38/38] Delete unused API extensions

2016-01-26 Thread Sebastian Huber
--- c/src/lib/libbsp/i386/shared/irq/irq.c | 1 - c/src/lib/libbsp/powerpc/mvme5500/irq/BSP_irq.c| 1 - c/src/lib/libcpu/powerpc/mpc5xx/irq/irq.c | 1 - .../libcpu/powerpc/new-exceptions/bspsupport/irq.c | 1 - .../new-exceptions/bspsupport/ppc_exc_hdl.c| 1 -

[PATCH 32/38] Use atexit() handler to close std file descriptors

2016-01-26 Thread Sebastian Huber
--- cpukit/libcsupport/include/rtems/libio.h | 2 -- cpukit/libcsupport/src/newlibc_exit.c | 3 --- cpukit/libcsupport/src/open_dev_console.c | 3 +++ cpukit/sapi/include/confdefs.h| 7 --- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/cpukit/libcsupport/incl

[PATCH 26/38] Optional POSIX RWLock initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/rwlockimpl.h | 10 +- cpukit/posix/src/prwlock.c| 11 ++- cpukit/sapi/src/posixapi.c| 2 -- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c

[PATCH 08/38] Optional Classic Event initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/eventimpl.h | 12 --- cpukit/rtems/src/event.c | 32 cpukit/rtems/src/eventseize.c| 14 cpukit/sapi/src/rtem

[PATCH 34/38] Use linker set for driver manager initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/libdrvmgr/drvmgr.c| 90 cpukit/sapi/src/exinit.c | 58 --- cpukit/score/include/rtems/sysinit.h | 9 +++- 3 files changed, 97 insertions(+), 60 deletions(-) diff --git a/cpukit/libdrvmgr/drv

[PATCH 27/38] Optional POSIX Spinlock initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/spinlockimpl.h | 10 +- cpukit/posix/src/pspin.c| 11 ++- cpukit/sapi/src/posixapi.c | 5 - cpukit/score/include/rtems/sysinit.h| 1 + testsuites/sptests/spsysinit01/in

[PATCH 33/38] Use linker set for libio initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- c/src/lib/libbsp/Makefile.am | 2 +- c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am | 2 -- c/src/lib/libbsp/arm/atsam/Makefile.am | 2 -- c/src/lib/libbsp/arm/beagle/Makefile.am| 2 -- c/src/lib/libbsp/arm/csb336/Makefile.am

[PATCH 37/38] Use linker set for POSIX User Threads init

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/pthreadimpl.h | 9 cpukit/posix/src/pthread.c | 24 cpukit/sapi/include/confdefs.h | 9 cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysini

[PATCH 13/38] Optional Classic Dual-Ported Memory initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/dpmemimpl.h | 19 +-- cpukit/rtems/src/dpmem.c | 13 ++--- cpukit/rtems/src/dpmemdata.c | 24 cpukit/sapi/src

[PATCH 36/38] Use linker set for Classic User Tasks init

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/include/rtems/rtems/tasks.h | 9 - cpukit/rtems/src/tasks.c | 16 cpukit/sapi/include/confdefs.h | 9 + cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c| 14 +++

[PATCH 19/38] Optional POSIX Cleanup initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/Makefile.am | 4 +- cpukit/posix/include/rtems/posix/cancel.h| 13 - cpukit/posix/include/rtems/posix/threadsup.h | 4 -- cpukit/posix/src/cancelrun.c | 50 -- cpukit/posix/src/cleanuppop.c

[PATCH 31/38] Use linker set for root file system initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/libcsupport/include/rtems/libio.h | 2 -- cpukit/libcsupport/src/libio_init.c | 5 - cpukit/sapi/include/confdefs.h | 11 ++- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c| 24 +++

[PATCH 14/38] Optional Classic Rate Monotonic initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/ratemonimpl.h | 21 + cpukit/rtems/src/ratemon.c | 13 ++--- cpukit/rtems/src/ratemondata.c | 24 cpuki

[PATCH 24/38] Optional POSIX Timer initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/ptimer.h| 7 --- cpukit/posix/include/rtems/posix/timerimpl.h | 9 + cpukit/posix/src/ptimer.c| 11 ++- cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sysinit.h

[PATCH 11/38] Optional Classic Partition initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am| 1 - cpukit/rtems/include/rtems/rtems/partimpl.h | 21 + cpukit/rtems/src/part.c | 13 ++--- cpukit/rtems/src/partdata.c | 24 cpukit/sapi/src/r

[PATCH 28/38] Optional CPU Set Handler initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/sapi/src/exinit.c | 3 --- cpukit/score/include/rtems/score/cpusetimpl.h | 12 cpukit/score/include/rtems/sysinit.h | 1 + cpukit/score/src/cpuset.c | 9 - doc/user/init.t

[PATCH 17/38] Optional POSIX Signals initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/psignalimpl.h | 5 cpukit/posix/src/psignal.c | 9 ++- cpukit/sapi/src/posixapi.c | 1 - cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c | 36

[PATCH 25/38] Optional POSIX Barrier initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/barrierimpl.h | 10 +- cpukit/posix/src/pbarrier.c| 11 ++- cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit01/init.c

[PATCH 30/38] posix: Delete empty _POSIX_API_Initialize()

2016-01-26 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/posixapi.h | 8 cpukit/sapi/src/exinit.c| 7 --- cpukit/sapi/src/posixapi.c | 24 cpukit/score/include/rtems/score/basedefs.h | 14 -- 4 files changed, 53 deletions(-) dif

[PATCH 29/38] Optional POSIX Keys initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/Makefile.am | 2 +- cpukit/posix/include/rtems/posix/keyimpl.h | 27 +- cpukit/posix/src/key.c | 69 +++- cpukit/posix/src/keyrundestructors.c | 84 -- cpukit/rtems/s

[PATCH 16/38] rtems: Delete empty _RTEMS_API_Initialize()

2016-01-26 Thread Sebastian Huber
--- cpukit/rtems/Makefile.am| 1 - cpukit/rtems/include/rtems/rtems/rtemsapi.h | 37 - cpukit/rtems/preinstall.am | 4 cpukit/rtems/src/taskinitusers.c| 1 - cpukit/sapi/Makefile.am | 2 +- cp

[PATCH 20/38] Optional POSIX Condition Variable initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/condimpl.h | 9 + cpukit/posix/src/cond.c | 11 ++- cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sysinit.h| 1 + testsuites/sptests/spsysinit01/init.c | 17

[PATCH 09/38] Optional Classic Message Queue initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/messageimpl.h | 19 +-- cpukit/rtems/src/msg.c | 16 ++-- cpukit/rtems/src/msgdata.c | 25 - cpu

[PATCH 07/38] Optional Classic Signal initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/signalimpl.h | 9 -- cpukit/rtems/src/signal.c | 45 --- cpukit/rtems/src/signalcatch.c| 17 ++ cpukit/sapi/src/rtemsapi

[PATCH 15/38] Optional Classic Barrier initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/barrierimpl.h | 23 +-- cpukit/rtems/src/barrier.c | 11 ++- cpukit/rtems/src/barrierdata.c | 26 -- cpu

[PATCH 02/38] score: Create idle threads via linker set

2016-01-26 Thread Sebastian Huber
This allows a more fine grained rtems_initialize_data_structures(). Update #2408. --- cpukit/sapi/src/exinit.c | 30 +++--- cpukit/score/include/rtems/sysinit.h | 1 + cpukit/score/src/threadcreateidle.c | 3 ++ testsuites/sptests/spsysinit01/init.c | 76

[PATCH 22/38] Optional POSIX Message Queue initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/mqueueimpl.h | 23 ++- cpukit/posix/src/mqueue.c | 13 - cpukit/sapi/src/posixapi.c| 2 -- cpukit/score/include/rtems/sysinit.h | 1 + testsuites/sptests/spsysinit0

[PATCH 06/38] Optional Classic Timer initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/timerimpl.h | 23 ++- cpukit/rtems/src/rtemstimer.c| 22 -- cpukit/rtems/src/rtemstimerdata.c| 23 --- cpu

[PATCH 03/38] Optional Initial Extensions initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/sapi/include/confdefs.h| 8 cpukit/sapi/src/exinit.c | 2 -- cpukit/score/include/rtems/sysinit.h | 3 ++- cpukit/score/src/threaddispatch.c | 2 ++ cpukit/score/src/userext.c| 23 --- doc/user/init.t

[PATCH 12/38] Optional Classic Region initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/regionimpl.h | 25 + cpukit/rtems/src/region.c | 13 ++--- cpukit/rtems/src/regiondata.c | 24 cpuki

[PATCH 04/38] Optional Extensions initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/sapi/Makefile.am | 2 +- cpukit/sapi/include/rtems/extensionimpl.h | 13 + cpukit/sapi/src/exinit.c | 2 -- cpukit/sapi/src/extension.c | 16 +++- cpukit/sapi/src/extensiondata.c | 25

[PATCH 05/38] Optional Classic Tasks initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/tasksimpl.h | 21 + cpukit/rtems/src/taskdata.c | 25 - cpukit/rtems/src/tasks.c | 11 ++- cpukit/sapi/sr

Linker set based initialization

2016-01-26 Thread Sebastian Huber
This patch set implements fine grained linker set based initialization. The basic framework is already in place for several weeks. See ticket https://devel.rtems.org/ticket/2408 for the details. The individual patches contain mostly mechanical changes. There are virtually no changes in the test

[PATCH 10/38] Optional Classic Semaphore initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/rtems/Makefile.am | 1 - cpukit/rtems/include/rtems/rtems/semimpl.h | 24 +--- cpukit/rtems/src/sem.c | 15 +-- cpukit/rtems/src/semdata.c | 24 cpukit/sapi/src/

[PATCH 18/38] Optional POSIX Threads initialization

2016-01-26 Thread Sebastian Huber
Update #2408. --- cpukit/posix/include/rtems/posix/pthreadimpl.h | 9 + cpukit/posix/src/killinfo.c| 12 ++-- cpukit/posix/src/pthread.c | 11 ++- cpukit/sapi/src/posixapi.c | 2 -- cpukit/score/include/rtems/sys