327 Commits

Author SHA1 Message Date
Christian Mauderer
8ae22c48b3 freebsd/if_cpsw: Port. 2018-12-20 13:36: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
d4bf70e497 Disable or make static kern_* functions 2018-11-15 10:06:58 +01:00
Sebastian Huber
70555d532d mutex: Avoid NULL pointer access in panic() 2018-11-15 09:18:48 +01:00
Sebastian Huber
b3169c2a6a Update to FreeBSD head 2018-10-23
Git mirror commit 59f44d20be3f99d181ca742e636d45fc39ec982b.

This commit updates OpenSSL to version 1.1.1.  This required an update
of racoon which uses some internal stuff from OpenSSL and seems to be
mostly unmaintained, e.g. there is update in the FreeBSD ports to cope
with OpenSSL 1.1.1.

Update #3472.
2018-10-25 08:38:45 +02:00
Sebastian Huber
ed5e02a933 Fix redefinition warnings 2018-10-23 13:25:45 +02:00
Sebastian Huber
2eae88b07c Fix typo (RTEMS_BSD_MODULE_NET80211) 2018-10-02 10:30:51 +02:00
Sebastian Huber
b3825029ff fsl_sdhci.c: Port to RTEMS
Update #3525.
2018-09-25 10:01:41 +02:00
Sebastian Huber
06dd40e544 imx/imx_gpio.c: Port to RTEMS
Update #3525.
2018-09-25 10:01:37 +02:00
Sebastian Huber
13840c1bea Update gpio interface
Update #3525.
2018-09-25 10:01:28 +02:00
Sebastian Huber
d101ed8614 if_ffec_mpc8xx: New MDIO driver support
Update #3523.
2018-09-21 10:29:43 +02:00
Sebastian Huber
457b4fc927 if_ffec_mpc8xx: Port driver to libbsd
Update #3523.
2018-09-21 10:29:43 +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
2df56dbd60 Update to FreeBSD head 2018-04-01
Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4.

Update #3472.
2018-09-21 10:29:40 +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
e4a8065910 Update to FreeBSD head 2017-10-01
Git mirror commit b2f0376b45428f13151d229c5ae9d4d8f74acbd1.

Update #3472.
2018-09-21 10:29:37 +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
de261e0404 Update to FreeBSD head 2017-06-01
Git mirror commit dfb26efac4ce9101dda240e94d9ab53f80a9e131.

Update #3472.
2018-09-21 10:29:36 +02:00
Sebastian Huber
48cbe6cc1b Remove <poll.h>
This header file is provided by RTEMS.
2018-09-17 10:05:02 +02:00
Sebastian Huber
a85d90007e Optimize callout handline via static timer wheel
The number of callouts is a compile-time constant in libbsd.  Use this
in struct callout_cpu and avoid dynamic allocation of tables.  This
signficantly reduces the count of load instructions in the callout
handling.
2018-09-17 09:12:06 +02:00
Sebastian Huber
3b8f03b1e1 Fix BUS_SPACE_MAXADDR for 64-bit targets 2018-09-12 07:48:17 +02:00
Sebastian Huber
3990b45e97 Use rtems_counter_read() for get_cyclecount() 2018-09-11 11:37:34 +02:00
Sebastian Huber
4c22b5c1f2 Add FreeBSD kernel space header files
Move the kernel space content of some Newlib provided header files to
RTEMS and libbsd.  This allows to use the Newlib provided header files
with different FreeBSD baselines.

Update #3472.
2018-08-27 07:44:23 +02:00
Sebastian Huber
63084c1988 IPFW(4): Remove FreeBSD import
This firewall was not ported to RTEMS and is just dead code which may
make trouble during FreeBSD baseline updates.  It also increased the
compile-time of the library for nothing.

Update #3472.
2018-08-24 09:09:51 +02:00
Sebastian Huber
f62c62d2fe Update rtems-bsd-kernel-namespace.h
Update #3472.
2018-08-24 09:09:51 +02:00
Christian Mauderer
c7eec93e3c Add RTEMS_BSD_CONFIG_IPSEC. 2018-08-02 10:32:20 +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
Christian Mauderer
6215813e04 if_ipsec: Port and add to everything-buildset.
This ports the kernel space parts for ipsec and adds them to the
everything-buildset.
2018-08-01 09:55:27 +02:00
Sebastian Huber
94b5368388 Avoid malloc() in getsockaddr()
The getsockaddr() function is used to allocate a struct sockaddr of the
right length and initialize it with userspace provided data.  It is used
for the connect(), bind() and sendit() family functions.  In particular,
the sendit() function is used by the UDP send functions.  This means
each UDP send needs a malloc() and free() invocation.  This is a
performance problem in RTEMS (first-fit heap) and may lead to heap
fragmentation.  Replace the malloc() allocation with a stack allocation.
This requires SOCK_MAXADDRLEN (= 255) of additional stack space for
libbsd.

A further optimization would be to get rid of the stack copy of the
socket address.  However, this would require to check each consumer of
the address to ensure that it is not modified.
2018-07-04 07:20:37 +02:00
Christian Mauderer
f8cf0746b3 beagle: Disable WiFi if libbsd is build without it.
Update #3351.
2018-06-05 09:59:16 +02:00
Sebastian Huber
b2eb48c23b dhcpcd: Add hooks 2018-05-08 07:37:17 +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
Christian Mauderer
338f3005fc buildset: Add minimal and everything config.
This adds two new buildset configurations: One that leaves out as much
features as possible and one that enables all features. For the default
configuration WiFi support is now disabled.

To disable IPv6 for the minimal configuration, all -DINET6 are
eliminated in libbsd.py. They are now replaced by a #ifdef that checks
for RTEMS_BSD_MODULE_NETINET6 instead.

Close #3351.
2018-05-03 07:09:46 +02:00
Sebastian Huber
634b3bfece rtems-debugger: Remove files
They are now in the main RTEMS sources.

Update #3419.
2018-05-02 10:36:41 +02:00
Sebastian Huber
443a058db4 Use network services from RTEMS
Close #3419.
2018-04-30 13:42:18 +02:00
Sebastian Huber
8189ea825a CRYPTO(4): Port to RTEMS 2018-03-28 07:59:12 +02:00
Christian Mauderer
7ec935e03f vprintf: Add handler that mutes all output.
This adds a vprintf handler that can be used to suppress all outputs of
the libbsd.
2018-03-23 09:36:35 +01:00
Sebastian Huber
eae664ea8f mutex: Use panic() after ISR lock release
Using panic() with interrupts disabled could lead to an additional error
(INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT) due to a potentially
blocking output.
2018-03-13 11:27:11 +01:00
Sebastian Huber
c30fa94277 Add device tree support for Altera/Intel Cyclone V
Close #3290.
2018-02-06 09:55:31 +01:00
Sebastian Huber
d62a3df1c7 sdk_dpaa: Port to RTEMS
Update #3277.
2018-01-23 14:55:31 +01:00
Sebastian Huber
0f6ff4a923 dpaa: QMan portal only initialization
Update #3277.
2018-01-23 14:55:24 +01:00
Sebastian Huber
1342fad09c dpaa: Add and use SDK_DPAA_COMPAT_STATIC
Update #3277.
2018-01-23 14:55:15 +01:00
Sebastian Huber
2fba1e4322 dpaa: Remove unused configuration defines
Update #3277.
2018-01-23 14:55:05 +01:00
Sebastian Huber
22538146a5 Add rtems_bsd_ifconfig() 2018-01-23 14:50:36 +01:00
Sebastian Huber
b1649d6322 Add rtems_bsd_initialize_dhcp() 2017-12-05 09:16:25 +01:00
Sebastian Huber
c360b1a2dc Revert "RWLOCK(9): Add reader/writer lock implementation"
This was accidentally committed.

This reverts commit 97a98f6cd767b3a68279890488c7b451788f84f4.
2017-11-17 10:49:59 +01:00
Sebastian Huber
97a98f6cd7 RWLOCK(9): Add reader/writer lock implementation 2017-11-16 09:02:24 +01:00