summaryrefslogtreecommitdiffstats
path: root/freebsd (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-21ck: No hardware barriers in uniprocessor configsSebastian Huber3-4/+21
Update #3472.
2018-09-21Update to FreeBSD head 2018-09-17Sebastian Huber562-13033/+25407
Git mirror commit 6c2192b1ef8c50788c751f878552526800b1e319. Update #3472.
2018-09-21ck: Define CK_MD_PPC32_LWSYNC if availableSebastian Huber1-0/+4
This is option has a huge performance impact. Update #3472.
2018-09-21ck: Use atomic built-insSebastian Huber1-10/+13
Update #3472.
2018-09-21Update to FreeBSD head 2018-06-01Sebastian Huber327-11780/+24188
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
2018-09-21Update to FreeBSD head 2018-04-01Sebastian Huber319-3442/+6452
Git mirror commit 8dfb1ccc26d1cea7e2529303003ff61f9f1784c4. Update #3472.
2018-09-21Update to FreeBSD head 2018-02-01Sebastian Huber344-5806/+6332
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
2018-09-21Update to FreeBSD head 2017-12-01Sebastian Huber1186-2494/+6438
Git mirror commit e724f51f811a4b2bd29447f8b85ab5c2f9b88266. Update #3472.
2018-09-21Update to FreeBSD head 2017-10-01Sebastian Huber158-1382/+2548
Git mirror commit b2f0376b45428f13151d229c5ae9d4d8f74acbd1. Update #3472.
2018-09-21Update to FreeBSD head 2017-08-01Sebastian Huber159-3195/+6687
Git mirror commit f5002f5e5f78cae9f0269d812dc0aedb0339312c. Update #3472.
2018-09-21Update to FreeBSD head 2017-06-01Sebastian Huber252-2574/+3891
Git mirror commit dfb26efac4ce9101dda240e94d9ab53f80a9e131. Update #3472.
2018-09-17Optimize callout handline via static timer wheelSebastian Huber1-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.
2018-09-17Remove struct callout::c_cpuSebastian Huber2-1/+25
This is an optimization of the callout handling. In libbsd all callouts are handled by the one and only timer server.
2018-08-28Regenerate program header filesSebastian Huber55-937/+921
2018-08-28Update yacc and lex generated filesSebastian Huber4-795/+585
Use the FreeBSD 11.1 yacc and lex tools to generate the files. Update #3472.
2018-08-28kvaddr_t is now provided by <sys/types.h>Sebastian Huber1-0/+2
Update #3472.
2018-08-24WPA_SUPPLICANT(8): Remove unused filesSebastian Huber2-4222/+0
Remove unused files which may make trouble during FreeBSD baseline updates. It also increased the compile-time of the library for nothing. Update #3472.
2018-08-24IPFW(4): Remove FreeBSD importSebastian Huber36-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.
2018-08-24Fix alignment of getsockaddr_sockaddrSebastian Huber1-1/+1
2018-08-24Update due to <sys/time.h> API changesSebastian Huber2-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.
2018-08-09libkern.h: Avoid call overhead for bcmp()Sebastian Huber1-0/+4
2018-08-02ipsec-tools: Port libipsec, setkey and racoon.Christian Mauderer12-7099/+0
Note that this replaces the libipsec from FreeBSD with the one provided by ipsec-tools.
2018-08-01if_ipsec: Port and add to everything-buildset.Christian Mauderer1-0/+4
This ports the kernel space parts for ipsec and adds them to the everything-buildset.
2018-08-01if_ipsec: Import from FreeBSD.Christian Mauderer2-0/+1043
2018-08-01random: Implement read_random via getentropy.Christian Mauderer1-0/+10
2018-08-01crypto/sha2: Remove left over file.Christian Mauderer1-141/+0
This file seems to be imported from a long gone version.
2018-07-26Make sure CALLOUT_DFRMIGRATION is not usedSebastian Huber2-11/+22
This flag supports the callout migration in FreeBSD. This feature is not supported by libbsd.
2018-07-26Make sure CALLOUT_PROCESSED is not usedSebastian Huber2-1/+3
This flag is only used in combination with the callout expire list, which we do not use in libbsd.
2018-07-26Critical bug fix for calloutsSebastian Huber2-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.
2018-07-26Fix sporadic test failures via uma_timeout()Sebastian Huber2-0/+15
2018-07-04Avoid malloc() in getsockaddr()Sebastian Huber2-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.
2018-07-04BPF(9): Pass flags to bpfopen()Nicolas Tsiogkas1-1/+1
2018-05-03pfctl: Undef INET6 to avoid warning.Christian Mauderer2-415/+412
2018-05-03buildset: Add minimal and everything config.Christian Mauderer3-1/+7
This adds two new buildset configurations: One that leaves out as much features as possible and one that enables all features. For the default configuration WiFi support is now disabled. To disable IPv6 for the minimal configuration, all -DINET6 are eliminated in libbsd.py. They are now replaced by a #ifdef that checks for RTEMS_BSD_MODULE_NETINET6 instead. Close #3351.
2018-05-03tcpdump: Remove unused file.Christian Mauderer1-182/+0
2018-04-30Use network services from RTEMSSebastian Huber1-107/+0
Close #3419.
2018-04-27at91_mci: Simplify XDMA usageSebastian Huber1-43/+27
2018-04-27at91_mci: Get rid of bounce bufferSebastian Huber1-63/+57
2018-04-26at91_mci: Use real interruptSebastian Huber1-0/+51
Execute at91_mci_intr() in interrupt context. Synchronize MMC requests via RTEMS interrupt lock.
2018-04-26mmc: Optimize mmc_wait_for_req()Sebastian Huber2-0/+19
Use a self-contained RTEMS binary semaphore instead of msleep() and wakeup(). This is itself more efficient and in addition allows the use of mmc_wakeup() in interrupt context.
2018-04-26at91_mci: Fix use of BOARD_MCKSebastian Huber1-1/+1
2018-04-26at91_mci: Fix use of pre-processor definesSebastian Huber1-1/+1
2018-03-28CRYPTO(4): Port to RTEMSSebastian Huber1-0/+75
2018-03-27CRYPTO(4): Import from FreeBSDSebastian Huber1-0/+1375
2018-03-27DEVFS(5): Fix warningSebastian Huber1-0/+3
2018-02-06dwc_otg: Default to USB host modeSebastian Huber1-0/+2
In case no "dr_mode" property is present in the device tree, then default to USB host mode. This is necessary to support the Cyclone V SoC Development Kit.
2018-02-06dwc_otg: Add compatibility string, constifySebastian Huber1-1/+2
Support device tree of Cyclone V SoC Development Kit.
2018-02-06Add device tree support for Altera/Intel Cyclone VSebastian Huber4-39/+273
Close #3290.
2018-02-05SLEEPQUEUE(9): Update due to API changesSebastian Huber1-1/+1
Update #3264.
2018-01-19ZONE(9): Avoid function call overheadSebastian Huber1-1/+3