Commit Graph

191 Commits

Author SHA1 Message Date
Christian Mauderer
bf7070232f dev/sc16is752: Add GPIO access via ioctl. 2018-02-12 14:36:23 +01:00
Sebastian Huber
2fd3111708 stdio-redirector: Use self-contained mutex
Update #2843.
2018-02-07 08:58:31 +01:00
Sebastian Huber
d9800ac58d libdl: Use self-contained recursive mutex
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
53b6484d38 termios: Remove obsolete configuration options
Update #2843.
2018-02-05 09:57:45 +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
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
1e483a62ea test: Add rtems_test_busy_cpu_usage() 2018-02-02 07:48:49 +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
Chris Johns
2a21c80299 Include rtems/bspIo.h for printk.
Closes @3267.
2018-01-04 11:54:35 +01:00
Sebastian Huber
241fc046a7 zlib: Do not generate zconf.h
Update #3254.
2017-12-13 09:25:55 +01:00
Sebastian Huber
3f575da2f2 Remove obsolete network header files
Update #3254.
2017-12-07 07:23:59 +01:00
Sebastian Huber
5e05fa0f7b ada: Fix user extension support 2017-12-01 15:21:34 +01:00
Martin Erik Werner
ab304f4def rtems/inttypes: Clarify hexadecimal in comments
Update comments to reflect that PRIxblksize_t PRIxblkcnt_t is
hexadecimal, not decimal.

Signed-off-by: Martin Erik Werner <martin.werner@aacmicrotec.com>
2017-11-29 09:28:59 -06:00
Sebastian Huber
642ef003ec bsps: Provide <tm27.h> in each BSP
Since the <tm27.h> is highly BSP-dependent and used only by the tm27
test program we must provide this header file for each BSP.  Without the
preinstall build target each header file must have a unique source
header file.

Update #3254.
2017-11-27 09:36:56 +01:00
Sebastian Huber
0d5c795afa Move Ada includes
Update #3254.
2017-11-27 07:32:53 +01:00
Sebastian Huber
ac28f1588d Add simple console driver
Update #3170.
Update #3199.
2017-11-06 07:25:51 +01:00
Sebastian Huber
7bec7f2715 rtems: Add rtems_print_printer_fprintf_putc()
Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
f703e7f5c7 tests: Move rtems_test_printer definition
Statically initialize it to use printk().

Update #3170.
Update #3199.
2017-10-28 13:33:55 +02:00
Sebastian Huber
1bc0ad2e12 Simplify and unify BSP_output_char
The BSP_output_char should output a char and not mingle with high level
processing, e.g. '\n' to '\r\n' translation.  Move this translation to
rtems_putc().  Remove it from all the BSP_output_char implementations.

Close #3122.
2017-09-12 09:57:53 +02:00
Sebastian Huber
b2ed712d26 Include missing <string.h>
Update #2133.
2017-08-25 10:58:58 +02:00
Joel Sherrill
0238e316ad cpukit/include/rtems/inttypes.h: Correct PRIdioctl_command_t 2017-07-28 11:24:34 -05:00
Sebastian Huber
af207fa9f6 Add interrupt vector set/get affinity
Close #3071.
2017-07-12 08:00:13 +02:00
Sebastian Huber
ccc87c8b9e Add interrupt server move
Update #3071.
2017-07-12 07:46:55 +02:00
Sebastian Huber
d1841406b3 Add interrupt server set affinity
Update #3071.
2017-07-12 07:46:52 +02:00
Sebastian Huber
a961e1980c Add interrupt server suspend/resume
This mechanism can be used to safely move the interrupt server from one
scheduler instance to another for example.

Update #3071.
2017-07-12 07:46:49 +02:00
Sebastian Huber
e7ee719f79 Create one interrupt server per processor
This allows load balancing of interrupt processing in SMP
configurations.

Update #3071.
2017-07-12 07:46:40 +02:00
Sebastian Huber
5bfeab951c Add rtems_interrupt_server_handler_iterate() 2017-06-26 08:23:33 +02:00
Joel Sherrill
20775247de rtems/inttypes.h: Add PRIdrtems_vector_number. Missed in previous commit 2017-04-28 11:11:14 -05:00
Joel Sherrill
9e6ef361cf rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum 2017-04-25 20:14:28 -05:00
Joel Sherrill
7db09923fb rtems/inttypes.h epiphany_sim/irq/irq.c: Add PRIdrtems_vector_number and use it 2017-04-25 11:42:18 -05:00
Joel Sherrill
473a3cd007 rtems/inttypes.h: Add PRIdioctl_command_t 2017-04-23 12:53:44 -05:00
Joel Sherrill
438ca2f594 rtems/inttypes.h: Add blksize_t and blkcnt_t 2017-04-22 14:15:22 -05:00
Joel Sherrill
d420b679af Merge tmacros.h PRIxxx constants from testsuites/ into <rtems/inttypes.h>
This completes the initial creation of rtems/inttypes.h based on all
existing PRIxxx definitions contained in RTEMS Project owned code.

closes #2983.
2017-04-18 11:24:46 -05:00