Sebastian Huber
bd7e6eeb31
Conditionally include <bsp/linker-symbols.h>
...
Remove superfluous <bsp.h> include.
2020-08-05 15:04:48 +02:00
Christian Mauderer
5e3780023c
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 13:09:11 +02:00
Christian Mauderer
cdd6003eb8
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 13:09:11 +02:00
Sebastian Huber
26866d2c1f
Fix linker errors with minimal build set
2020-07-08 10:21:20 +02:00
Sebastian Huber
afaeccc05a
NVMECONTROL(8): Port to RTEMS
...
Update #3821 .
2019-11-13 13:22:36 +01:00
Sebastian Huber
4a6660cee0
Fix pgsigio() warnings
2019-09-25 09:25:06 +02:00
Sebastian Huber
bd6b20c0e6
nexus: Avoid NULL pointer access
2019-09-23 10:13:29 +02:00
Sebastian Huber
d1c8a7fbf5
Add wrapper for strndup()
2019-09-11 10:25:04 +02:00
Nils Hölscher
fd86c091b9
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:13:11 +02:00
Sebastian Huber
312f705d4f
EPOCH(9): Add epoch_drain_callbacks()
2019-07-09 13:56:23 +02:00
Sebastian Huber
ed1a63384b
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:37:34 +02:00
Sebastian Huber
660a8835eb
SLEEPQUEUE(9): Fix timeout handling
2019-07-05 10:20:47 +02:00
Sebastian Huber
8f12ed3824
Add RTEMS-specific getcredhostuuid()
2019-06-05 14:15:57 +02:00
Sebastian Huber
b5f8d4831d
Use _SMP_Unicast_action()
...
It is a bit more efficient.
2019-05-21 07:40:53 +02:00
Sebastian Huber
a87e0f4f5c
Update due to API changes
...
Close #3749 .
2019-05-15 15:45:03 +02:00
Sebastian Huber
edc4bf9f71
Separate libbsd and RTEMS clock ticks
2019-05-15 13:43:49 +02:00
Sebastian Huber
510d1c96f6
Include missing <stdlib.h> to fix warnings
2019-05-15 13:43:46 +02:00
Sebastian Huber
061e27912c
Remove unused maxusers
2019-05-15 13:43:44 +02:00
Sebastian Huber
0a8c0ce47f
Remove dangerous weak definition of getentropy()
...
All BSP supporting libbsd should provide this function.
2019-05-15 13:43:41 +02:00
Sebastian Huber
49c75e331e
Use static inline functions for jail and prison
...
This helps the compiler to optimize away dead code.
2019-05-13 09:34:01 +02:00
Sebastian Huber
6e5c632248
Fix zero-copy mbuf support
...
In 2017 there was a change in the mbuf API.
2019-05-13 09:34:00 +02:00
Sebastian Huber
647dd08ae2
Update due to API changes
2019-04-11 09:38:45 +02:00
Christian Mauderer
9ed6c97139
bin/openssl: Port to RTEMS.
2019-03-28 07:17:24 +01:00
Sebastian Huber
5f68b005f2
Remove unused file
2019-03-11 07:15:01 +01:00
Sebastian Huber
3e483fb445
Build C++ kernel-space compatibility file
2019-02-18 10:09:58 +01:00
Sebastian Huber
34cb55db70
Fix INVARIANTS support
2019-01-22 13:24:26 +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
Sebastian Huber
9c570da872
rc_conf: Include missing header files
2018-05-08 06:50:17 +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
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