summaryrefslogtreecommitdiff
path: root/sys/conf/files.mips
Commit message (Collapse)AuthorAgeFilesLines
* Move kern_clocksource.c to sys/conf/filesMark Johnston2020-11-191-1/+0
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=367827
* Remove support for DES and Triple DES from OCF.John Baldwin2020-05-111-2/+1
| | | | | | | | | | | | | It no longer has any in-kernel consumers via OCF. smbfs still uses single DES directly, so sys/crypto/des remains for that use case. Reviewed by: cem Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24773 Notes: svn path=/head/; revision=360933
* Remove support for the Blowfish algorithm from OCF.John Baldwin2020-05-111-2/+0
| | | | | | | | | | | | It no longer has any in-kernel consumers. Reviewed by: cem Relnotes: yes Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24772 Notes: svn path=/head/; revision=360931
* [PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operationsBrandon Bergren2020-01-021-0/+1
| | | | | | | | | | | | | | | | | | | This is a lock-based emulation of 64-bit atomics for kernel use, split off from an earlier patch by jhibbits. This is needed to unblock future improvements that reduce the need for locking on 64-bit platforms by using atomic updates. The implementation allows for future integration with userland atomic64, but as that implies going through sysarch for every use, the current status quo of userland doing its own locking may be for the best. Submitted by: jhibbits (original patch), kevans (mips bits) Reviewed by: jhibbits, jeff, kevans Differential Revision: https://reviews.freebsd.org/D22976 Notes: svn path=/head/; revision=356308
* Add support for BERI statcounters.Ruslan Bukin2019-09-181-1/+3
| | | | | | | | | | | | | | | | | | | | BERI stands for Bluespec Extensible RISC Implementation, based on MIPS. BERI has not implemented standard MIPS perfomance monitoring counters, instead it provides statistical counters. BERI statcounters have a several limitations: - They can't be written - They don't support start/stop operation - None of hardware interrupt is provided on a counter overflow. So make it separate to hwpmc_mips module and support process/system counting mode only. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=352487
* Move scterm_teken.c from 6 MD files lists to the MI files list so that itBruce Evans2019-02-211-2/+0
| | | | | | | | | | | | | | is easier to configure. It is MI, unlike some of the other syscons files already in the MI list. Move scvtb.c similarly. It is needed whenever sc is configured, and is more MI than most of the files already in the MI list. This only changes the combined list for arm64 and mips. These arches already cannot build sc or even NOTES. Notes: svn path=/head/; revision=344443
* amd64: implement memcmp in assemblyMateusz Guzik2018-09-271-0/+1
| | | | | | | | | | | | | | | | Both the in-kernel C variant and libc asm variant have very poor performance. The former compiles to a single byte comparison loop, which breaks down even for small sizes. The latter uses rep cmpsq/b which turn out to have very poor throughput and are slower than a hand-coded 32-byte comparison loop. Depending on size this is about 3-4 times faster than the current routines. Reviewed by: kib Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17328 Notes: svn path=/head/; revision=338963
* Make ZSTD a real option via ZSTDIO.Sean Bruno2018-07-051-1/+1
| | | | | | | | | | | | | | | | | | It looks like the intent was to allow ZSTD support to be compiled into the kernel with options ZSTDIO. But it doesn't look like that was ever implemented or I'm missing how to do it. I did a cursory audit of kernel config files and made a decision to enable ZSTDIO in riscv GENERIC and mips MALTA configurations. All other kernel configurations already had this option in their kernel configs but they didn't do anything useful as the feature was declared as "standard" prior to this. Reviewed by: cem allanjude Differential Revision: https://reviews.freebsd.org/D16007 Notes: svn path=/head/; revision=336004
* Make memmove an alias for memcpyWarner Losh2018-05-241-1/+0
| | | | | | | | | | | memcpy was an alias for bcopy with arg swap. This code handles overlapping copies, so making memmove an alias is safe. We can eliminate the call from libkern's memmove to this bcopy as a result. Differential Revision: https://reviews.freebsd.org/D15374 Notes: svn path=/head/; revision=334181
* Finally, fix Zstd kernel build on MIPS and RISC-VConrad Meyer2018-01-101-0/+3
| | | | | | | | | | | | | | | | | | Add an implementation of the intrinsics invoked by __builtin_ctz{,ll} and __builtin_clz{,ll}, and include this compilation unit on platforms that lack assembly intrinsics for those builtins (MIPS and RISC-V). Future cleanup work might involve bringing these into a mini libcompiler-rt for the standalone kernel environment. Or cleaning up the approach upstream takes for builtins in standalone environments (or just FreeBSD). For now, at least this builds, and doesn't require modifying the vendor code. Reported by: jeff, markj, mizhka Reviewed by: jhb (earlier version), rpokala (comment text earlier version) Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=327763
* Merge projects/ipsec into head/.Andrey V. Elsukov2017-02-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Small summary ------------- o Almost all IPsec releated code was moved into sys/netipsec. o New kernel modules added: ipsec.ko and tcpmd5.ko. New kernel option IPSEC_SUPPORT added. It enables support for loading and unloading of ipsec.ko and tcpmd5.ko kernel modules. o IPSEC_NAT_T option was removed. Now NAT-T support is enabled by default. The UDP_ENCAP_ESPINUDP_NON_IKE encapsulation type support was removed. Added TCP/UDP checksum handling for inbound packets that were decapsulated by transport mode SAs. setkey(8) modified to show run-time NAT-T configuration of SA. o New network pseudo interface if_ipsec(4) added. For now it is build as part of ipsec.ko module (or with IPSEC kernel). It implements IPsec virtual tunnels to create route-based VPNs. o The network stack now invokes IPsec functions using special methods. The only one header file <netipsec/ipsec_support.h> should be included to declare all the needed things to work with IPsec. o All IPsec protocols handlers (ESP/AH/IPCOMP protosw) were removed. Now these protocols are handled directly via IPsec methods. o TCP_SIGNATURE support was reworked to be more close to RFC. o PF_KEY SADB was reworked: - now all security associations stored in the single SPI namespace, and all SAs MUST have unique SPI. - several hash tables added to speed up lookups in SADB. - SADB now uses rmlock to protect access, and concurrent threads can do SA lookups in the same time. - many PF_KEY message handlers were reworked to reflect changes in SADB. - SADB_UPDATE message was extended to support new PF_KEY headers: SADB_X_EXT_NEW_ADDRESS_SRC and SADB_X_EXT_NEW_ADDRESS_DST. They can be used by IKE daemon to change SA addresses. o ipsecrequest and secpolicy structures were cardinally changed to avoid locking protection for ipsecrequest. Now we support only limited number (4) of bundled SAs, but they are supported for both INET and INET6. o INPCB security policy cache was introduced. Each PCB now caches used security policies to avoid SP lookup for each packet. o For inbound security policies added the mode, when the kernel does check for full history of applied IPsec transforms. o References counting rules for security policies and security associations were changed. The proper SA locking added into xform code. o xform code was also changed. Now it is possible to unregister xforms. tdb_xxx structures were changed and renamed to reflect changes in SADB/SPDB, and changed rules for locking and refcounting. Reviewed by: gnn, wblock Obtained from: Yandex LLC Relnotes: yes Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D9352 Notes: svn path=/head/; revision=313330
* Restore status quo: mips64 does not need subr_sfbuf.cAlexander Kabaev2016-12-301-1/+2
| | | | | | | Reported by: br Notes: svn path=/head/; revision=310829
* Support mips[*]hf variants in config filesAlexander Kabaev2016-12-301-3/+3
| | | | | | | | | | | | Recognize new MACHINE_ARCH names now as we have added hardfloat support. Switch JZ4780 to mipselhf and remove all uses of TARGET_ARCH in kernel .mk files. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D8989 Notes: svn path=/head/; revision=310794
* Move intrng includes to the main MIPS includes file.Ruslan Bukin2016-11-191-0/+7
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=308846
* [nvram2env] split implementation into generic & MIPS-based codeMichael Zhilin2016-07-241-0/+1
| | | | | | | | | | | | | | | | | Split implementation of nvram2env to generic (MI) & MIPS-based code: - removed includes like "*siba*", because they are unused - added nvram2env_mips.c file with MIPS-specific code, code moved from nvram2env.c - added header file to shared defines/structures/function prototypes between MI and MIPS code Also this fix allows to implement own nvram2env drivers. Reviewed by: ray, adrian (mentor) Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6513 Notes: svn path=/head/; revision=303258
* Implement FBT provider (MD part) for DTrace on MIPS.Ruslan Bukin2016-05-051-0/+6
| | | | | | | | | | Tested on MIPS64. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Notes: svn path=/head/; revision=299118
* Reduce OFW PCI code duplication - involves ARM, PPC and SPARC64Zbigniew Bodek2016-03-291-0/+3
| | | | | | | | | | | | | | | | | | | | Import portions of the PowerPC OF PCI implementation into new file "ofwpci.c", common for other platforms. The files ofw_pci.c and ofw_pci.h from sys/powerpc/ofw no longer exist. All required declarations are moved to sys/dev/ofw/ofwpci.h. This creates a new ofw_pci_write_ivar() function and modifies some others methods. Most functions contain existing ppc implementations in the majority unchanged. Now there is no need to have multiple identical copies of methods for various architectures. Requested by: jhibbits Reviewed by: jhibbits, marius Submitted by: Marcin Mazurek <mma@semihalf.com> Obtained from: Semihalf Sponsored by: Annapurna Labs Differential Revision: https://reviews.freebsd.org/D4879 Notes: svn path=/head/; revision=297392
* Remove bus space fdt for MIPS.Adrian Chadd2016-02-111-1/+0
| | | | | | | | | | | This was originall done by kan@. Submitted by: Stanislav Galabov <sgalabov@gmail.com> Reviewed by: kan Differential Revision: https://reviews.freebsd.org/D5184 Notes: svn path=/head/; revision=295501
* Remove fdt_fixup_table from architectures where it's unneeded. We only makeAndrew Turner2016-01-211-1/+0
| | | | | | | | | | | | use of fdt_fixup_table on PowerPC and ARM. As such we can remove it from other architectures as it's unneeded. Reviewed by: nwhitehorn Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D5013 Notes: svn path=/head/; revision=294511
* Add a mips implementation of OF_decode_addr().Ian Lepore2015-12-211-0/+1
| | | | Notes: svn path=/head/; revision=292556
* Add libkern ffsll() for parity with flsll()Conrad Meyer2015-10-221-0/+1
| | | | | | | | Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3962 Notes: svn path=/head/; revision=289765
* Switch mips busdma to using the common busdma_buffalloc code. This amountsIan Lepore2015-10-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | to copying in some code from the armv4 busdma, and adapting a few variable and flag names to match the surrounding mips code. Instead of keeping a local cache of prealloced busdma_map structs on a mutex-protected list, set up an uma zone to cache them. Instead of all memory allocations using M_DEVBUF, use new categories M_BUSDMA for allocations of metadata (tags, maps, segment tracking lists), and M_BOUNCE for bounce pages. When buffers are allocated out of the busdma_bufalloc zones the alignment and size of the buffers is known, and the code can skip doing any "partial cacheline flush" logic to preserve data that may be adjacent to the DMA buffer but contain non-DMA data. Reviewed by: adrian, imp Notes: svn path=/head/; revision=289701
* Move kbd.c to main sys/conf/files listEd Maste2015-09-211-1/+0
| | | | | | | | | It is (optionally) used on all architectures. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288071
* Add in library routines not supplied by gcc-4.9 but required by the kernel.Adrian Chadd2015-06-191-0/+2
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=284587
* Add support for the MIPS74K SoC family performance counters events.Adrian Chadd2015-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are similar to the mips24k performance counters - some are available on perfcnt0/3, some are available on perfcnt1/4. However, the events aren't all the same. * Add the events, named the same as from Linux oprofile. * Verify they're the same as "MIPS32(R) 74KTM Processor Core Family Software User's Manual"; Document Number: MD00519; Revision 01.05. * Rename INSTRUCTIONS to something else, so it doesn't clash with the alias INSTRUCTIONS. I'll try to tidy this up later; there are a few other aliases to add and shuffle around. Tested: * QCA9558 SoC (AP135 board) - MIPS74Kc core (no FPU.) * make universe; where it didn't fail for other reasons. TODO: * It'd be nice to support the four performance counters in at least this hardware, rather than just two. Reviewed by: bsdimp ("looks good; don't break world".) Notes: svn path=/head/; revision=281098
* Merge all MD sf_buf allocators into one MI, residing in kern/subr_sfbuf.cGleb Smirnoff2014-08-051-0/+1
| | | | | | | | | | | | | | | | | | The MD allocators were very common, however there were some minor differencies. These differencies were all consolidated in the MI allocator, under ifdefs. The defines from machine/vmparam.h turn on features required for a particular machine. For details look in the comment in sys/sf_buf.h. As result no MD code left in sys/*/*/vm_machdep.c. Some arches still have machine/sf_buf.h, which is usually quite small. Tested by: glebius (i386), tuexen (arm32), kevlo (arm32) Reviewed by: kib Sponsored by: Netflix Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=269577
* files.mips: the kbd driver is used by vt(4) tooEd Maste2014-07-301-1/+1
| | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=269307
* provide fast versions of ffsl and flsl for i386; ffsll and flsll for amd64Andriy Gapon2014-02-141-0/+1
| | | | | | | | | | Reviewed by: jhb MFC after: 10 days X-MFC note: consider thirdparty modules depending on these symbols Sponsored by: HybridCluster Notes: svn path=/head/; revision=261891
* Use a better version of memcpy/bcopy for mips kernel.Jayachandran C.2013-09-071-0/+1
| | | | | | | | | | | Use a variant of mips libc memcpy for kernel. This implementation uses 64-bit operations when compiled for 64-bit, and is significantly faster in that case. Submitted by: Tanmay Jagdale <tanmayj@broadcom.com> Notes: svn path=/head/; revision=255367
* Fix build.Gleb Smirnoff2013-09-061-0/+1
| | | | Notes: svn path=/head/; revision=255290
* - Trim an unused and bogus Makefile for mount_smbfs.Davide Italiano2013-06-281-1/+1
| | | | | | | | | - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch. Notes: svn path=/head/; revision=252356
* Add proper __sync_*() intrinsics for MIPS.Ed Schouten2013-06-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | To make <stdatomic.h> work on MIPS (and ARM) using GCC, we need to provide implementations of the __sync_*() functions. I already added these functions for 4 and 8 byte types to libcompiler-rt some time ago, based on top of <machine/atomic.h>. Unfortunately, <machine/atomic.h> only provides a subset of the features needed to implement <stdatomic.h>. This means that in some cases we had to do compare-and-exchange calls in loops, where a simple ll/sc would suffice. Also implement these functions for 1 and 2 byte types. MIPS only provides ll/sc instructions for 4 and 8 byte types, but this is of course no limitation. We can simply load 4 bytes and use some bitmask tricks to modify only the bytes affected. Discussed on: mips, arch Tested with: QEMU Notes: svn path=/head/; revision=251524
* Add basic support for FDT to i386 & amd64. This change includes:Marcel Moolenaar2013-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 1. Common headers for fdt.h and ofw_machdep.h under x86/include with indirections under i386/include and amd64/include. 2. New modinfo for loader provided FDT blob. 3. Common x86_init_fdt() called from hammer_time() on amd64 and init386() on i386. 4. Split-off FDT specific low-level console functions from FDT bus methods for the uart(4) driver. The low-level console logic has been moved to uart_cpu_fdt.c and is used for arm, mips & powerpc only. The FDT bus methods are shared across all architectures. 5. Add dev/fdt/fdt_x86.c to hold the fdt_fixup_table[] and the fdt_pic_table[] arrays. Both are empty right now. FDT addresses are I/O ports on x86. Since the core FDT code does not handle different address spaces, adding support for both I/O ports and memory addresses requires some thought and discussion. It may be better to use a compile-time option that controls this. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=250840
* Merge Perforce changeset 219925 to head:Robert Watson2013-01-121-0/+1
| | | | | | | | | | | | | | Provided a bus_space implementation for FDT, modelled on bus_space_generic, but with a local version of the map address routine that does a P->V translation, as is the case with NLM's similar routine for XLP. It's not clear to me that this is the right solution -- possibly this belongs in simplebus -- however, it is sufficient to get the DE4 LED driver working. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=245332
* make the MIPS24k HWPMC support require hwpmc_mips24k as well as hwpmc.Adrian Chadd2012-11-171-1/+1
| | | | | | | | | This way non-MIPS24k platforms (eg Octeon) can have separate PMC support. Requested by: juli Notes: svn path=/head/; revision=243178
* Better comments.Warner Losh2012-10-281-2/+2
| | | | Notes: svn path=/head/; revision=242204
* stack_machdep.c is dependent on ddb or stack options, not standard.Warner Losh2012-10-261-1/+1
| | | | Notes: svn path=/head/; revision=242162
* These no longer appera to be necessary for either 32-bit or 64-bitWarner Losh2012-10-261-3/+0
| | | | | | | builds, eliminate them. Notes: svn path=/head/; revision=242134
* Restore r184194 | marcel | 2008-10-22 20:16:38 -0600 (Wed, 22 Oct 2008) | 11 ↵Warner Losh2012-10-251-6/+0
| | | | | | | | | | lines which made geom_bsd and geom_mbr optional. They are redundant with the DEFAULTS BSD and MBR support for g_part, which is standard. Notes: svn path=/head/; revision=242070
* Hoist the MI compat_freebsd32 files up into files from files.*.Warner Losh2012-10-251-8/+1
| | | | Notes: svn path=/head/; revision=242066
* List all the mips MACHINE_ARCH values in the options file to allowWarner Losh2012-10-251-1/+1
| | | | | | | | conditional inclusion based on the MACHINE_ARCH we're compiling for. Make ucmpdi2 conditional on mips or mipsel. Notes: svn path=/head/; revision=242064
* We need ucmpdi2 for XLR and XLP when compiled in 32-bit mode. IncludeWarner Losh2012-10-251-0/+1
| | | | | | | | it here unconditionally while I figure out why "optional mips | mipsel" didn't work. Notes: svn path=/head/; revision=242031
* Move common fdt into files. Duplicate in files.powerpc the filesWarner Losh2012-10-241-6/+0
| | | | | | | | | shared with aim. Config is smart enough to cope with multiple lines of the same path with different options. This reduces the needless duplication. Notes: svn path=/head/; revision=242008
* Conform to the style of the rest of the file for hwpmc.Warner Losh2012-10-241-2/+2
| | | | Notes: svn path=/head/; revision=242004
* Add back hwpmc support.Warner Losh2012-10-241-0/+4
| | | | Notes: svn path=/head/; revision=241986
* Turns out the nvram env was common, so move it back up to get PB92 working.Warner Losh2012-10-231-0/+3
| | | | Notes: svn path=/head/; revision=241964
* Add in the crypto support from the generic versions.Warner Losh2012-10-231-0/+4
| | | | Notes: svn path=/head/; revision=241954
* Add in MD specific support for FDT. Need to refactor this a bit.Warner Losh2012-10-231-0/+10
| | | | Notes: svn path=/head/; revision=241953
* intr_machdep.c and trap.c can be replaced with ports' own versions,Warner Losh2012-10-231-2/+0
| | | | | | | so remove the standard ones from here. Notes: svn path=/head/; revision=241946
* Add support for syscons (we should consider moving most of this intoWarner Losh2012-10-231-0/+9
| | | | | | | files, another day). Notes: svn path=/head/; revision=241936