634 Commits

Author SHA1 Message Date
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
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
Sebastian Huber
9c570da872 rc_conf: Include missing header files 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
Sebastian Huber
8993827a73 DEVFS(5): Properly initialize fp->f_cdevpriv 2018-03-27 14:42:46 +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
d300a34424 Silence rtems_bsd_ifconfig() 2018-03-23 09:14:34 +01:00
Christian Mauderer
b2a210ca3e if_atsam: Add checksum offload. 2018-03-21 09:14:25 +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
bcaa8a28a2 dw_mmc: Properly init/reset DMA 2018-02-06 09:56:35 +01:00
Sebastian Huber
138bf250c2 dw_mmc: Add MMCBR_IVAR_TIMING 2018-02-06 09:56:35 +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
0f9258f2fb linux/percpu.h: Fix for uni-processor config 2018-02-05 11:55:01 +01:00
Sebastian Huber
8b3da1329b termios: Update due to API changes
Update #2843.
2018-02-05 10:56:24 +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
cfc149bff3 linux/of_irq.h: Generalize of_irq_to_resource()
Determine interrupt cells via device tree.

Update #3277.
2018-01-23 14:55:02 +01:00
Sebastian Huber
e4923c85c9 linux/of_address.h: of_address_to_resource()
Translate address in of_address_to_resource().

Update #3277.
2018-01-23 14:54:59 +01:00
Sebastian Huber
0f1d2f6174 linux/of_address.h: Add of_translate_address()
Update #3277.
2018-01-23 14:54:56 +01:00
Sebastian Huber
81fc57de35 linux/of.h: Add of_find_node_by_path()
Update #3277.
2018-01-23 14:54:53 +01:00
Sebastian Huber
44fca38058 linux/of.h: Add of_read_number()
Update #3277.
2018-01-23 14:54:50 +01:00
Sebastian Huber
26ce2ac428 linux/of.h: Add of_n_size_cells()
Update #3277.
2018-01-23 14:54:47 +01:00
Sebastian Huber
0d421d850e linux/of.h: Add of_n_addr_cells()
Update #3277.
2018-01-23 14:54:44 +01:00
Sebastian Huber
066b536397 linux/sort.h: New file
Update #3277.
2018-01-23 14:54:41 +01:00
Sebastian Huber
583216ab22 linux/smp.h: Avoid function call overhead
Update #3277.
2018-01-23 14:54:30 +01:00
Sebastian Huber
fe05886a55 linux/compiler.h: Define __cold
Update #3277.
2018-01-23 14:54:23 +01:00
Sebastian Huber
22538146a5 Add rtems_bsd_ifconfig() 2018-01-23 14:50:36 +01:00
Sebastian Huber
13c409362d ehci_mpc83xx.c: Fix for qoriq hypervisor guest 2018-01-19 14:51:53 +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
b5822c2a0a Revert "SX(9): Implement with reader/writer lock"
This was accidentally committed.

This reverts commit cc7a8d87e7307db738bf39ab1ca3ce1053f1c163.
2017-11-17 10:49:31 +01:00
Sebastian Huber
cc7a8d87e7 SX(9): Implement with reader/writer lock 2017-11-16 09:02:28 +01:00
Sebastian Huber
97a98f6cd7 RWLOCK(9): Add reader/writer lock implementation 2017-11-16 09:02:24 +01:00
Sebastian Huber
344b8e6fb4 LOCKING(9): Remove dead code (DDB) 2017-11-16 08:17:03 +01:00
Sebastian Huber
3f23fcd943 LOCKING(9): Remove dead code (KDTRACE_HOOKS) 2017-11-16 08:15:37 +01:00
Sebastian Huber
9c1490aac3 LOCKING(9): Update to current FreeBSD version 2017-11-16 08:11:42 +01:00
Christian Mauderer
ec29b2a0c2 at91_mci: Port to RTEMS and adapt for atsam. 2017-11-10 14:13:15 +01:00
Christian Mauderer
589220752b saf1761_otg: Port to RTEMS. 2017-11-10 14:01:55 +01:00
Christian Mauderer
4613db09fc wpa_supplicant: Add lock. 2017-11-10 13:33:03 +01:00
Christian Mauderer
ee0c369cdd wpa_supplicant: Move forking command into own file.
The malloc wrapper must not be disabled. Therefore the command that uses
malloc without a wrapper has to live in another file.
2017-11-10 13:33:03 +01:00