272 Commits

Author SHA1 Message Date
Sebastian Huber
d2d3fabf30 rtems-bsd-cxx: Undefine _GNU_SOURCE
At least the powerpc C++ compiler defines currently _GNU_SOURCE due to a GCC
configuration error.  This leads to conflicting qsort_r() definitions.

As a workaround undefine _GNU_SOURCE for this C++ compatibility test file.

Update #4078.
2020-09-14 17:13:41 +02:00
Sebastian Huber
d56d9b6d3b ifmcstat: Port to RTEMS 2020-09-10 13:24:18 +02:00
Sebastian Huber
c60c10e4f7 Fix linker errors with minimal build set 2020-08-06 13:22:42 +02:00
Sebastian Huber
3e4ebf3bf3 Conditionally include <bsp/linker-symbols.h>
Remove superfluous <bsp.h> include.
2020-08-05 15:06:00 +02:00
Christian Mauderer
beaacb5c30 busdma: Don't sync nocache memory on ARM
The busdma shouldn't try to flush or invalidate cache in a nocache area.
2020-07-29 11:19:14 +02:00
Christian Mauderer
4820ccecc9 busdma: Option to round to cache lines on sync
Some targets support only flushing or invalidating complete cache lines.
In this cases misaligned buffers might lead to unexpected results. This
patch adds a flag that allows drivers to signal to the bus dma driver
that it is OK to round a buffer to the next full cache line. That's for
example necessary if a driver wants to send out 14 byte via a USB DMA.
Only the driver knows whether these 14 bytes are located in an otherwise
unused cache line aligned buffer.
2020-07-29 11:19:14 +02:00
Sebastian Huber
e6acc15bc9 NVMECONTROL(8): Port to RTEMS
Update #3821.
2019-11-13 13:04:09 +01:00
Sebastian Huber
a5ddb0ea69 Update to FreeBSD head 2019-09-24
Git mirror commit 6b0307a0a5184339393f555d5d424190d8a8277a.
2019-11-13 10:47:04 +01:00
Sebastian Huber
e9730d5fc5 Fix pgsigio() warnings 2019-09-24 14:07:12 +02:00
Sebastian Huber
f052790a24 nexus: Avoid NULL pointer access 2019-09-23 10:55:47 +02:00
Sebastian Huber
7b1aea98a1 Add wrapper for strndup() 2019-09-11 10:25:49 +02:00
Nils Hölscher
f020f08430 rtems/rtems-kernel-nexus.c: LibBSD init now uses all pass levels.
I observed all Modules loading in the last fdt pass.
The reason was, nexus bus loading with BUS_PASS_DEFAULT.
2019-08-12 08:12:22 +02:00
Sebastian Huber
bc2ba9a9cd EPOCH(9): Add epoch_drain_callbacks() 2019-07-09 13:57:03 +02:00
Sebastian Huber
70b50ff98a EPOCH(9): Avoid inline functions
FreeBSD changed the epoch_enter() and epoch_exit() inline functions into
proper functions after a performance analysis to avoid code bloat.
2019-07-09 13:57:03 +02:00
Sebastian Huber
313e1d5f1c SLEEPQUEUE(9): Fix timeout handling 2019-07-05 10:20:18 +02:00
Vijay Kumar Banerjee
4ed60d9076 i2c tool : port to RTEMS 2019-06-29 10:31:01 +02:00
Sebastian Huber
3bd43f00a7 Add RTEMS-specific getcredhostuuid() 2019-06-05 14:26:38 +02:00
Sebastian Huber
31b5c87357 Use _SMP_Unicast_action()
It is a bit more efficient.
2019-05-21 07:40:03 +02:00
Sebastian Huber
16fa6a4651 Update due to API changes
Close #3749.
2019-05-15 15:44:18 +02:00
Sebastian Huber
c727e4a22e Separate libbsd and RTEMS clock ticks 2019-05-15 12:43:06 +02:00
Sebastian Huber
4d11b2a6cf Include missing <stdlib.h> to fix warnings 2019-05-13 11:19:50 +02:00
Sebastian Huber
1a5db378e2 Remove unused maxusers 2019-05-13 11:19:50 +02:00
Sebastian Huber
ab80f78a20 Remove dangerous weak definition of getentropy()
All BSP supporting libbsd should provide this function.
2019-05-13 11:19:50 +02:00
Sebastian Huber
36e8ad4374 Use static inline functions for jail and prison
This helps the compiler to optimize away dead code.
2019-05-13 09:32:37 +02:00
Sebastian Huber
5da04d6837 Fix zero-copy mbuf support
In 2017 there was a change in the mbuf API.
2019-05-13 09:32:37 +02:00
Sebastian Huber
c6261f9787 Update due to API changes 2019-04-11 09:38:18 +02:00
Christian Mauderer
d1dac7891c bin/openssl: Port to RTEMS. 2019-03-27 10:53:26 +01:00
Sebastian Huber
da2b048fdb Remove unused file 2019-03-01 13:13:20 +01:00
Sebastian Huber
af02f4644f Build C++ kernel-space compatibility file 2019-02-18 10:06:02 +01:00
Sebastian Huber
0389b30dd9 Fix INVARIANTS support 2019-01-22 13:14:33 +01:00
Sebastian Huber
d7c7d6e256 Fix locking issue in epoch_sysinit()
The _Watchdog_Per_CPU_insert_ticks() assumes that interrupts are
disabled.
2018-12-20 10:33:34 +01:00
Sebastian Huber
e0b4edbdcc Update to FreeBSD head 2018-11-15
Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a.

Update #3472.
2018-11-15 10:56:14 +01:00
Sebastian Huber
9f2c3ceebe Fix locking issue in epoch_watchdog()
The _Watchdog_Per_CPU_insert_ticks() assumes that interrupts are
disabled.
2018-11-15 08:26:49 +01:00
Sebastian Huber
9f87c4586b Include missing <sys/types.h>
Update #3598.
2018-11-13 10:17:48 +01:00
Sebastian Huber
91327bd82a Use global stdout for kernel output and syslog() 2018-10-10 14:20:42 +02:00
Sebastian Huber
f949b432de Fix syslog() priority handling
Ths syslog priority is a mask not a level.
2018-10-10 14:20:06 +02:00
Sebastian Huber
b42dea9e51 CONFIG_INTRHOOK(9): Port to RTEMS
Some device drivers (e.g. MMC) need a complex intialization with working
callouts.  Remove the dummy CONFIG_INTRHOOK() implementation and replace
it with the real one from FreeBSD.  Make sure TIMEOUT(9) services work
at this point.

Update #3525.
2018-09-25 10:01:15 +02:00
Sebastian Huber
3489e3b639 Update to FreeBSD head 2018-09-17
Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319.

Update #3472.
2018-09-21 10:29:41 +02:00
Sebastian Huber
bcdce02d9b Update to FreeBSD head 2018-06-01
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9.

Update #3472.
2018-09-21 10:29:41 +02:00
Sebastian Huber
18fa92c2dc Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4.

Update #3472.
2018-09-21 10:29:39 +02:00
Sebastian Huber
bb80d9df8b Update to FreeBSD head 2017-12-01
Git mirror commit e724f51f811a4b2bd29447f8b85ab5c2f9b88266.

Update #3472.
2018-09-21 10:29:38 +02:00
Sebastian Huber
c37f9fba70 Update to FreeBSD head 2017-08-01
Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c.

Update #3472.
2018-09-21 10:29:37 +02:00
Sebastian Huber
08fbf18141 Initialize interrupt server earlier
This allows to initialize other basic services which depend on the
interrupt server.
2018-09-12 08:09:38 +02:00
Sebastian Huber
6e5b088e8f Move dynamic mutex pool to separate file
This avoids false link-time dependencies.
2018-09-12 07:59:27 +02:00
Sebastian Huber
f56067e26c vprintf: Avoid printf() to avoid FPU usage 2018-09-10 15:15:42 +02:00
Christian Mauderer
028bf82f6d rc.conf: Fix cloned interface setup.
The cloned interfaces have to be set up befor the interface list is
created. Otherwise it's not possible to configure a cloned interface
with a `ifconfig_gifX` line.
2018-08-02 10:32:24 +02:00
Christian Mauderer
1b467ad47d Add ipsec to rc.conf. 2018-08-02 10:25:42 +02:00
Christian Mauderer
b376ae131d ipsec-tools: Port libipsec, setkey and racoon.
Note that this replaces the libipsec from FreeBSD with the one provided
by ipsec-tools.
2018-08-02 10:25:37 +02:00
Sebastian Huber
8bd38d645c dhcpcd: Add rtems_dhcpcd_start()
Use it throughout to start the DHCP client (dhcpcd).
2018-05-08 06:50:17 +02:00
Sebastian Huber
bd09f9f132 rc_conf: Do not create directories used by dhcpcd
The dhcpcd will create the directories on its own.
2018-05-08 06:50:17 +02:00