summaryrefslogtreecommitdiffstats
path: root/rtemsbsd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Xilinx Versal APACChris Johns2021-10-214-0/+346
|
* rtemsbsd/nfsclient: Fix the error code return valueChris Johns2021-10-211-4/+5
|
* rtemsbsd: Clear bus DMA memory a byte at a timeChris Johns2021-10-211-2/+7
| | | | | - memset may be optimized for performance and might work with device type memory. Clear a byte at a time.
* rtemsbsd/atomic: Return a value for CMPSETKinsey Moore2021-10-081-2/+2
| | | | | | | | | | When the cmpset and fcmpset functions were refactored, the return value of the operation was discarded instead of being returned for SMP builds outside of gcc 4.x. This had the effect of turning these functions into a long busywait loop that eventually failed due to integer overflow. This patch restores the use of the return value of the atomic operations.
* rtemsbsd/syscalls: Remove pipe()Chris Johns2021-09-231-52/+0
| | | | | | - This call is provided by RTEMS and that is preferred Closes #4518
* rtemsbsd/open: Correctly open a mount directoryChris Johns2021-09-232-18/+47
| | | | | - If the open is for a directory and it is the root of the mounted file system open from the pseudo's root node.
* imx: Remove ccm functions alredy defined in RTEMSChristian Mauderer2021-09-021-6/+0
| | | | | | | The imx_ccm_*_hz are all defined in RTEMS. So don't duplicate them in libbsd. Otherwise some applications get linker errors. Update #3869
* rtemsbsd/nfs: Add support to mount NFSv2Chris Johns2021-09-022-81/+847
| | | | | | | | | - 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
* kern/sys: Add NFSv4 clientChris Johns2021-08-317-1/+224
| | | | Update #4475
* kern/sys: Add the kernel RPC and XDR supportChris Johns2021-08-281-0/+133
| | | | Updates #4475
* sys/kern: Add VFS supportChris Johns2021-08-2836-1249/+12429
| | | | | | | | | | - Refactor the libio interface - Move syscalls into an rtemsbsd location - Provide a root directory mount point Update #4475
* rtemsbsd: Remove DHCP init wrapperChris Johns2021-08-281-91/+0
| | | | | | - Object files cannot config init and resided in libbsd.a Update #4475
* kern: Add kernel trace support (KTR)Chris Johns2021-08-284-0/+10
| | | | Update #4475
* kern: Add a proc0Chris Johns2021-08-282-9/+54
| | | | | | - Provides the thread's proc pointer and with that access to creds Update #4475
* sys/kern: Add lockmgr supportChris Johns2021-08-2811-65/+712
| | | | | | | | | | - 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
* rtemsbsd: Catch timeout overflowsChris Johns2021-08-281-4/+10
| | | | Update #4475
* kern-symbols: Add symbols from the everything build setChris Johns2021-08-281-0/+127
| | | | Update #4475
* Implement portable kernel symbol namespace toolChris Johns2021-08-281-1053/+1055
| | | | | | | | | | - The script's use of sort proved to not be portable - No need to check the commits as symbols are only added - Regenerated kernel header to reset the sort order Update #4475
* bsp/motorola_powerpc: Add dc and ukphy supportChris Johns2021-08-282-0/+36
| | | | | | | | - Add the dc net dev to the BSP - Add the ukphy support Closes # 4246
* rtemsbsd: Add interface support routinesChris Johns2021-08-272-0/+214
| | | | - Add the ability to check if an interface is up
* rtemsbsd/bus: Add PCI support to the nexus busChris Johns2021-08-273-123/+321
| | | | | | | | | | | | | | - Add PCI IO region support - Add support map buffers to PCI address space - Add BSP conditional IO space support. Some PC implementations have PCI IO space mapped differently to memory space and this needs to be reflected in the busspace. - Include bsp.h to pick per BSP configuration. Closes #4245
* nexus: Added SDHCI driver to ZynqMPStephen Clark2021-07-152-0/+33
| | | | Made ZynqMP build with the SDHCI driver.
* rtemsbsd: Present all ZynqMP interfaces by defaultKinsey Moore2021-07-151-9/+0
| | | | | Now that the issue with false PHY detection on unterminated MII busses has been resolved, present all hardware interfaces for use on ZynqMP.
* rtemsbsd: Use config.inc to control ZynqMP ethernetKinsey Moore2021-07-011-4/+5
| | | | | | | This alters the selection of the 4 Cadence GEM interfaces on the Zynq Ultrascale+ MPSoC BSP to be provided by config.inc instead of being provided by options in the RTEMS BSP itself since those options appear to be dead code when not used in conjunction with LibBSD.
* rtemsbsd: Made TTCP command build for RTEMSStephen Clark2021-06-295-61/+268
| | | | | | | | | | Updated ttcp.c to build clean for RTEMS 6 and the machines it originally built for. Also fixed ttcp.c to close network sockets after completion. Defined a shell command for TTCP in rtems-bsd-shell-ttcp.c. Added TTCP to the list of RTEMS network commands in netcmds-config.h. Added declaration of the TTCP shell command to rtems-bsd-commands.h. Modified libbsd.py to make waf build TTCP and its shell command.
* rtemsbsd:Updated TTCP code with network demo codeStephen Clark2021-06-291-26/+65
| | | | | Updated the TTCP code to match the ttcp.c in RTEMS network-demos repository (https://git.rtems.org/network-demos/).
* rtemsbsd: Added original TTCP codeStephen Clark2021-06-292-0/+867
| | | | | | | Added the original Test TCP (TTCP) program in unmodified form. Also added the original README for TTCP. Both the README and the TTCP program were sourced from the first commit in the RTEMS network demos repository.
* rtemsbsd: Make ZynqMP CGEM interfaces selectableKinsey Moore2021-06-281-0/+11
| | | | | Use the new options from the ZynqMP BSPs to allow selection of the available CGEM ethernet interfaces.
* EPOCH(9): Fix epoch call and drainSebastian Huber2021-06-151-4/+35
| | | | | | | Since the epoch call callbacks may lock/unlock a mutex the callbacks must be called from within thread context with thread dispatching enabled. Use thread pinning to ensure that the calling thread stays on the right processor. Use the interrupt server to ensure the thread context for the epoch drain.
* EPOCH(9): Use PER_CPU_DATA_NEED_INITIALIZATION()Sebastian Huber2021-06-111-0/+4
| | | | | Use the PER_CPU_DATA_NEED_INITIALIZATION() macro if necessary to request an initialization of the per-CPU data.
* libbsd nfs.c: Change filesystem utime_h handler to utimens_hRyan Long2021-05-281-25/+25
| | | | | | | | Changed nfs_utime() to nfs_utimens(), changed the arguments to use a timespec array instead of individual variables for access and modified time. Updates #4400
* st-sdmmc: Handle short not cache aligned buffersChristian Mauderer2021-04-191-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Possible data sources for SD driver: - mmc_sd_switch(): - length: 64 byte; - buffer on stack - mmc_test_bus_width(): - length: 4 or 8 byte - buffer in program memory or on stack - mmc_app_send_scr(): - length: 8 byte - buffer from device ivar structure - mmc_app_sd_status(): - length: 64 byte - buffer from device ivar structure - mmc_send_ext_csd(): - length: MMC_EXTCSD_SIZE = 512 - buffer from device ivar structure - rtems_bsd_mmcsd_disk_read_write(): - length: depends on read - buffer from rtems_blkdev buffer -> already aligned - mmcsd_ioctl_cmd(): - length: depends on call - buffer malloced, not aligned -> patched in RTEMS So the problematic buffers are only the ones up to 512 bytes. Copy these data into a buffer to avoid that problem.
* STM32H7: Fix SDMMC build for all other BSPsChristian Mauderer2021-04-012-0/+12
|
* STM32H7: Add SDMMC driverChristian Mauderer2021-04-015-0/+988
| | | | Update #4372
* nexus: Add UKPHY driver to ZynqMPKinsey Moore2021-03-102-0/+10
| | | | | | ZynqMP hardware comes with many different Ethernet PHYs depending on which board is used. Add the UKPHY driver to handle basic PHY interaction for any unrecognized PHYs.
* nexus: Add ZynqMP SLCR driverKinsey Moore2021-03-104-0/+345
| | | | | | | Add a System Level Control Register driver for the Xilinx Zynq Ultrascale+ MPSoC with basic clock control functionality for use with the Cadence GEM. This also removes the Zynq-7000 clock control weakref from compilation depending on the BSP in use.
* nexus: Switch ZynqMP platforms to CGEM3Kinsey Moore2021-03-101-1/+8
| | | | | | Similar to the UARTs, ZynqMP hardware platforms use the highest memory-mapped CGEM peripheral as the primary instance of that peripheral. This change allows operation on hardware as well as QEMU.
* rtembsd: Fix alignment of allocations for 64bitKinsey Moore2021-03-101-2/+3
| | | | | | Alignment on 64bit hardware is strict in comparison to running in an emulator. This resolves an alignment exception when allocating memory on real hardware.
* zynq: Add support for SDHCI devicesKinsey Moore2020-12-223-0/+374
|
* Add CGEM definitions for ZynqMPKinsey Moore2020-11-242-0/+23
|
* imxrt: Add supportChristian Mauderer2020-11-171-0/+8
| | | | Update #4180
* Update arm64/aarch64 supportKinsey Moore2020-11-131-0/+1
|
* dwc_otg: Enable voltage detectorSebastian Huber2020-10-271-0/+1
| | | | Update #3910.
* dwc_otg: Add support for nexus busSebastian Huber2020-10-273-0/+271
| | | | Update #3910.
* if_stmac: Add driver for STM32H7 ethernet moduleSebastian Huber2020-10-272-0/+1013
| | | | Update #3910.
* NVD(4): Fix logical block count calculationSebastian Huber2020-10-271-4/+5
| | | | Update #4164.
* NVD(4): Fix NULL pointer access in nvd_sync()Sebastian Huber2020-10-271-14/+14
| | | | Update #4164.
* powerpc/nexus: Add legacy PCI support to PowerPC Motorola Shared BSP familyChris Johns2020-10-203-1/+9
|
* tsc_lpc32xx.c: Update due to API changesSebastian Huber2020-09-291-5/+7
|
* rtems-bsd-cxx: Undefine _GNU_SOURCESebastian Huber2020-09-141-0/+1
| | | | | | | | | 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.