Commit Graph

31674 Commits

Author SHA1 Message Date
Sebastian Huber
0a593c2d3f ftpd: Use self-contained synchronization objects
Update #2843.
2018-02-07 08:58:30 +01:00
Sebastian Huber
a59a61828b libblock: Use self-contained mutex for media
Update #2843.
2018-02-07 08:58:30 +01:00
Sebastian Huber
868ca746c2 libblock: Use self-contained mutex for sparse disk
Update #2843.
2018-02-07 08:58:29 +01:00
Sebastian Huber
f9027ccfd3 libblock: Use self-contained mutex for flashdisk
Update #2843.
2018-02-07 08:58:29 +01:00
Sebastian Huber
c8d5bed13c libblock: Use self-contained mutex for nvdisk
Update #2843.
2018-02-07 08:58:29 +01:00
Sebastian Huber
e16111b2cf NFS: Fix use of self-contained objects
Update #2843.
2018-02-07 08:58:22 +01:00
Joel Sherrill
ea7f4a0ca1 sparc/*/linkcmds*: Move ENTRY() from linkcmds.base to top linkcmds
This was at the request of a user to make it easier to have a
custom entry point. This way they just provide their own top
level linkcmds and include linkcmds.base.

Updates #3520.
2018-02-05 10:35:08 -06:00
Sebastian Huber
3454179dee bsp/altera-cyclone-v: Add device tree support
Update #3290.
2018-02-05 13:55:24 +01:00
Sebastian Huber
0f4a7391bb bsps/powerpc: Remove support for mpc505
Close #3270.
2018-02-05 11:45:17 +01:00
Sebastian Huber
53b6484d38 termios: Remove obsolete configuration options
Update #2843.
2018-02-05 09:57:45 +01:00
Sebastian Huber
4ac5ffbb83 fsclose01: Add tmpfile() test case
Close #1971.
2018-02-05 09:31:32 +01:00
Sebastian Huber
03e5a7800d NFS: Use self-contained recursive mutex
Update #2843.
2018-02-02 15:01:23 +01:00
Sebastian Huber
8ddd92d56a pipe: Use self-contained mutex
Update #2843.
2018-02-02 15:01:23 +01:00
Sebastian Huber
0940648f6f RFS: Use self-contained recursive mutex
Update #2843.
2018-02-02 15:01:22 +01:00
Sebastian Huber
3b77417ba7 dosfs: Use self-contained recursive mutex
Update #2843.
2018-02-02 15:01:22 +01:00
Sebastian Huber
b17bcb3855 JFFS2: Use self-contained recursive mutex
Update #2843.
2018-02-02 15:01:22 +01:00
Sebastian Huber
16fc3f9a54 network: Use self-contained recursive mutex
Update #2843.
2018-02-02 15:01:22 +01:00
Sebastian Huber
36304f3d7a spi: Use self-contained mutex
Update #2843.
2018-02-02 15:01:21 +01:00
Sebastian Huber
dc158ad4ec i2c: Use self-contained mutex
Update #2843.
2018-02-02 15:01:21 +01:00
Sebastian Huber
2c12262f9a termios: Use self-contained objects
Update #2840.
2018-02-02 15:01:21 +01:00
Sebastian Huber
8d7f36807c libblock: Use self-contained mutex and cond var
Update #2843.
2018-02-02 15:01:21 +01:00
Sebastian Huber
1b2da177ef libblock: Use self-contained mutex for disk lock
Update #2843.
2018-02-02 15:01:21 +01:00
Sebastian Huber
f14a04c6ef Add RTEMS thread API
Update #2843.
2018-02-02 15:01:20 +01:00
Sebastian Huber
8fa4549eb2 posix: Use one second based CLOCK_MONOTONIC
This simplifies the CLOCK_MONOTONIC based time services.  It is
potentially important for libbsd.

Close #3265.
2018-02-02 15:01:20 +01:00
Sebastian Huber
9480815a22 score: Introduce new monotonic clock
Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS.  Add new
PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured
by timecounter).

Close #3264.
2018-02-02 15:01:20 +01:00
Sebastian Huber
3a4e044e64 score: Rename _Watchdog_Realtime_from_*()
Rename _Watchdog_Realtime_from_*() to _Watchdog_Ticks_from_*().

Update #3264.
2018-02-02 15:01:20 +01:00
Sebastian Huber
89c0313938 score: Optimize watchdog tickle
Avoid unnecessary lock acquire/release operations.  Get realtime via
timecounter only if necessary.

Update #3264.
2018-02-02 15:01:20 +01:00
Sebastian Huber
0c5d22f509 smptests/smpopenmp01: New test 2018-02-02 15:01:19 +01:00
Sebastian Huber
d71d1da508 spsyslock01: Fix object compare
Due to structure internal padding the use of memcmp() may lead to
sporadic test failures.

Update #3082.
2018-02-02 15:01:19 +01:00
Sebastian Huber
c1c71cdfcc sp20: Fix print buffer size
There were two issues:

1. The buffer size must be divisible by 8 on 64-bit targets

2. It must be large enough to service the begin of start message.

Update #3082.
2018-02-02 15:00:28 +01:00
Sebastian Huber
cf56b18af1 smpschededf01: Use rtems_test_busy_cpu_usage()
The rtems_test_busy() is not accurate enough and may lead to sporadic
test failures.
2018-02-02 07:50:19 +01:00
Sebastian Huber
1e483a62ea test: Add rtems_test_busy_cpu_usage() 2018-02-02 07:48:49 +01:00
Sebastian Huber
63fab5aaf9 smpschedaffinity04: Fix configuration 2018-02-02 07:48:49 +01:00
Sebastian Huber
c9aba80bad smpcapture01: Fix configuration 2018-02-02 07:48:48 +01:00
Sebastian Huber
5f0a637677 bsp/leon3: Do not use internal cache API
Update #3285.
2018-02-02 07:08:37 +01:00
Chris Johns
05015dc188 Xilinx AXI I2C driver IP race condition causes clock glitch.
Setting the PIRQ to 0 before reading the data produces a short clock pulse.
Moving the write to after reading the data fixes the issue.

Close #3173
2018-02-01 14:59:55 +11:00
Sebastian Huber
4cf93658ef bsps: Rework cache manager implementation
The previous cache manager support used a single souce file
(cache_manager.c) which included an implementation header (cache_.h).
This required the use of specialized include paths to find the right
header file.  Change this to include a generic implementation header
(cacheimpl.h) in specialized source files.

Use the following directories and files:

* bsps/shared/cache

* bsps/@RTEMS_CPU@/shared/cache

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILY/start/cache.c

Update #3285.
2018-01-31 12:49:09 +01:00
Sebastian Huber
d8d6a08d46 bsps: Move network define to source files
Define __INSIDE_RTEMS_BSD_TCPIP_STACK__ in the network interface driver
source files to avoid some build system magic.
2018-01-31 11:18:17 +01:00
Sebastian Huber
1c64c68896 epiphany: Workaround until next Newlib snapshot
At least with Binutils 2.30 and GCC 7.3 we need symbol definitions
without the leading underscore.

Fixed in Newlib 1658a57715de93d50983f34e75216101eb373993.
2018-01-31 11:17:22 +01:00
Sebastian Huber
9819425fee epiphany: Fixes for GCC 7.3
GCC 7.3 defines __USER_LABEL_PREFIX__ to nothing.
2018-01-31 08:03:30 +01:00
Sebastian Huber
865b30279a Avoid Newlib-specific _EXFUN() 2018-01-29 13:53:55 +01:00
Sebastian Huber
bc96f3b4b8 ada: Introduce RTEMS.Size type
Some time ago the Classic API object size related parameters were
changed to use size_t.  Reflect this in the Ada bindings.

Update #3082.
2018-01-29 06:58:28 +01:00
Sebastian Huber
d8de6b9dbe ada: Fix RTEMS.Time_t
Update #3111.
2018-01-29 06:58:27 +01:00
Chris Johns
2afb22b7e1 Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step.  It
copied header files from arbitrary locations into the build tree.  The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

* The make preinstall step itself needs time and disk space.

* Errors in header files show up in the build tree copy.  This makes it
  hard for editors to open the right file to fix the error.

* There is no clear relationship between source and build tree header
  files.  This makes an audit of the build process difficult.

* The visibility of all header files in the build tree makes it
  difficult to enforce API barriers.  For example it is discouraged to
  use BSP-specifics in the cpukit.

* An introduction of a new build system is difficult.

* Include paths specified by the -B option are system headers.  This
  may suppress warnings.

* The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step.   All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc.  Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

* cpukit/include

* cpukit/score/cpu/@RTEMS_CPU@/include

* cpukit/libnetworking

The new BSP include directories are:

* bsps/include

* bsps/@RTEMS_CPU@/include

* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed.  The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.
2018-01-25 08:45:26 +01:00
Christian Mauderer
9704efb4ec MAINTAINERS: Add myself to Write After Approval. 2018-01-23 11:19:51 +01:00
Sebastian Huber
6bb9b3df7b rfs: Fix format warning
Update #3082.
2018-01-23 08:00:26 +01:00
Sebastian Huber
469fdebf25 bsp/qoriq: Fix define for optional intercom
Update #3085.
2018-01-23 07:28:51 +01:00
Sebastian Huber
5fb838d181 rfs: Fix for 64-bit targets
The RTEMS_BLKIO_SETBLKSIZE IO control expects an uint32_t parameter and
not a size_t which is 64-bits on 64-bit targets.

Update #3082.
2018-01-22 15:24:13 +01:00
Sebastian Huber
0349a2b544 cdtest: Increase stack size 2018-01-22 15:24:13 +01:00
Sebastian Huber
990235d960 psxchroot01: Force release of global locations
Free deferred locations before the greedy memory allocation.  This test
fails on powerpc/qoriq_e6500_64 otherwise.
2018-01-22 15:24:13 +01:00