git: c09981f1422e - main - mips: Remove sys/mips

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 31 Dec 2021 03:58:08 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c09981f1422ef0d44042dacc5d1265392fba39f1

commit c09981f1422ef0d44042dacc5d1265392fba39f1
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-12-31 03:56:09 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-31 03:57:24 +0000

    mips: Remove sys/mips
    
    Remove sys/mips as the next step of decomissioning mips from the tree.
    Remove mips special cases from the kernel make files. Remove the mips
    specific linker scripts.
    
    Sponsored by:           Netflix
---
 sys/conf/Makefile.mips                       |  110 -
 sys/conf/config.mk                           |    2 -
 sys/conf/files.mips                          |  114 -
 sys/conf/kern.mk                             |   18 -
 sys/conf/kern.opts.mk                        |    8 +-
 sys/conf/kern.pre.mk                         |    3 -
 sys/conf/kmod.mk                             |    8 +-
 sys/conf/ldscript.mips                       |  300 --
 sys/conf/ldscript.mips.cfe                   |  317 ---
 sys/conf/ldscript.mips.mips64                |  301 --
 sys/conf/ldscript.mips.octeon1               |   66 -
 sys/mips/atheros/apb.c                       |  537 ----
 sys/mips/atheros/apbvar.h                    |   54 -
 sys/mips/atheros/ar531x/apb.c                |  753 ------
 sys/mips/atheros/ar531x/apbvar.h             |   63 -
 sys/mips/atheros/ar531x/ar5312_chip.c        |  208 --
 sys/mips/atheros/ar531x/ar5312_chip.h        |   34 -
 sys/mips/atheros/ar531x/ar5312reg.h          |  239 --
 sys/mips/atheros/ar531x/ar5315_chip.c        |  256 --
 sys/mips/atheros/ar531x/ar5315_chip.h        |   34 -
 sys/mips/atheros/ar531x/ar5315_cpudef.h      |  135 -
 sys/mips/atheros/ar531x/ar5315_gpio.c        |  532 ----
 sys/mips/atheros/ar531x/ar5315_gpiovar.h     |   75 -
 sys/mips/atheros/ar531x/ar5315_machdep.c     |  323 ---
 sys/mips/atheros/ar531x/ar5315_setup.c       |  160 --
 sys/mips/atheros/ar531x/ar5315_setup.h       |   51 -
 sys/mips/atheros/ar531x/ar5315_spi.c         |  290 --
 sys/mips/atheros/ar531x/ar5315_wdog.c        |  150 -
 sys/mips/atheros/ar531x/ar5315reg.h          |  244 --
 sys/mips/atheros/ar531x/arspireg.h           |   62 -
 sys/mips/atheros/ar531x/files.ar5315         |   20 -
 sys/mips/atheros/ar531x/if_are.c             | 1758 ------------
 sys/mips/atheros/ar531x/if_arereg.h          |  401 ---
 sys/mips/atheros/ar531x/uart_bus_ar5315.c    |   89 -
 sys/mips/atheros/ar531x/uart_cpu_ar5315.c    |   76 -
 sys/mips/atheros/ar71xx_bus_space_reversed.c |  183 --
 sys/mips/atheros/ar71xx_bus_space_reversed.h |   37 -
 sys/mips/atheros/ar71xx_caldata.c            |  176 --
 sys/mips/atheros/ar71xx_chip.c               |  339 ---
 sys/mips/atheros/ar71xx_chip.h               |   38 -
 sys/mips/atheros/ar71xx_cpudef.h             |  182 --
 sys/mips/atheros/ar71xx_ehci.c               |  293 --
 sys/mips/atheros/ar71xx_fixup.c              |  114 -
 sys/mips/atheros/ar71xx_fixup.h              |   38 -
 sys/mips/atheros/ar71xx_gpio.c               |  641 -----
 sys/mips/atheros/ar71xx_gpiovar.h            |   74 -
 sys/mips/atheros/ar71xx_macaddr.c            |  101 -
 sys/mips/atheros/ar71xx_macaddr.h            |   39 -
 sys/mips/atheros/ar71xx_machdep.c            |  457 ----
 sys/mips/atheros/ar71xx_ohci.c               |  221 --
 sys/mips/atheros/ar71xx_pci.c                |  706 -----
 sys/mips/atheros/ar71xx_pci_bus_space.c      |  200 --
 sys/mips/atheros/ar71xx_pci_bus_space.h      |   37 -
 sys/mips/atheros/ar71xx_setup.c              |  236 --
 sys/mips/atheros/ar71xx_setup.h              |   59 -
 sys/mips/atheros/ar71xx_spi.c                |  296 --
 sys/mips/atheros/ar71xx_wdog.c               |  184 --
 sys/mips/atheros/ar71xxreg.h                 |  576 ----
 sys/mips/atheros/ar724x_chip.c               |  246 --
 sys/mips/atheros/ar724x_chip.h               |   36 -
 sys/mips/atheros/ar724x_pci.c                |  672 -----
 sys/mips/atheros/ar724xreg.h                 |  110 -
 sys/mips/atheros/ar91xx_chip.c               |  219 --
 sys/mips/atheros/ar91xx_chip.h               |   36 -
 sys/mips/atheros/ar91xxreg.h                 |   86 -
 sys/mips/atheros/ar933x_chip.c               |  357 ---
 sys/mips/atheros/ar933x_chip.h               |   36 -
 sys/mips/atheros/ar933x_uart.h               |   93 -
 sys/mips/atheros/ar933xreg.h                 |  102 -
 sys/mips/atheros/ar934x_chip.c               |  475 ----
 sys/mips/atheros/ar934x_chip.h               |   36 -
 sys/mips/atheros/ar934x_nfcreg.h             |  177 --
 sys/mips/atheros/ar934xreg.h                 |  241 --
 sys/mips/atheros/files.ar71xx                |   35 -
 sys/mips/atheros/if_arge.c                   | 2796 -------------------
 sys/mips/atheros/if_argevar.h                |  222 --
 sys/mips/atheros/pcf2123_rtc.c               |  206 --
 sys/mips/atheros/pcf2123reg.h                |   68 -
 sys/mips/atheros/qca953x_chip.c              |  393 ---
 sys/mips/atheros/qca953x_chip.h              |   34 -
 sys/mips/atheros/qca953xreg.h                |  195 --
 sys/mips/atheros/qca955x_chip.c              |  402 ---
 sys/mips/atheros/qca955x_chip.h              |   34 -
 sys/mips/atheros/qca955x_pci.c               |  606 -----
 sys/mips/atheros/qca955xreg.h                |  228 --
 sys/mips/atheros/std.ar71xx                  |    8 -
 sys/mips/atheros/uart_bus_ar71xx.c           |  108 -
 sys/mips/atheros/uart_bus_ar933x.c           |  117 -
 sys/mips/atheros/uart_cpu_ar71xx.c           |   78 -
 sys/mips/atheros/uart_cpu_ar933x.c           |   80 -
 sys/mips/atheros/uart_dev_ar933x.c           |  736 -----
 sys/mips/atheros/uart_dev_ar933x.h           |   35 -
 sys/mips/beri/beri_iommu.c                   |  235 --
 sys/mips/beri/beri_machdep.c                 |  279 --
 sys/mips/beri/beri_mp.c                      |  308 ---
 sys/mips/beri/beri_mp.h                      |   85 -
 sys/mips/beri/beri_pic.c                     |  370 ---
 sys/mips/beri/files.beri                     |   27 -
 sys/mips/beri/std.beri                       |    7 -
 sys/mips/broadcom/bcm_bmips.c                |  419 ---
 sys/mips/broadcom/bcm_bmips_exts.h           |  189 --
 sys/mips/broadcom/bcm_bmipsreg.h             |   73 -
 sys/mips/broadcom/bcm_machdep.c              |  662 -----
 sys/mips/broadcom/bcm_machdep.h              |  138 -
 sys/mips/broadcom/bcm_mips.c                 |  696 -----
 sys/mips/broadcom/bcm_mips74k.c              |  391 ---
 sys/mips/broadcom/bcm_mips74kreg.h           |   67 -
 sys/mips/broadcom/bcm_mipsvar.h              |  111 -
 sys/mips/broadcom/bcm_nvram_cfe.c            |  501 ----
 sys/mips/broadcom/bcm_nvram_cfevar.h         |   67 -
 sys/mips/broadcom/bcm_pmu.c                  |  297 --
 sys/mips/broadcom/bcma_nexus.c               |  119 -
 sys/mips/broadcom/bhnd_nexus.c               |  281 --
 sys/mips/broadcom/bhnd_nexusvar.h            |   40 -
 sys/mips/broadcom/files.broadcom             |   32 -
 sys/mips/broadcom/siba_nexus.c               |  108 -
 sys/mips/broadcom/std.broadcom               |    9 -
 sys/mips/broadcom/uart_bus_chipc.c           |   80 -
 sys/mips/broadcom/uart_cpu_chipc.c           |  171 --
 sys/mips/cavium/asm_octeon.S                 |   66 -
 sys/mips/cavium/ciu.c                        |  488 ----
 sys/mips/cavium/cryptocteon/cavium_crypto.c  |  945 -------
 sys/mips/cavium/cryptocteon/cryptocteon.c    |  424 ---
 sys/mips/cavium/cryptocteon/cryptocteonvar.h |   75 -
 sys/mips/cavium/cvmx_config.h                |  199 --
 sys/mips/cavium/files.octeon1                |   99 -
 sys/mips/cavium/if_octm.c                    |  538 ----
 sys/mips/cavium/obio.c                       |  209 --
 sys/mips/cavium/obiovar.h                    |   57 -
 sys/mips/cavium/octe/cavium-ethernet.h       |  101 -
 sys/mips/cavium/octe/ethernet-common.c       |  340 ---
 sys/mips/cavium/octe/ethernet-common.h       |   55 -
 sys/mips/cavium/octe/ethernet-defines.h      |   51 -
 sys/mips/cavium/octe/ethernet-headers.h      |   51 -
 sys/mips/cavium/octe/ethernet-mdio.c         |  135 -
 sys/mips/cavium/octe/ethernet-mdio.h         |   40 -
 sys/mips/cavium/octe/ethernet-mem.c          |  100 -
 sys/mips/cavium/octe/ethernet-mem.h          |   33 -
 sys/mips/cavium/octe/ethernet-mv88e61xx.c    |  130 -
 sys/mips/cavium/octe/ethernet-mv88e61xx.h    |   36 -
 sys/mips/cavium/octe/ethernet-rgmii.c        |  292 --
 sys/mips/cavium/octe/ethernet-rx.c           |  379 ---
 sys/mips/cavium/octe/ethernet-rx.h           |   37 -
 sys/mips/cavium/octe/ethernet-sgmii.c        |   62 -
 sys/mips/cavium/octe/ethernet-spi.c          |  305 ---
 sys/mips/cavium/octe/ethernet-tx.c           |  271 --
 sys/mips/cavium/octe/ethernet-tx.h           |   33 -
 sys/mips/cavium/octe/ethernet-util.h         |   82 -
 sys/mips/cavium/octe/ethernet-xaui.c         |   61 -
 sys/mips/cavium/octe/ethernet.c              |  504 ----
 sys/mips/cavium/octe/mv88e61xxphy.c          |  631 -----
 sys/mips/cavium/octe/mv88e61xxphyreg.h       |  151 --
 sys/mips/cavium/octe/octe.c                  |  492 ----
 sys/mips/cavium/octe/octebus.c               |  124 -
 sys/mips/cavium/octe/octebusvar.h            |   44 -
 sys/mips/cavium/octe/wrapper-cvmx-includes.h |   52 -
 sys/mips/cavium/octeon_cop2.S                |  225 --
 sys/mips/cavium/octeon_cop2.h                |  212 --
 sys/mips/cavium/octeon_ds1337.c              |  217 --
 sys/mips/cavium/octeon_ebt3000_cf.c          |  730 -----
 sys/mips/cavium/octeon_gpio.c                |  508 ----
 sys/mips/cavium/octeon_gpiovar.h             |   58 -
 sys/mips/cavium/octeon_irq.h                 |  183 --
 sys/mips/cavium/octeon_machdep.c             |  698 -----
 sys/mips/cavium/octeon_mp.c                  |  156 --
 sys/mips/cavium/octeon_nmi.S                 |   47 -
 sys/mips/cavium/octeon_pci_console.c         |  238 --
 sys/mips/cavium/octeon_pcmap_regs.h          |   61 -
 sys/mips/cavium/octeon_pmc.c                 |  132 -
 sys/mips/cavium/octeon_rnd.c                 |  133 -
 sys/mips/cavium/octeon_rtc.c                 |  131 -
 sys/mips/cavium/octeon_wdog.c                |  278 --
 sys/mips/cavium/octopci.c                    |  994 -------
 sys/mips/cavium/octopci_bus_space.c          |  575 ----
 sys/mips/cavium/octopcireg.h                 |  106 -
 sys/mips/cavium/octopcivar.h                 |   37 -
 sys/mips/cavium/std.octeon1                  |   10 -
 sys/mips/cavium/uart_bus_octeonusart.c       |  113 -
 sys/mips/cavium/uart_cpu_octeonusart.c       |  175 --
 sys/mips/cavium/uart_dev_oct16550.c          |  846 ------
 sys/mips/cavium/usb/octusb.c                 | 1935 -------------
 sys/mips/cavium/usb/octusb.h                 |  138 -
 sys/mips/cavium/usb/octusb_octeon.c          |  218 --
 sys/mips/conf/ALFA_HORNET_UB                 |   59 -
 sys/mips/conf/ALFA_HORNET_UB.hints           |  105 -
 sys/mips/conf/AP121                          |   53 -
 sys/mips/conf/AP121.hints                    |  107 -
 sys/mips/conf/AP135                          |   66 -
 sys/mips/conf/AP135.hints                    |  179 --
 sys/mips/conf/AP143                          |   53 -
 sys/mips/conf/AP143.hints                    |  112 -
 sys/mips/conf/AP91                           |   66 -
 sys/mips/conf/AP91.hints                     |  104 -
 sys/mips/conf/AP93                           |   46 -
 sys/mips/conf/AP93.hints                     |  139 -
 sys/mips/conf/AP94                           |   37 -
 sys/mips/conf/AP94.hints                     |   28 -
 sys/mips/conf/AP96                           |   47 -
 sys/mips/conf/AP96.hints                     |   97 -
 sys/mips/conf/AR5312_BASE.hints              |   29 -
 sys/mips/conf/AR5315_BASE.hints              |   34 -
 sys/mips/conf/AR71XX_BASE                    |   66 -
 sys/mips/conf/AR71XX_BASE.hints              |   66 -
 sys/mips/conf/AR724X_BASE.hints              |   66 -
 sys/mips/conf/AR91XX_BASE.hints              |   59 -
 sys/mips/conf/AR933X_BASE.hints              |   69 -
 sys/mips/conf/AR934X_BASE.hints              |   76 -
 sys/mips/conf/BCM                            |  110 -
 sys/mips/conf/BCM.hints                      |    7 -
 sys/mips/conf/BERI_DE4.hints                 |   26 -
 sys/mips/conf/BERI_DE4_BASE                  |   60 -
 sys/mips/conf/BERI_DE4_MDROOT                |   21 -
 sys/mips/conf/BERI_DE4_SDROOT                |   16 -
 sys/mips/conf/BERI_NETFPGA_MDROOT            |   37 -
 sys/mips/conf/BERI_SIM_BASE                  |   21 -
 sys/mips/conf/BERI_SIM_MDROOT                |   20 -
 sys/mips/conf/BERI_SIM_SDROOT                |   17 -
 sys/mips/conf/BERI_SIM_VIRTIO                |   22 -
 sys/mips/conf/BERI_SOCKIT                    |   26 -
 sys/mips/conf/BERI_TPAD.hints                |   51 -
 sys/mips/conf/CANNA                          |   33 -
 sys/mips/conf/CARAMBOLA2                     |   58 -
 sys/mips/conf/CARAMBOLA2.hints               |  107 -
 sys/mips/conf/CI20                           |   36 -
 sys/mips/conf/DB120                          |   53 -
 sys/mips/conf/DB120.hints                    |  162 --
 sys/mips/conf/DEFAULTS                       |   14 -
 sys/mips/conf/DIR-655A1                      |   58 -
 sys/mips/conf/DIR-655A1.hints                |  179 --
 sys/mips/conf/DIR-825B1                      |   65 -
 sys/mips/conf/DIR-825B1.hints                |  140 -
 sys/mips/conf/DIR-825C1                      |   57 -
 sys/mips/conf/DIR-825C1.hints                |  157 --
 sys/mips/conf/ENH200                         |   46 -
 sys/mips/conf/ENH200.hints                   |  124 -
 sys/mips/conf/ERL                            |  218 --
 sys/mips/conf/JZ4780                         |  118 -
 sys/mips/conf/JZ4780.hints                   |    2 -
 sys/mips/conf/MALTA                          |   11 -
 sys/mips/conf/MALTA.hints                    |    5 -
 sys/mips/conf/MALTA64                        |   13 -
 sys/mips/conf/MALTA64EL                      |   11 -
 sys/mips/conf/MALTAEL                        |   11 -
 sys/mips/conf/MT7620.hints                   |  143 -
 sys/mips/conf/MT7620A_FDT                    |   77 -
 sys/mips/conf/MT7620N_FDT                    |   74 -
 sys/mips/conf/MT7621_FDT                     |   73 -
 sys/mips/conf/MT7628_FDT                     |   76 -
 sys/mips/conf/OCTEON1                        |  242 --
 sys/mips/conf/OCTEON1.hints                  |   13 -
 sys/mips/conf/ONIONOMEGA                     |   55 -
 sys/mips/conf/ONIONOMEGA.hints               |  132 -
 sys/mips/conf/PB47                           |   42 -
 sys/mips/conf/PB47.hints                     |   79 -
 sys/mips/conf/PB92                           |  135 -
 sys/mips/conf/PB92.hints                     |  113 -
 sys/mips/conf/PICOSTATION_M2HP               |   70 -
 sys/mips/conf/PICOSTATION_M2HP.hints         |  103 -
 sys/mips/conf/QCA953X_BASE                   |   78 -
 sys/mips/conf/QCA953X_BASE.hints             |   80 -
 sys/mips/conf/QCA955X_BASE.hints             |   89 -
 sys/mips/conf/ROCKET_M2HP                    |   70 -
 sys/mips/conf/ROCKET_M2HP.hints              |  103 -
 sys/mips/conf/ROUTERSTATION                  |   30 -
 sys/mips/conf/ROUTERSTATION.hints            |   52 -
 sys/mips/conf/ROUTERSTATION_MFS              |   21 -
 sys/mips/conf/RSPRO                          |   32 -
 sys/mips/conf/RSPRO.hints                    |   53 -
 sys/mips/conf/RSPRO_MFS                      |   25 -
 sys/mips/conf/RSPRO_STANDALONE               |   24 -
 sys/mips/conf/RT2880_FDT                     |   77 -
 sys/mips/conf/RT3050_FDT                     |   78 -
 sys/mips/conf/RT305X.hints                   |  137 -
 sys/mips/conf/RT3352_FDT                     |   74 -
 sys/mips/conf/RT3883_FDT                     |   82 -
 sys/mips/conf/RT5350.hints                   |   35 -
 sys/mips/conf/RT5350_FDT                     |   74 -
 sys/mips/conf/TL-ARCHERC7V2                  |   70 -
 sys/mips/conf/TL-ARCHERC7V2.hints            |  201 --
 sys/mips/conf/TL-WDR4300                     |   61 -
 sys/mips/conf/TL-WDR4300.hints               |  237 --
 sys/mips/conf/TL-WR1043NDv2                  |   53 -
 sys/mips/conf/TL-WR1043NDv2.hints            |  166 --
 sys/mips/conf/TL-WR740Nv4                    |   55 -
 sys/mips/conf/TL-WR740Nv4.hints              |   87 -
 sys/mips/conf/TP-MR3020                      |   57 -
 sys/mips/conf/TP-MR3020.hints                |   96 -
 sys/mips/conf/TP-MR3040                      |   70 -
 sys/mips/conf/TP-MR3040.hints                |  101 -
 sys/mips/conf/TP-WN1043ND                    |   63 -
 sys/mips/conf/TP-WN1043ND.hints              |  133 -
 sys/mips/conf/WZR-300HP                      |   52 -
 sys/mips/conf/WZR-300HP.hints                |  187 --
 sys/mips/conf/WZR-HPAG300H                   |   52 -
 sys/mips/conf/WZR-HPAG300H.hints             |  132 -
 sys/mips/conf/X1000                          |   96 -
 sys/mips/conf/X1000.hints                    |    2 -
 sys/mips/conf/XLP.hints                      |    6 -
 sys/mips/conf/XLP64                          |   29 -
 sys/mips/conf/XLPN32                         |   34 -
 sys/mips/conf/std.AR5312                     |   79 -
 sys/mips/conf/std.AR5315                     |   79 -
 sys/mips/conf/std.AR724X                     |   73 -
 sys/mips/conf/std.AR91XX                     |   64 -
 sys/mips/conf/std.AR933X                     |   76 -
 sys/mips/conf/std.AR934X                     |   77 -
 sys/mips/conf/std.AR_MIPS_BASE               |   92 -
 sys/mips/conf/std.BERI                       |   63 -
 sys/mips/conf/std.MALTA                      |   65 -
 sys/mips/conf/std.QCA955X                    |   76 -
 sys/mips/conf/std.XLP                        |  117 -
 sys/mips/include/_align.h                    |   55 -
 sys/mips/include/_bus.h                      |   51 -
 sys/mips/include/_inttypes.h                 |  224 --
 sys/mips/include/_limits.h                   |  102 -
 sys/mips/include/_stdint.h                   |  199 --
 sys/mips/include/_types.h                    |   99 -
 sys/mips/include/abi.h                       |   95 -
 sys/mips/include/asm.h                       |  686 -----
 sys/mips/include/atomic.h                    |  851 ------
 sys/mips/include/bootinfo.h                  |   87 -
 sys/mips/include/bus.h                       |  753 ------
 sys/mips/include/bus_dma.h                   |   37 -
 sys/mips/include/cache.h                     |  226 --
 sys/mips/include/cache_mipsNN.h              |   94 -
 sys/mips/include/cache_r4k.h                 |  436 ---
 sys/mips/include/cca.h                       |  153 --
 sys/mips/include/cdefs.h                     |   78 -
 sys/mips/include/clock.h                     |   45 -
 sys/mips/include/counter.h                   |   98 -
 sys/mips/include/cpu.h                       |   91 -
 sys/mips/include/cpufunc.h                   |  390 ---
 sys/mips/include/cpuinfo.h                   |   87 -
 sys/mips/include/cpuregs.h                   |  643 -----
 sys/mips/include/db_machdep.h                |   91 -
 sys/mips/include/dump.h                      |   79 -
 sys/mips/include/efi.h                       |   14 -
 sys/mips/include/elf.h                       |  217 --
 sys/mips/include/endian.h                    |   44 -
 sys/mips/include/exec.h                      |   42 -
 sys/mips/include/fdt.h                       |   47 -
 sys/mips/include/float.h                     |   99 -
 sys/mips/include/floatingpoint.h             |   45 -
 sys/mips/include/fls64.h                     |   50 -
 sys/mips/include/fpu.h                       |    9 -
 sys/mips/include/frame.h                     |  142 -
 sys/mips/include/gdb_machdep.h               |   77 -
 sys/mips/include/hwfunc.h                    |  111 -
 sys/mips/include/ieee.h                      |  156 --
 sys/mips/include/ieeefp.h                    |   34 -
 sys/mips/include/in_cksum.h                  |   54 -
 sys/mips/include/intr.h                      |   84 -
 sys/mips/include/intr_machdep.h              |   78 -
 sys/mips/include/kdb.h                       |   73 -
 sys/mips/include/limits.h                    |   47 -
 sys/mips/include/locore.h                    |   67 -
 sys/mips/include/md_var.h                    |   85 -
 sys/mips/include/memdev.h                    |   43 -
 sys/mips/include/metadata.h                  |   37 -
 sys/mips/include/minidump.h                  |   49 -
 sys/mips/include/mips_opcode.h               |  424 ---
 sys/mips/include/octeon_cop2.h               |  217 --
 sys/mips/include/ofw_machdep.h               |   47 -
 sys/mips/include/param.h                     |  188 --
 sys/mips/include/pcb.h                       |  143 -
 sys/mips/include/pcpu.h                      |   99 -
 sys/mips/include/pcpu_aux.h                  |   52 -
 sys/mips/include/pmap.h                      |  205 --
 sys/mips/include/pmc_mdep.h                  |   80 -
 sys/mips/include/proc.h                      |  102 -
 sys/mips/include/procctl.h                   |    4 -
 sys/mips/include/profile.h                   |  178 --
 sys/mips/include/pte.h                       |  209 --
 sys/mips/include/ptrace.h                    |   39 -
 sys/mips/include/reg.h                       |   93 -
 sys/mips/include/regdef.h                    |  110 -
 sys/mips/include/regnum.h                    |  211 --
 sys/mips/include/reloc.h                     |   37 -
 sys/mips/include/resource.h                  |   49 -
 sys/mips/include/runq.h                      |   62 -
 sys/mips/include/sc_machdep.h                |   73 -
 sys/mips/include/setjmp.h                    |   69 -
 sys/mips/include/sf_buf.h                    |   71 -
 sys/mips/include/sigframe.h                  |   65 -
 sys/mips/include/signal.h                    |   84 -
 sys/mips/include/smp.h                       |   52 -
 sys/mips/include/stdarg.h                    |   39 -
 sys/mips/include/sysarch.h                   |   51 -
 sys/mips/include/tlb.h                       |   62 -
 sys/mips/include/tls.h                       |   85 -
 sys/mips/include/trap.h                      |  124 -
 sys/mips/include/ucontext.h                  |  136 -
 sys/mips/include/vdso.h                      |   43 -
 sys/mips/include/vm.h                        |   46 -
 sys/mips/include/vmparam.h                   |  210 --
 sys/mips/ingenic/files.jz4780                |   40 -
 sys/mips/ingenic/files.x1000                 |   22 -
 sys/mips/ingenic/jz4780_aic.c                |  810 ------
 sys/mips/ingenic/jz4780_aic.h                |   74 -
 sys/mips/ingenic/jz4780_clk.h                |   93 -
 sys/mips/ingenic/jz4780_clk_gen.c            |  322 ---
 sys/mips/ingenic/jz4780_clk_otg.c            |  167 --
 sys/mips/ingenic/jz4780_clk_pll.c            |  234 --
 sys/mips/ingenic/jz4780_clock.c              |  830 ------
 sys/mips/ingenic/jz4780_clock.h              |   36 -
 sys/mips/ingenic/jz4780_codec.c              |  310 ---
 sys/mips/ingenic/jz4780_codec.h              |  102 -
 sys/mips/ingenic/jz4780_common.h             |   36 -
 sys/mips/ingenic/jz4780_cpuregs.h            |   73 -
 sys/mips/ingenic/jz4780_dme.c                |  124 -
 sys/mips/ingenic/jz4780_dwc_fdt.c            |  202 --
 sys/mips/ingenic/jz4780_efuse.c              |  213 --
 sys/mips/ingenic/jz4780_ehci.c               |  345 ---
 sys/mips/ingenic/jz4780_gpio.c               |  840 ------
 sys/mips/ingenic/jz4780_gpio_if.m            |   41 -
 sys/mips/ingenic/jz4780_intr.c               |  333 ---
 sys/mips/ingenic/jz4780_lcd.c                |  575 ----
 sys/mips/ingenic/jz4780_lcd.h                |  203 --
 sys/mips/ingenic/jz4780_machdep.c            |  242 --
 sys/mips/ingenic/jz4780_mmc.c                | 1004 -------
 sys/mips/ingenic/jz4780_mp.c                 |  182 --
 sys/mips/ingenic/jz4780_mpboot.S             |   45 -
 sys/mips/ingenic/jz4780_nand.c               |  123 -
 sys/mips/ingenic/jz4780_nemc.c               |  373 ---
 sys/mips/ingenic/jz4780_ohci.c               |  318 ---
 sys/mips/ingenic/jz4780_pdma.c               |  585 ----
 sys/mips/ingenic/jz4780_pdma.h               |  109 -
 sys/mips/ingenic/jz4780_pinctrl.c            |  259 --
 sys/mips/ingenic/jz4780_pinctrl.h            |   32 -
 sys/mips/ingenic/jz4780_regs.h               |  787 ------
 sys/mips/ingenic/jz4780_rtc.c                |  234 --
 sys/mips/ingenic/jz4780_smb.c                |  481 ----
 sys/mips/ingenic/jz4780_smb.h                |   97 -
 sys/mips/ingenic/jz4780_timer.c              |  338 ---
 sys/mips/ingenic/jz4780_uart.c               |  220 --
 sys/mips/malta/asm_malta.S                   |   92 -
 sys/mips/malta/files.malta                   |   16 -
 sys/mips/malta/gt.c                          |  131 -
 sys/mips/malta/gt_pci.c                      |  775 ------
 sys/mips/malta/gt_pci_bus_space.c            |  411 ---
 sys/mips/malta/gt_pci_bus_space.h            |   38 -
 sys/mips/malta/gtreg.h                       |  119 -
 sys/mips/malta/gtvar.h                       |   38 -
 sys/mips/malta/malta_machdep.c               |  371 ---
 sys/mips/malta/malta_mp.c                    |  285 --
 sys/mips/malta/maltareg.h                    |  244 --
 sys/mips/malta/obio.c                        |  184 --
 sys/mips/malta/obiovar.h                     |   60 -
 sys/mips/malta/std.malta                     |   11 -
 sys/mips/malta/uart_bus_maltausart.c         |   93 -
 sys/mips/malta/uart_cpu_maltausart.c         |   80 -
 sys/mips/malta/yamon.c                       |   68 -
 sys/mips/malta/yamon.h                       |   95 -
 sys/mips/mediatek/fdt_reset.c                |  124 -
 sys/mips/mediatek/fdt_reset.h                |   48 -
 sys/mips/mediatek/fdt_reset_if.m             |   58 -
 sys/mips/mediatek/files.mediatek             |   39 -
 sys/mips/mediatek/mtk_clock.c                |  158 --
 sys/mips/mediatek/mtk_dotg.c                 |  193 --
 sys/mips/mediatek/mtk_ehci.c                 |  217 --
 sys/mips/mediatek/mtk_gpio_v1.c              |  775 ------
 sys/mips/mediatek/mtk_gpio_v2.c              |  668 -----
 sys/mips/mediatek/mtk_intr_gic.c             |  370 ---
 sys/mips/mediatek/mtk_intr_v1.c              |  357 ---
 sys/mips/mediatek/mtk_intr_v2.c              |  352 ---
 sys/mips/mediatek/mtk_machdep.c              |  304 ---
 sys/mips/mediatek/mtk_ohci.c                 |  217 --
 sys/mips/mediatek/mtk_pcie.c                 | 1267 ---------
 sys/mips/mediatek/mtk_pcie.h                 |  156 --
 sys/mips/mediatek/mtk_pinctrl.c              |  240 --
 sys/mips/mediatek/mtk_pinctrl.h              |  373 ---
 sys/mips/mediatek/mtk_reset.c                |  139 -
 sys/mips/mediatek/mtk_soc.c                  |  509 ----
 sys/mips/mediatek/mtk_soc.h                  |  138 -
 sys/mips/mediatek/mtk_spi_v1.c               |  413 ---
 sys/mips/mediatek/mtk_spi_v1.h               |   71 -
 sys/mips/mediatek/mtk_spi_v2.c               |  355 ---
 sys/mips/mediatek/mtk_spi_v2.h               |   55 -
 sys/mips/mediatek/mtk_sysctl.c               |  191 --
 sys/mips/mediatek/mtk_sysctl.h               |   64 -
 sys/mips/mediatek/mtk_usb_phy.c              |  326 ---
 sys/mips/mediatek/mtk_usb_phy.h              |   66 -
 sys/mips/mediatek/mtk_xhci.c                 |  291 --
 sys/mips/mediatek/palmbus.c                  |   81 -
 sys/mips/mediatek/std.mediatek               |   87 -
 sys/mips/mediatek/std.rt2880                 |   86 -
 sys/mips/mediatek/uart_dev_mtk.c             |  551 ----
 sys/mips/mediatek/uart_dev_mtk.h             |  126 -
 sys/mips/mips/autoconf.c                     |  115 -
 sys/mips/mips/bcopy.S                        |  286 --
 sys/mips/mips/bus_space_generic.c            |  744 -----
 sys/mips/mips/busdma_machdep.c               | 1549 -----------
 sys/mips/mips/cache.c                        |  333 ---
 sys/mips/mips/cache_mipsNN.c                 | 1381 ----------
 sys/mips/mips/cpu.c                          |  587 ----
 sys/mips/mips/db_disasm.c                    |  399 ---
 sys/mips/mips/db_interface.c                 |  349 ---
 sys/mips/mips/db_trace.c                     |  446 ---
 sys/mips/mips/dump_machdep.c                 |   58 -
 sys/mips/mips/elf_machdep.c                  |  513 ----
 sys/mips/mips/elf_trampoline.c               |  225 --
 sys/mips/mips/exception.S                    | 1244 ---------
 sys/mips/mips/fp.S                           | 3610 ------------------------
 sys/mips/mips/freebsd32_machdep.c            |  488 ----
 sys/mips/mips/gdb_machdep.c                  |  190 --
 sys/mips/mips/genassym.c                     |  177 --
 sys/mips/mips/inckern.S                      |   47 -
 sys/mips/mips/intr_machdep.c                 |  302 ---
 sys/mips/mips/libkern_machdep.c              |   41 -
 sys/mips/mips/locore.S                       |  205 --
 sys/mips/mips/machdep.c                      |  580 ----
 sys/mips/mips/mem.c                          |  169 --
 sys/mips/mips/minidump_machdep.c             |  285 --
 sys/mips/mips/mips_pic.c                     |  712 -----
 sys/mips/mips/mp_machdep.c                   |  375 ---
 sys/mips/mips/mpboot.S                       |   89 -
 sys/mips/mips/nexus.c                        |  617 -----
 sys/mips/mips/octeon_cop2.c                  |   64 -
 sys/mips/mips/octeon_cop2_swtch.S            |  246 --
 sys/mips/mips/ofw_machdep.c                  |   74 -
 sys/mips/mips/pm_machdep.c                   |  517 ----
 sys/mips/mips/pmap.c                         | 3765 --------------------------
 sys/mips/mips/ptrace_machdep.c               |   38 -
 sys/mips/mips/sc_machdep.c                   |   88 -
 sys/mips/mips/stack_machdep.c                |  184 --
 sys/mips/mips/stdatomic.c                    |  415 ---
 sys/mips/mips/support.S                      |  807 ------
 sys/mips/mips/swtch.S                        |  691 -----
 sys/mips/mips/sys_machdep.c                  |   86 -
 sys/mips/mips/tick.c                         |  401 ---
 sys/mips/mips/tlb.c                          |  389 ---
 sys/mips/mips/trap.c                         | 1701 ------------
 sys/mips/mips/uio_machdep.c                  |  147 -
 sys/mips/mips/uma_machdep.c                  |   92 -
 sys/mips/mips/vm_machdep.c                   |  600 ----
 sys/mips/nlm/board.c                         |  538 ----
 sys/mips/nlm/board.h                         |  159 --
 sys/mips/nlm/board_cpld.c                    |  115 -
 sys/mips/nlm/board_eeprom.c                  |  174 --
 sys/mips/nlm/bus_space_rmi.c                 |  762 ------
 sys/mips/nlm/bus_space_rmi_pci.c             |  762 ------
 sys/mips/nlm/clock.h                         |   44 -
 sys/mips/nlm/cms.c                           |  497 ----
 sys/mips/nlm/dev/net/mdio.c                  |  335 ---
 sys/mips/nlm/dev/net/nae.c                   | 1456 ----------
 sys/mips/nlm/dev/net/sgmii.c                 |  211 --
 sys/mips/nlm/dev/net/ucore/crt0_basic.S      |   66 -
 sys/mips/nlm/dev/net/ucore/ld.ucore.S        |  162 --
 sys/mips/nlm/dev/net/ucore/ucore.h           |  353 ---
 sys/mips/nlm/dev/net/ucore/ucore_app.c       |   48 -
 sys/mips/nlm/dev/net/xaui.c                  |  250 --
 sys/mips/nlm/dev/net/xlpge.c                 | 1541 -----------
 sys/mips/nlm/dev/net/xlpge.h                 |  140 -
 sys/mips/nlm/dev/sec/nlmsec.c                |  692 -----
 sys/mips/nlm/dev/sec/nlmseclib.c             |  286 --
 sys/mips/nlm/dev/sec/nlmseclib.h             |  152 --
 sys/mips/nlm/dev/sec/rsa_ucode.h             |  958 -------
 sys/mips/nlm/files.xlp                       |   38 -
 sys/mips/nlm/hal/bridge.h                    |  186 --
 sys/mips/nlm/hal/cop2.h                      |  304 ---
 sys/mips/nlm/hal/cpucontrol.h                |  195 --
 sys/mips/nlm/hal/fmn.c                       |  356 ---
 sys/mips/nlm/hal/fmn.h                       |  247 --
 sys/mips/nlm/hal/gbu.h                       |  102 -
 sys/mips/nlm/hal/haldefs.h                   |  439 ---
 sys/mips/nlm/hal/interlaken.h                |   72 -
 sys/mips/nlm/hal/iomap.h                     |  208 --
 sys/mips/nlm/hal/mdio.h                      |  108 -
 sys/mips/nlm/hal/mips-extns.h                |  276 --
 sys/mips/nlm/hal/mmu.h                       |  166 --
 sys/mips/nlm/hal/nae.h                       |  658 -----
 sys/mips/nlm/hal/nlm_hal.c                   |  114 -
 sys/mips/nlm/hal/nlmsaelib.h                 |  607 -----
 sys/mips/nlm/hal/pcibus.h                    |  123 -
 sys/mips/nlm/hal/pic.h                       |  313 ---
 sys/mips/nlm/hal/poe.h                       |  354 ---
 sys/mips/nlm/hal/sgmii.h                     |  219 --
 sys/mips/nlm/hal/sys.h                       |  161 --
 sys/mips/nlm/hal/uart.h                      |  190 --
 sys/mips/nlm/hal/ucore_loader.h              |  143 -
 sys/mips/nlm/hal/usb.h                       |   60 -
 sys/mips/nlm/hal/xaui.h                      |  195 --
 sys/mips/nlm/interrupt.h                     |   76 -
 sys/mips/nlm/intr_machdep.c                  |  360 ---
 sys/mips/nlm/mpreset.S                       |  201 --
 sys/mips/nlm/msgring.h                       |   54 -
 sys/mips/nlm/std.xlp                         |    7 -
 sys/mips/nlm/tick.c                          |  386 ---
 sys/mips/nlm/uart_cpu_xlp.c                  |   97 -
 sys/mips/nlm/usb_init.c                      |   91 -
 sys/mips/nlm/xlp.h                           |  139 -
 sys/mips/nlm/xlp_machdep.c                   |  717 -----
 sys/mips/nlm/xlp_pci.c                       |  579 ----
 sys/mips/nlm/xlp_simplebus.c                 |  314 ---
 594 files changed, 4 insertions(+), 134562 deletions(-)

diff --git a/sys/conf/Makefile.mips b/sys/conf/Makefile.mips
deleted file mode 100644
index e8dd61d10a1d..000000000000
--- a/sys/conf/Makefile.mips
+++ /dev/null
@@ -1,110 +0,0 @@
-# Makefile.mips
-# $FreeBSD$
-#
-# Makefile for FreeBSD
-#
-# This makefile is constructed from a machine description:
-#	config machineid
-# Most changes should be made in the machine description
-#	/sys/mips/conf/``machineid''
-# after which you should do
-#	 config machineid
-# Generic makefile changes should be made in
-#	/sys/conf/Makefile.mips
-# after which config should be rerun for all machines.
-#
-
-# Which version of config(8) is required.
-%VERSREQ=	600012
-
-STD8X16FONT?=	iso
-
-.if !defined(S)
-.if exists(./@/.)
-S=	./@
-.else
-S=	../../..
-.endif
-.endif
-.include "$S/conf/kern.pre.mk"
-
-INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include
-
-LDSCRIPT_NAME?=ldscript.$M
-SYSTEM_LD:= ${SYSTEM_LD:$S/conf/${LDSCRIPT_NAME}=${LDSCRIPT_NAME}}
-SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/${LDSCRIPT_NAME}=${LDSCRIPT_NAME}}
-
-KERNLOADADDR?=0x80001000
-# This obscure value is defined by CFE for WR160N
-# To be changed later
-TRAMPLOADADDR?=0x807963c0
-
-# We default to the MIPS32 ISA for O32 and MIPS64 ISA for N64 and N32
-# if none is specified in the kernel configuration file.
-.if ${MACHINE_ARCH:Mmips64*} != "" || ${MACHINE_ARCH:Mmipsn32*} != ""
-ARCH_FLAGS?=-march=mips64
-.else
-ARCH_FLAGS?=-march=mips32
-.endif
-ARCH_FLAGS+=-mabi=${MIPS_ABI}
-EXTRA_FLAGS=-fno-pic -mno-abicalls -G0 -DKERNLOADADDR=${KERNLOADADDR}
-EXTRA_FLAGS+=-${MIPS_ENDIAN}
-
-# We add the -fno-pic flag to kernels because otherwise performance
-# is extremely poor, as well as -mno-abicalls to force no ABI usage.
-CFLAGS+=${EXTRA_FLAGS} $(ARCH_FLAGS)
-TRAMP_ARCH_FLAGS?=$(ARCH_FLAGS)
-TRAMP_EXTRA_FLAGS=${EXTRA_FLAGS} ${TRAMP_ARCH_FLAGS}
-# Kernel code is always compiled with soft-float on MIPS
-TRAMP_EXTRA_FLAGS+=-msoft-float
-# No standard library available
-TRAMP_EXTRA_FLAGS+=-ffreestanding
-.if ${MACHINE_ARCH:Mmips64*} != ""
-TRAMP_ELFSIZE=64
-.else
-TRAMP_ELFSIZE=32
-.endif
-
-ASM_CFLAGS+=${CFLAGS} -D_LOCORE -DLOCORE
-
-.if !defined(WITHOUT_KERNEL_TRAMPOLINE)
-KERNEL_EXTRA=trampoline
-KERNEL_EXTRA_INSTALL=${KERNEL_KO}.tramp.bin
-trampoline: ${KERNEL_KO}.tramp.bin
-${KERNEL_KO}.tramp.bin: ${KERNEL_KO} $S/$M/$M/elf_trampoline.c \
-	$S/$M/$M/inckern.S 
-	${OBJCOPY} --strip-symbol '$$d' --strip-symbol '$$a' \
-		-g --strip-symbol '$$t' ${FULLKERNEL} ${KERNEL_KO}.tmp
-	sed -e s/${KERNLOADADDR}/${TRAMPLOADADDR}/ -e s/" + SIZEOF_HEADERS"// \
-		 ${LDSCRIPT_NAME} > ${LDSCRIPT_NAME}.tramp.noheader
-	${CC} -O -nostdlib -I. -I$S ${TRAMP_EXTRA_FLAGS} ${TRAMP_LDFLAGS} -Xlinker \
-		-T -Xlinker ${LDSCRIPT_NAME}.tramp.noheader \
-		-DKERNNAME="\"${KERNEL_KO}.tmp\"" -DELFSIZE=${TRAMP_ELFSIZE} \
-		-fno-asynchronous-unwind-tables \
-		$S/$M/$M/inckern.S $S/$M/$M/elf_trampoline.c \
-		-o ${KERNEL_KO}.tramp.elf
-	${OBJCOPY} -S -O binary ${KERNEL_KO}.tramp.elf \
-		${KERNEL_KO}.tramp.bin
-.endif
-
-%BEFORE_DEPEND
-
-%OBJS
-
-%FILES.c
-
-%FILES.s
-
-%FILES.m
-
-%CLEAN
-
-CLEAN+=	${LDSCRIPT_NAME} ${LDSCRIPT_NAME}.tramp.noheader \
-	${KERNEL_KO}.tramp.elf ${KERNEL_KO}.tramp.bin
-
-${LDSCRIPT_NAME}: $S/conf/${LDSCRIPT_NAME}
-	sed s/KERNLOADADDR/${KERNLOADADDR}/g $S/conf/${LDSCRIPT_NAME} \
-		> ${LDSCRIPT_NAME}
-%RULES
-
-.include "$S/conf/kern.post.mk"
diff --git a/sys/conf/config.mk b/sys/conf/config.mk
index fb0545daaf75..96b03da27980 100644
--- a/sys/conf/config.mk
+++ b/sys/conf/config.mk
@@ -10,11 +10,9 @@
 .if !defined(KERNBUILDDIR)
 opt_global.h:
 	touch ${.TARGET}
-.if ${MACHINE} != "mips"
 	@echo "#define SMP 1" >> ${.TARGET}
 	@echo "#define MAC 1" >> ${.TARGET}
 	@echo "#define VIMAGE 1" >> ${.TARGET}
-.endif
 .if ${MK_BHYVE_SNAPSHOT} != "no"
 opt_bhyve_snapshot.h:
 	@echo "#define BHYVE_SNAPSHOT 1" > ${.TARGET}
diff --git a/sys/conf/files.mips b/sys/conf/files.mips
deleted file mode 100644
index 777d4af57c06..000000000000
--- a/sys/conf/files.mips
+++ /dev/null
@@ -1,114 +0,0 @@
-# This file tells config what files go into building a kernel,
-# files marked standard are always included.
-#
-# $FreeBSD$
-#
-
-# Arch dependent files
-mips/mips/autoconf.c			standard
-mips/mips/bus_space_generic.c		standard
-mips/mips/busdma_machdep.c		standard
-mips/mips/cache.c			standard
-mips/mips/cache_mipsNN.c		standard
-mips/mips/cpu.c				standard
-mips/mips/db_disasm.c			optional	ddb
-mips/mips/db_interface.c		optional	ddb
-mips/mips/db_trace.c			optional	ddb
-mips/mips/dump_machdep.c		standard
-mips/mips/elf_machdep.c			standard
-mips/mips/exception.S			standard
-mips/mips/fp.S				standard
-mips/mips/freebsd32_machdep.c		optional	compat_freebsd32
-mips/mips/gdb_machdep.c			standard
-mips/mips/libkern_machdep.c		standard
-mips/mips/locore.S			standard	no-obj
-mips/mips/machdep.c			standard
-mips/mips/mem.c				optional	mem
-mips/mips/minidump_machdep.c		standard
-mips/mips/mp_machdep.c			optional	smp
-mips/mips/mpboot.S			optional	smp
-mips/mips/nexus.c			standard
-mips/mips/ofw_machdep.c			optional	fdt
-mips/mips/pm_machdep.c			standard
-mips/mips/pmap.c			standard
-mips/mips/ptrace_machdep.c		standard
-mips/mips/sc_machdep.c			standard
-mips/mips/stack_machdep.c		optional	ddb | stack
-mips/mips/stdatomic.c			standard \
-	compile-with "${NORMAL_C:N-Wmissing-prototypes}"
-mips/mips/support.S			standard
-mips/mips/bcopy.S			standard
-mips/mips/swtch.S			standard
-mips/mips/sys_machdep.c			standard
-mips/mips/tlb.c				standard
-mips/mips/trap.c			standard
-mips/mips/uio_machdep.c			standard
-mips/mips/uma_machdep.c			standard
-mips/mips/vm_machdep.c			standard
-
-# misc opt-in bits
-kern/link_elf_obj.c			standard
-kern/subr_atomic64.c			optional	mips | mipsel | mipshf | mipselhf
-kern/subr_busdma_bufalloc.c		standard
-kern/subr_dummy_vdso_tc.c		standard
-kern/subr_sfbuf.c			optional	mips | mipsel | mipsn32
-kern/subr_sfbuf.c			optional	mipshf | mipselhf
-
-# gcc/clang runtime
-libkern/ffsl.c				standard
-libkern/ffsll.c				standard
-libkern/fls.c				standard
-libkern/flsl.c				standard
-libkern/flsll.c				standard
-libkern/cmpdi2.c			optional	mips | mipshf | mipsel | mipselhf
-libkern/ucmpdi2.c			optional	mips | mipshf | mipsel | mipselhf
-libkern/ashldi3.c			standard
-libkern/ashrdi3.c			standard
-libkern/memcmp.c			standard
-libkern/strlen.c			standard
-
-# cfe support
-dev/cfe/cfe_api.c			optional	cfe
-dev/cfe/cfe_console.c			optional	cfe_console
-dev/cfe/cfe_env.c			optional	cfe_env
-
-# syscons support
-dev/fb/fb.c				optional	sc
-dev/syscons/scgfbrndr.c			optional	sc
-mips/mips/sc_machdep.c			optional	sc
-
-# FDT support
-dev/uart/uart_cpu_fdt.c			optional	uart fdt
-
-# crypto support -- use generic
-crypto/des/des_enc.c			optional	netsmb
-
-# AP common nvram interface MIPS specific, but maybe should be more generic
-dev/nvram2env/nvram2env_mips.c		optional	nvram2env
-dev/nvram2env/nvram2env.c		optional	nvram2env
-
-# hwpmc support
-dev/hwpmc/hwpmc_beri.c			optional	hwpmc_beri
-dev/hwpmc/hwpmc_mips.c			optional	hwpmc_mips24k | \
-	hwpmc_mips74k
-dev/hwpmc/hwpmc_mips24k.c		optional	hwpmc_mips24k
-dev/hwpmc/hwpmc_mips74k.c		optional	hwpmc_mips74k
-
-# ofw support
-dev/ofw/ofw_pcib.c			optional	fdt pci
-
-# INTRNG support code
-kern/msi_if.m				optional	intrng
-kern/pic_if.m				optional	intrng
-kern/subr_intr.c			optional	intrng
-# INTRNG compatible MIPS32 interrupt controller
-mips/mips/mips_pic.c			optional	intrng
-
-# DTrace
-cddl/compat/opensolaris/kern/opensolaris_atomic.c	optional zfs | dtrace compile-with "${CDDL_C}"
-cddl/dev/dtrace/mips/dtrace_asm.S			optional dtrace compile-with "${DTRACE_S}"
-cddl/dev/dtrace/mips/dtrace_subr.c			optional dtrace compile-with "${DTRACE_C}"
-cddl/dev/fbt/mips/fbt_isa.c				optional dtrace_fbt | dtraceall compile-with "${FBT_C}"
-
-# Zstd
-contrib/zstd/lib/freebsd/zstd_kfreebsd.c		optional zstdio compile-with ${ZSTD_C}
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 859719db0083..3d71f9e2b5e2 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -192,14 +192,6 @@ CFLAGS.gcc+=	-mno-spe
 CFLAGS+=	-mabi=elfv2
 .endif
 
-#
-# For MIPS we also tell gcc to use floating point emulation
-#
-.if ${MACHINE_CPUARCH} == "mips"
-CFLAGS+=	-msoft-float
-INLINE_LIMIT?=	8000
-.endif
-
 #
 # GCC 3.0 and above like to do certain optimizations based on the
 # assumption that the program is linked against libc.  Stop this.
@@ -307,16 +299,6 @@ LD_EMULATION_arm=armelf_fbsd
 LD_EMULATION_armv6=armelf_fbsd
 LD_EMULATION_armv7=armelf_fbsd
 LD_EMULATION_i386=elf_i386_fbsd
-LD_EMULATION_mips= elf32btsmip_fbsd
-LD_EMULATION_mipshf= elf32btsmip_fbsd
-LD_EMULATION_mips64= elf64btsmip_fbsd
-LD_EMULATION_mips64hf= elf64btsmip_fbsd
-LD_EMULATION_mipsel= elf32ltsmip_fbsd
-LD_EMULATION_mipselhf= elf32ltsmip_fbsd
-LD_EMULATION_mips64el= elf64ltsmip_fbsd
-LD_EMULATION_mips64elhf= elf64ltsmip_fbsd
-LD_EMULATION_mipsn32= elf32btsmipn32_fbsd
-LD_EMULATION_mipsn32el= elf32btsmipn32_fbsd   # I don't think this is a thing that works
 LD_EMULATION_powerpc= elf32ppc_fbsd
 LD_EMULATION_powerpcspe= elf32ppc_fbsd
 LD_EMULATION_powerpc64= elf64ppc_fbsd
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk
index 7361cdd70076..20c6b4153d11 100644
--- a/sys/conf/kern.opts.mk
+++ b/sys/conf/kern.opts.mk
@@ -79,10 +79,6 @@ BROKEN_OPTIONS+= CDDL ZFS
 . endif
 .endif
 
-.if ${MACHINE_CPUARCH} == "mips"
-BROKEN_OPTIONS+= CDDL ZFS SSP
-.endif
-
 .if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} == "powerpc"
 BROKEN_OPTIONS+= ZFS
 .endif
@@ -98,8 +94,8 @@ BROKEN_OPTIONS+= OFED
 BROKEN_OPTIONS+= KERNEL_RETPOLINE
 .endif
 
-# EFI doesn't exist on mips, powerpc, or riscv.
-.if ${MACHINE:Mmips} || ${MACHINE:Mpowerpc} || ${MACHINE:Mriscv}
+# EFI doesn't exist on powerpc, or riscv
+.if ${MACHINE:Mpowerpc} || ${MACHINE:Mriscv}
 BROKEN_OPTIONS+=EFI
 .endif
 
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 0daf5a54938b..ac0580927ef8 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -74,9 +74,6 @@ CFLAGS=	${COPTFLAGS} ${DEBUG}
 CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
 CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100
 CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000
-.if ${MACHINE_CPUARCH} == "mips"
-CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 -DMACHINE_ARCH='"${MACHINE_ARCH}"'
-.endif
 CFLAGS.gcc+= -fms-extensions -finline-limit=${INLINE_LIMIT}
 CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH}
 CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH}
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index c0ad352bf625..ee6aaa8aba0b 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -80,8 +80,8 @@ OBJCOPY?=	objcopy
 
 .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S .m
 
-# amd64 and mips use direct linking for kmod, all others use shared binaries
-.if ${MACHINE_CPUARCH} != amd64 && ${MACHINE_CPUARCH} != mips
+# amd64 uses direct linking for kmod, all others use shared binaries
+.if ${MACHINE_CPUARCH} != amd64
 __KLD_SHARED=yes
 .else
 __KLD_SHARED=no
@@ -173,10 +173,6 @@ LDFLAGS+=	--no-toc-optimize
 .endif
 .endif
 
-.if ${MACHINE_CPUARCH} == mips
-CFLAGS+=	-G0 -fno-pic -mno-abicalls -mlong-calls
-.endif
-
 .if defined(DEBUG) || defined(DEBUG_FLAGS)
 CTFFLAGS+=	-g
 .endif
diff --git a/sys/conf/ldscript.mips b/sys/conf/ldscript.mips
deleted file mode 100644
index 5fb902c601d6..000000000000
--- a/sys/conf/ldscript.mips
+++ /dev/null
@@ -1,300 +0,0 @@
-/*-
- * Copyright (c) 2001, 2004, 2008, Juniper Networks, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the Juniper Networks, Inc. nor the names of its
*** 137806 LINES SKIPPED ***