summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/machine (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsp/imxrt: Enable cache handlingChristian Mauderer2023-08-211-1/+1
| | | | | The BSP needs the CPU_DATA_CACHE_ALIGNMENT set to enable correct cache handling in libbsd. Otherwise for example USB doesn't work reliable.
* Define IFCAP_NOMAP for Newlib compatibilitySebastian Huber2022-07-072-0/+6
|
* Define IN_HISTORICAL_NETS for kernel spaceSebastian Huber2022-07-071-0/+3
| | | | | | | | | | | | | | | | | | | Required by FreeBSD commit: Author: Mike Karels <karels@FreeBSD.org> Date: Tue Oct 26 22:01:09 2021 -0500 kernel: deprecate Internet Class A/B/C Hide historical Class A/B/C macros unless IN_HISTORICAL_NETS is defined; define it for user level. Define IN_MULTICAST separately from IN_CLASSD, and use it in pf instead of IN_CLASSD. Stop using class for setting default masks when not specified; instead, define new default mask (24 bits). Warn when an Internet address is set without a mask. MFC after: 1 month Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D32708
* Kernel-side infrastructure to implement nvlist-based set/get ifcapsKonstantin Belousov2022-07-071-0/+12
| | | | | | | Reviewed by: hselasky, jhb, kp (previous version) Sponsored by: NVIDIA Networking MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D32551
* uipc_socket.c: Modify MSG_TLSAPPDATA to only do Alert RecordsRick Macklem2022-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, the MSG_TLSAPPDATA flag would cause soreceive_generic() to return ENXIO for any non-application data record in a TLS receive stream. This works ok for TLS1.2, since Alert records appear to be the only non-application data records received. However, for TLS1.3, there can be post-handshake handshake records, such as NewSessionKey sent to the client from the server. These handshake records cannot be handled by the upcall which does an SSL_read() with length == 0. It appears that the client can simply throw away these NewSessionKey records, but to do so, it needs to receive them within the kernel. This patch modifies the semantics of MSG_TLSAPPDATA slightly, so that it only applies to Alert records and not Handshake records. It is needed to allow the krpc to work with KTLS1.3. Reviewed by: hselasky MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35170
* Widen ifnet_detach_sxlock coverageKristof Provost2022-07-071-0/+2
| | | | | | | | | Widen the ifnet_detach_sxlock to cover the entire vnet sysuninit code. This ensures that we can't end up having the vnet_sysuninit free the UDP pcb while the detach code is running and trying to purge the UDP pcb. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28530
* Add the MSG_TLSAPPDATA flag to indicate "return ENXIO" for non-application ↵Rick Macklem2022-07-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | TLS data records. The kernel RPC cannot process non-application data records when using TLS. It must to an upcall to a userspace daemon that will call SSL_read() to process them. This patch adds a new flag called MSG_TLSAPPDATA that the kernel RPC can use to tell sorecieve() to return ENXIO instead of a non-application data record, when that is what is at the top of the receive queue. I put the code in #ifdef KERN_TLS/#endif, although it will build without that, so that it is recognized as only useful when KERN_TLS is enabled. The alternative to doing this is to have the kernel RPC re-queue the non-application data message after receiving it, but that seems more complicated and might introduce message ordering issues when there are multiple non-application data records one after another. I do not know what, if any, changes will be required to support TLS1.3. Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D25923
* user-space: Request FreeBSD bitset APISebastian Huber2022-06-301-0/+1
| | | | | | This is required for recent Newlib versions. Update #4667.
* Add program destructor supportSebastian Huber2022-05-121-0/+6
| | | | Update #4650.
* rtems-bsd-program.h: Remove stray ';'Sebastian Huber2022-02-231-1/+1
|
* aarch64/nexus: add GEM definitions for VersalGedare Bloom2021-06-251-0/+11
|
* STM32H7: Add SDMMC driverChristian Mauderer2021-04-011-0/+22
| | | | Update #4372
* arm/ti/ti_pinmux: Remove TI pinmux driverG S Niteesh Babu2021-03-211-5/+0
| | | | | | | | | | | | | | The TI driver has been moved to RTEMS so the driver can be removed from libBSD. The following files have been removed from libBSD and moved to RTEMS. 1) ti/am335x/am335x_scm_padconf.c 2) ti/am335x/am335x_scm_padconf.h 3) ti/ti_pinmux.c 4) ti/ti_pinmux.h Update #3784
* Add CGEM definitions for ZynqMPKinsey Moore2020-11-241-0/+16
|
* Update arm64/aarch64 supportKinsey Moore2020-11-131-0/+1
|
* ifmcstat: Port to RTEMSSebastian Huber2020-09-101-0/+2
|
* busdma: Option to round to cache lines on syncChristian Mauderer2020-07-291-0/+3
| | | | | | | | | | 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.
* Add support for i.mx cache.Christian Mauderer2020-04-151-1/+1
| | | | Update #3869.
* NVMECONTROL(8): Port to RTEMSSebastian Huber2019-11-131-0/+2
| | | | Update #3821.
* Update to FreeBSD head 2019-09-24Sebastian Huber2019-11-133-4/+1
| | | | Git mirror commit 6b0307a0a5184339393f555d5d424190d8a8277a.
* Add support for EARLY_COUNTERSebastian Huber2019-09-251-0/+10
|
* Compatibility for next Newlib updateSebastian Huber2019-09-241-0/+4
|
* Fix pgsigio() warningsSebastian Huber2019-09-241-1/+0
|
* C++ compatiblity for kernel space headerSebastian Huber2019-09-231-0/+8
|
* Add wrapper for strndup()Sebastian Huber2019-09-111-2/+9
|
* atomic.h: Add atomic_load_long()Sebastian Huber2019-08-271-0/+21
|
* am335x display drivers: Port to RTEMSVijay Kumar Banerjee2019-08-111-0/+2
|
* fbd: Port to RTEMSVijay Kumar Banerjee2019-08-112-0/+21
|
* TDA19988: Port to RTEMSVijay Kumar Banerjee2019-08-111-0/+65
|
* Pinmux: Port to RTEMSVijay Kumar Banerjee2019-08-111-0/+9
|
* Add mmapVijay Kumar Banerjee2019-07-271-0/+2
|
* SLEEPQUEUE(9): Fix timeout handlingSebastian Huber2019-07-051-0/+2
|
* i2c tool : port to RTEMSVijay Kumar Banerjee2019-06-291-0/+2
|
* iicbus: port to RTEMSVijay Kumar Banerjee2019-06-291-0/+29
|
* Add RTEMS-specific getcredhostuuid()Sebastian Huber2019-06-051-0/+1
|
* Separate libbsd and RTEMS clock ticksSebastian Huber2019-05-151-0/+1
|
* Remove unused maxusersSebastian Huber2019-05-131-1/+0
|
* Remove jail/prison functions from namespaceSebastian Huber2019-05-131-21/+0
|
* Add wrapper for abort()Sebastian Huber2019-05-131-2/+7
|
* Update due to API changesSebastian Huber2019-04-111-2/+2
|
* Revert "Add BURN_BRIDGES global kernel option"Sebastian Huber2019-03-291-5/+0
| | | | This reverts commit 0904e3371406d2775cba848da441e00fd1ef1ef6.
* Add BURN_BRIDGES global kernel optionSebastian Huber2019-03-281-0/+5
|
* bin/openssl: Port to RTEMS.Christian Mauderer2019-03-271-0/+2
|
* Fix atomic_load_32()Sebastian Huber2019-02-181-1/+1
|
* ZONE(9): Fix UMA_PCPU_ALLOC_SIZESebastian Huber2019-02-121-2/+2
| | | | | Using CACHE_LINE_SIZE for UMA_PCPU_ALLOC_SIZE was a huge memory waste since the backend memory allocator is page based.
* atomic.h: Add atomic_fetchadd_64()Sebastian Huber2019-02-111-0/+26
|
* atomic.h: Add atomic_load_32()Sebastian Huber2019-02-111-0/+21
|
* Update rtems-bsd-kernel-namespace.hSebastian Huber2018-12-201-1/+26
|
* Update to FreeBSD head 2018-11-15Sebastian Huber2018-11-151-1/+16
| | | | | | Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a. Update #3472.
* Disable or make static kern_* functionsSebastian Huber2018-11-151-9/+0
|