871 Commits

Author SHA1 Message Date
Chris Johns
60e40e9b83 freenbsd/vfs: VFS attributes need to have the same size mode_t variable
If the size in the attributes struct does not match the mode_t the
VNOVAL checks fail because size of the values are not the same.

Updates #4723
2023-07-21 14:55:50 +10:00
Kinsey Moore
c8e1d6dbc4 freebsd/if_cgem: Remove QEMU workaround
This removes the workaround applied on the fly for QEMU that disables
priority queueing. The priority queue interrupt was not previously
hooked up properly in QEMU and RSB now has the patches to allow it to
work.
2023-06-28 08:04:03 -05:00
Sebastian Huber
6e4709be52 vfs/nfs: Revert white space changes 2023-01-12 08:22:59 +01:00
Kinsey Moore
02d383922b freebsd/cgem: Add SGMII support
This adds support to the CGEM driver for selection of SGMII PHY
interfaces specified via device tree parameters.
2022-11-10 08:06:31 -06:00
Kinsey Moore
fef8b8850b freebsd/cgem: Add device tree support
This reintroduces device tree support to the CGEM driver while
preserving the ability to statically define CGEM interfaces.
2022-11-10 08:06:31 -06:00
Stefan Eßer
9561e24bf8 sys/bitset.h: reduce visibility of BIT_* macros
Add two underscore characters "__" to names of BIT_* and BITSET_*
macros to move them to the implementation name space and to prevent
a name space pollution due to BIT_* macros in 3rd party programs with
conflicting parameter signatures.

These prefixed macro names are used in kernel header files to define
macros in e.g. sched.h, sys/cpuset.h and sys/domainset.h.

If C programs are built with either -D_KERNEL (automatically passed
when building a kernel or kernel modules) or -D_WANT_FREENBSD_BITSET
(or this macros is defined in the source code before including the
bitset macros), then all macros are made visible with their previous
names, too. E.g., both __BIT_SET() and BIT_SET() are visible with
either of _KERNEL or _WANT_FREEBSD_BITSET defined.

The main reason for this change is that some 3rd party sources
including sched.h have been found to contain conflicting BIT_*
macros.

As a work-around, parts of shed.h have been made conditional and
depend on _WITH_CPU_SET_T being set when sched.h is included.
Ports that expect the full functionality provided by sched.h need
to be built with -D_WITH_CPU_SET_T. But this leads to conflicts if
BIT_* macros are defined in that program, too.

This patch set makes all of sched.h visible again without this
parameter being passed and without any name space pollution due
to BIT_* macros becoming visible when sched.h is included.

This patch set will be backported to the STABLE branches, but ports
will need to use -D_WITH_CPU_SET_T as long as there are supported
releases that do not contain these patches.

Reviewed by:	kib, markj
MFC after:	1 month
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D33235
2022-09-28 13:26:14 +02:00
Sebastian Huber
376b24055c stdio/local.h: Make Newlib config independent 2022-07-24 14:52:32 +02:00
Sebastian Huber
da3551ad94 netstat: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
60986c25e0 wlanstats: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
c178af7dfa ping6: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
04564e61c6 ping: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
86d6b72349 openssl: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
204790a525 wpa: Use CONFIG_ELOOP_KQUEUE
This avoids issues with the fd_set size.
2022-06-22 17:25:12 +02:00
Sebastian Huber
ef338b80c0 wpa: Do not use signals 2022-06-22 17:25:12 +02:00
Sebastian Huber
0761774abd Revert white space changes 2022-06-22 17:25:12 +02:00
Chris Johns
c56a34f547 freebsd/nfsv4: Fix misaligned 64bit user dirent write 2022-06-20 13:04:11 +10:00
Sebastian Huber
dba9346b43 uma_core.c: Fix use of uninitialized variable
Update #4475.
2022-06-08 15:16:36 +02:00
Christian Mauderer
c9b4bed650 if_ffec: Allow PHY that is connected to other FFEC
The i.MX6UL (and some others from the i.MX family) have shared MDIO
lines for multiple FFECs. This patch allows to use the MDIO interface
from another Ethernet controller.

Note that you have to make sure that the FFECs are initialized in the
right order. Normally that can be done via FDT.
2022-06-07 09:08:04 +02:00
Christian Mauderer
2a6a230e65 if_ffec: Reduce buffer size
Typical embedded systems don't have that much memory. Reduce the buffer
size to something more sensible for the usual type of application.
2022-06-07 09:08:00 +02:00
Sebastian Huber
83a979855a libc: Include <sys/types.h> for RTEMS
This fixes an issue with a recent Newlib which no longer includes <sys/types.h>
in <stdio.h>.
2022-05-18 09:48:07 +02:00
Sebastian Huber
8e706de3a5 libc: Avoid conflict with Newlib __sinit() 2022-05-18 09:48:07 +02:00
Sebastian Huber
1654d5e8fc tcpdump: Do not rely on u_char typedef 2022-05-18 09:48:07 +02:00
Sebastian Huber
584dd8d940 tcpdump: Do not use signals and chroot
Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
45dfdc1c52 tcpdump: Ensure loop monitor termination
Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
70c9ac2771 tcpdump: No loop monitor if reading from file
Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
869cb1adc1 tcpdump: Close pcap dumper at program exit
Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
face369437 tcpdump: Use rtems_task_exit()
Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
bd2201b9df tcpdump: Make loop monitor cooperative
This helps a bit if the fgetc() is non-blocking.

Update #4650.
2022-05-12 07:45:31 +02:00
Sebastian Huber
435b298b0f pfctl: Fix global state initialization
Update #4654.
2022-05-11 15:21:34 +02:00
Alex White
22e531d7f0 if_xae: Fix non-FDT BSP build error
This fixes a compiler error that would occur for every BSP that does not
define `BSP_FDT_IS_SUPPORTED`. The fdt headers should always be included
to provide the needed definitions.
2022-03-10 08:22:39 +01:00
Alex White
40b9c6ce63 if_xae: Port to RTEMS 2022-03-07 17:04:05 -06:00
Jennifer Averett
ee4fb53241 if_xae: Import from FreeBSD 2022-03-07 17:04:05 -06:00
Jennifer Averett
d10228ddba Add MicroBlaze support 2022-03-07 17:04:05 -06:00
Kinsey Moore
f4cf022ad4 Import arm64 in_cksum.h correctly
When this file was brought in, it came from the wrong location or
freebsd-org hash. This corrects the file such that freebsd-to-rtems.py
runs cleanly.
2021-12-16 08:53:10 -06:00
Chris Johns
715e29f2a0 freebsd/libc/rpc: Fix the fgets emulation for the internal netconfig support 2021-09-08 09:23:09 +10:00
Christian Mauderer
b7c51ac449 imx: Remove ccm functions alredy defined in RTEMS
The imx_ccm_*_hz are all defined in RTEMS. So don't duplicate them in
libbsd. Otherwise some applications get linker errors.

Update #3869
2021-09-02 09:19:27 +02:00
Chris Johns
7e282d2506 rtemsbsd/nfs: Add support to mount NFSv2
- NFSv2 requires userland RPC calls to determine the version of
  NFS and the FH. This is passed to the kernel.

- Port more libc/rpc.

Update #4475
2021-09-02 08:45:12 +10:00
Chris Johns
882425fe54 kern/sys: Add NFSv4 client
Update #4475
2021-08-31 18:38:48 +10:00
Chris Johns
6138f242be kern/sys: Import NFS and NFS file system client
Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
c6dbc96748 kern/sys: Add the kernel RPC and XDR support
Updates #4475
2021-08-28 10:25:46 +10:00
Chris Johns
3da45ae4bc freebsd/sys: Import RPC and XDR support
Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
6514d56158 sys/kern: Add VFS support
- Refactor the libio interface

- Move syscalls into an rtemsbsd location

- Provide a root directory mount point

Update #4475
2021-08-28 10:25:46 +10:00
Chris Johns
1739d74f7d freebsd/sys: Import VFS support
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
e56b5cb135 kern: Add kernel trace support (KTR)
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
9800a0f9fa kern: Import kern_ktr.c
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
c7427fc154 kern: Add a proc0
- Provides the thread's proc pointer and with that access to creds

Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
761fd69393 kern: Import kern_prot.c fnd kern_resource.c for proc0
Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
46a15fa7aa sys/kern: Add lockmgr support
- See `man lockmgr`

- Implement the lock_object and move the RTEMS mutex to that object

- Add debug support to track the locks with gdb

Update #4475
2021-08-28 10:24:38 +10:00
Chris Johns
5ef23a2836 sys/netinet/libalias: Fix symbols clashes
Update #4475
2021-08-28 10:24:37 +10:00
Chris Johns
f5c405ec05 bsp/motorola_powerpc: Add dc and ukphy support
- Add the dc net dev to the BSP

- Add the ukphy support

Closes # 4246
2021-08-28 10:23:41 +10:00