summaryrefslogtreecommitdiffstats
path: root/freebsd/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* BPF(9): Fix timestampsSebastian Huber2019-03-281-0/+1
|
* C++ compatibility for some kernel-space headersSebastian Huber2019-02-183-13/+13
|
* ZONE(9): Fix UMA_PCPU_ALLOC_SIZESebastian Huber2019-02-121-6/+4
| | | | | Using CACHE_LINE_SIZE for UMA_PCPU_ALLOC_SIZE was a huge memory waste since the backend memory allocator is page based.
* Fix INVARIANTS supportSebastian Huber2019-01-223-1/+18
|
* Update to FreeBSD head 2018-12-20Sebastian Huber2018-12-20106-5489/+1286
| | | | | | | | | | Git mirror commit 19a6ceb89dbacf74697d493e48c388767126d418. It includes an update of wpa_supplicant to version 2.7. It includes an update of the OpenSSL baseline to version 1.1.1a. Update #3472.
* freebsd/if_cpsw: Port.Christian Mauderer2018-12-201-0/+21
|
* freebsd/if_cpsw: Import.Christian Mauderer2018-12-203-0/+3352
|
* SLEEPQUEUE(9): Fix typo that prevent non-SMP build.Christian Mauderer2018-12-191-1/+1
|
* SLEEPQUEUE(9): SMP only cache line alignmentSebastian Huber2018-12-141-0/+4
|
* blist: Fix u_daddr_t for 32-bit targetsSebastian Huber2018-11-271-0/+4
| | | | The daddr_t is defined in <sys/types.h> by Newlib as long.
* Update to FreeBSD head 2018-11-15Sebastian Huber2018-11-1571-1001/+1610
| | | | | | Git mirror commit a18b0830c4be01b39489a891b63d6023ada6358a. Update #3472.
* Disable or make static kern_* functionsSebastian Huber2018-11-155-7/+15
|
* Update to FreeBSD head 2018-10-23Sebastian Huber2018-10-2599-1002/+1913
| | | | | | | | | | | Git mirror commit 59f44d20be3f99d181ca742e636d45fc39ec982b. This commit updates OpenSSL to version 1.1.1. This required an update of racoon which uses some internal stuff from OpenSSL and seems to be mostly unmaintained, e.g. there is update in the FreeBSD ports to cope with OpenSSL 1.1.1. Update #3472.
* ZONE(9): Disable UMA_ZONE_NUMASebastian Huber2018-10-233-2/+31
| | | | There is no NUMA support in RTEMS currently.
* saf1761_otg: Use real interrupt handlerSebastian Huber2018-10-043-6/+53
| | | | | | | The USB_BUS_SPIN_LOCK() is only used internally to the bus driver. Replace the mutex with an interrupt disable/enable section. Execute the interrupt filter in a real interrupt context and forward the interrupt handler to the interrupt server if necessary.
* rtwn: Align mbuf to avoid realignment in rx pathSebastian Huber2018-10-041-0/+7
| | | | See ieee80211_realign().
* fsl_sdhci.c: Fix missing include errorSebastian Huber2018-09-281-0/+4
| | | | Update #3525.
* fsl_sdhci.c: Fix missing include errorSebastian Huber2018-09-271-0/+4
| | | | Update #3525.
* fsl_sdhci.c: Import from FreeBSDSebastian Huber2018-09-251-0/+1015
| | | | Update #3525.
* imx/imx_gpio.c: Port to RTEMSSebastian Huber2018-09-251-1/+4
| | | | Update #3525.
* imx/imx_gpio.c: Import from FreeBSDSebastian Huber2018-09-251-0/+910
| | | | Update #3525.
* CONFIG_INTRHOOK(9): Port to RTEMSSebastian Huber2018-09-253-2/+296
| | | | | | | | | 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.
* ck: Use relaxed memory order if possibleSebastian Huber2018-09-211-10/+25
| | | | | | | In uniprocessor configurations we can use a relaxed memory order and compiler memory barriers should be sufficient. Update #3472.
* ck: No hardware barriers in uniprocessor configsSebastian Huber2018-09-213-4/+21
| | | | Update #3472.
* Update to FreeBSD head 2018-09-17Sebastian Huber2018-09-21323-8299/+12076
| | | | | | Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319. Update #3472.
* ck: Define CK_MD_PPC32_LWSYNC if availableSebastian Huber2018-09-211-0/+4
| | | | | | This is option has a huge performance impact. Update #3472.
* ck: Use atomic built-insSebastian Huber2018-09-211-10/+13
| | | | Update #3472.
* Update to FreeBSD head 2018-06-01Sebastian Huber2018-09-21265-6034/+15112
| | | | | | Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
* Update to FreeBSD head 2018-04-01Sebastian Huber2018-09-21182-2659/+5483
| | | | | | Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4. Update #3472.
* Update to FreeBSD head 2018-02-01Sebastian Huber2018-09-21165-3843/+2612
| | | | | | Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
* Update to FreeBSD head 2017-12-01Sebastian Huber2018-09-21849-1610/+3980
| | | | | | Git mirror commit e724f51f811a4b2bd29447f8b85ab5c2f9b88266. Update #3472.
* Update to FreeBSD head 2017-10-01Sebastian Huber2018-09-21146-1332/+2440
| | | | | | Git mirror commit b2f0376b45428f13151d229c5ae9d4d8f74acbd1. Update #3472.
* Update to FreeBSD head 2017-08-01Sebastian Huber2018-09-21137-2794/+6075
| | | | | | Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c. Update #3472.
* Update to FreeBSD head 2017-06-01Sebastian Huber2018-09-21146-1400/+2118
| | | | | | Git mirror commit dfb26efac4ce9101dda240e94d9ab53f80a9e131. Update #3472.
* Optimize callout handline via static timer wheelSebastian Huber2018-09-171-1/+17
| | | | | | | The number of callouts is a compile-time constant in libbsd. Use this in struct callout_cpu and avoid dynamic allocation of tables. This signficantly reduces the count of load instructions in the callout handling.
* Remove struct callout::c_cpuSebastian Huber2018-09-172-1/+25
| | | | | This is an optimization of the callout handling. In libbsd all callouts are handled by the one and only timer server.
* IPFW(4): Remove FreeBSD importSebastian Huber2018-08-2436-30326/+0
| | | | | | | | This firewall was not ported to RTEMS and is just dead code which may make trouble during FreeBSD baseline updates. It also increased the compile-time of the library for nothing. Update #3472.
* Fix alignment of getsockaddr_sockaddrSebastian Huber2018-08-241-1/+1
|
* Update due to <sys/time.h> API changesSebastian Huber2018-08-242-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Changes correspond to FreeBSD commit: "Make timespecadd(3) and friends public The timespecadd(3) family of macros were imported from NetBSD back in r35029. However, they were initially guarded by #ifdef _KERNEL. In the meantime, we have grown at least 28 syscalls that use timespecs in some way, leading many programs both inside and outside of the base system to redefine those macros. It's better just to make the definitions public. Our kernel currently defines two-argument versions of timespecadd and timespecsub. NetBSD, OpenBSD, and FreeDesktop.org's libbsd, however, define three-argument versions. Solaris also defines a three-argument version, but only in its kernel. This revision changes our definition to match the common three-argument version. Bump _FreeBSD_version due to the breaking KPI change. Discussed with: cem, jilles, ian, bde Differential Revision: https://reviews.freebsd.org/D14725" Update #3472.
* libkern.h: Avoid call overhead for bcmp()Sebastian Huber2018-08-091-0/+4
|
* if_ipsec: Port and add to everything-buildset.Christian Mauderer2018-08-011-0/+4
| | | | | This ports the kernel space parts for ipsec and adds them to the everything-buildset.
* if_ipsec: Import from FreeBSD.Christian Mauderer2018-08-012-0/+1043
|
* random: Implement read_random via getentropy.Christian Mauderer2018-08-011-0/+10
|
* crypto/sha2: Remove left over file.Christian Mauderer2018-08-011-141/+0
| | | | This file seems to be imported from a long gone version.
* Make sure CALLOUT_DFRMIGRATION is not usedSebastian Huber2018-07-262-11/+22
| | | | | This flag supports the callout migration in FreeBSD. This feature is not supported by libbsd.
* Make sure CALLOUT_PROCESSED is not usedSebastian Huber2018-07-262-1/+3
| | | | | This flag is only used in combination with the callout expire list, which we do not use in libbsd.
* Critical bug fix for calloutsSebastian Huber2018-07-262-1/+33
| | | | | | | | FreeBSD has two callout executors, one in software and one in hardware interrupt context. In libbsd, all callouts are executed by the timer server. Entirely remove the different execution contexts for libbsd. Previously, this was not properly done which could result an invalid callout_drain() sequence leading to system memory corruption.
* Fix sporadic test failures via uma_timeout()Sebastian Huber2018-07-262-0/+15
|
* Avoid malloc() in getsockaddr()Sebastian Huber2018-07-042-0/+47
| | | | | | | | | | | | | | | | 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.
* BPF(9): Pass flags to bpfopen()Nicolas Tsiogkas2018-07-041-1/+1
|