Home | History | Annotate | only in /src/sys/arch/ews4800mips
History log of /src/sys/arch/ews4800mips
RevisionDateAuthorComments
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.68 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.67 12-Feb-2023  abs Add optoion GENERIC.local include to the end of ~all GENERIC configs

This excludes atari, sgimips, evbmips, evbppc, evbsh3, and hpcarm
all of which have somewhat specific kernel config file layouts
 1.66 29-Sep-2022  riastradh swwdog(4): Add to GENERIC kernels.

Plus a handful of others that I'm familiar with. Lots of special-
purpose kernels should probably have this too but I'm not going
through all the arm, mips, and ppc evaluation board kernels to see
which ones are relevant.

Omitted from systems I know to be very small:
- sun2/GENERIC
- dreamcast/GENERIC
Feel free to remove it from others that need to be kept smaller.

Compile-tested a few of these just in case:
- alpha/GENERIC
- amd64/GENERIC
- evbmips/OCTEON
- i386/GENERIC
- riscv/GENERIC

PR kern/29702
 1.65 07-Aug-2022  simonb UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
 1.64 26-Dec-2021  andvar fix various typos, mainly in comments.
 1.63 21-Jan-2021  nia add a commented out compat_ossaudio wherever there's compat_linux

requested by mrg
 1.62 27-Sep-2020  roy branches: 1.62.2;
vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.61 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.60 25-Mar-2020  jdolecek remove 'file-system SMBFS' and 'pseudo-device nsmb' from all kernel configs
to prepare for their eventual removal
 1.59 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.58 26-Apr-2019  sevan branches: 1.58.4;
Enable BUFQ_PRIOCSCAN, CARP, Veriexec by default in GENERIC kernel configs.
On ports without a GENERIC kernel config enable in individul files, e.g evbmips.
Omit on:
atari, dreamcast, emips, epoc32, evbppc/VIRTEX*, ia64, luna68x, mvme68k,
mvmeppc, playstation2, riscv, sun2, sun3, x68k, zaurus due to resource
constraints or port infancy.
 1.57 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.56 23-Jan-2018  sevan branches: 1.56.2; 1.56.4;
Alternate buffer queue strategies no longer considered experimental, update
or add new description for files missed out in the previous run.
 1.55 14-Sep-2017  mrg clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.54 13-Sep-2017  sevan Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_MD5 options.
These algorithms are either broken or on their way to being broken.

Discussed on tech-security
http://mail-index.netbsd.org/tech-security/2017/08/21/msg000936.html

ok riastradh
 1.53 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.52 12-Aug-2015  maxv branches: 1.52.10;
Remove KMEMSTATS.
 1.51 16-Nov-2014  manu branches: 1.51.2;
Remove unused extended attributes kernel options

As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
 1.50 12-Nov-2014  manu Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels

This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
 1.49 23-Aug-2014  dholland Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.48 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.47 20-Jul-2014  alnsn branches: 1.47.2;
Add commented out bpfjit options to mips kernels.
While here, add 2 missing RCS ids.
 1.46 24-Mar-2014  szptvlfn branches: 1.46.2;
fix manual section numbering of sysctl.
thanks wiz@
 1.45 30-Jun-2013  rmind G/C PFIL_HOOKS from the kernel configs.
 1.44 05-Jun-2013  christos branches: 1.44.2;
remove obsolete networking options
 1.43 27-Apr-2013  christos the bogus number police
 1.42 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.41 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.40 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.39 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.38 17-Aug-2012  abs branches: 1.38.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.37 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.36 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.35 22-Nov-2011  tls branches: 1.35.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.34 06-Mar-2011  bouyer branches: 1.34.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.33 23-Nov-2010  hannken branches: 1.33.2; 1.33.4;
Remove unused count from pseudo-device md.
 1.32 08-May-2010  mrg enable IPFILTER_COMPAT in all kernels that have ipfilter already.
canonicalise several of the ipf option segments in various files
(this mostly means adding commented out IPFILTER_DEFAULT_BLOCK,
or adding commented or uncommented IPFILTER_LOG or IPFILTER_LOOKUP
option statements.)

i built about 20 of these kernels to check, but not all of them.
 1.31 29-Apr-2010  chs enable TMPFS in all GENERICs that have MFS enabled.
 1.30 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.29 05-Dec-2009  pooka branches: 1.29.2; 1.29.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.28 24-Jan-2009  mrg add COMPAT_50 to all the configs with COMPAT_40.
 1.27 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

Proposed on tech-kern@.
 1.26 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.25 10-Aug-2008  tls branches: 1.25.2;
Add accept filters to GENERIC kernels where they exist.
 1.24 31-Jul-2008  simonb Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.23 30-Jan-2008  tsutsui branches: 1.23.6; 1.23.10; 1.23.12; 1.23.16;
Optimize for R4400 with CPUFLAGS since we don't support MIPS1 based EWS4800.
 1.22 31-Dec-2007  ad Remove systrace. Ok core@.
 1.21 04-Nov-2007  xtraeme branches: 1.21.2; 1.21.8;
Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
 1.20 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.19 29-Jun-2007  tsutsui branches: 1.19.8; 1.19.10; 1.19.14;
Add options COMPAT_40.
 1.18 04-Jun-2007  martin Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.17 11-Nov-2006  jmmv branches: 1.17.2; 1.17.8; 1.17.10; 1.17.16; 1.17.18;
Remove tmpfs's experimental status. OK'ed by core@.
 1.16 27-Sep-2006  manu - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
 1.15 27-Aug-2006  tsutsui branches: 1.15.2; 1.15.4;
- add "zsc1 at sbdio?" so that ewskbd and ewsms are attached properly (oops)
- fix typo in a commented out entry
 1.14 26-Aug-2006  christos PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.13 26-Aug-2006  tsutsui Remove netns and netccitt options.
 1.12 26-Aug-2006  tsutsui Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.11 12-Aug-2006  christos Disable SYSTRACE by default on all kernels (discussed with core)
 1.10 28-Jun-2006  liamjfoy branches: 1.10.2;
Add CARP to GENERIC kernel configs. CARP is not enabled by default.

ok: christos
 1.9 28-Mar-2006  pavel branches: 1.9.4; 1.9.6;
Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
 1.8 25-Feb-2006  christos branches: 1.8.2; 1.8.4; 1.8.6;
remove vinum
 1.7 05-Feb-2006  cube Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.6 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.5 02-Feb-2006  reinoud branches: 1.5.2;
Add commented out UDF file-system entry in all GENERIC configurations.
 1.4 08-Jan-2006  tsutsui branches: 1.4.2;
Remove duplicated veriexec options.
 1.3 05-Jan-2006  tsutsui Add commented out veriexec options.
 1.2 05-Jan-2006  tsutsui Fix a typo in comment.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.3 01-Mar-2006  yamt sync with head.
 1.1.2.2 18-Feb-2006  yamt sync with head.
 1.1.2.1 15-Jan-2006  yamt sync with head.
 1.4.2.1 09-Sep-2006  rpaulo sync with head
 1.5.2.1 22-Apr-2006  simonb Sync with head.
 1.8.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.8.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.8.2.3 03-Sep-2006  yamt sync with head.
 1.8.2.2 11-Aug-2006  yamt sync with head
 1.8.2.1 01-Apr-2006  yamt sync with head.
 1.9.6.7 04-Feb-2008  yamt sync with head.
 1.9.6.6 21-Jan-2008  yamt sync with head
 1.9.6.5 15-Nov-2007  yamt sync with head.
 1.9.6.4 03-Sep-2007  yamt sync with head.
 1.9.6.3 30-Dec-2006  yamt sync with head.
 1.9.6.2 21-Jun-2006  yamt sync with head.
 1.9.6.1 28-Mar-2006  yamt file GENERIC was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.9.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.10.2.3 22-Sep-2006  riz Pull up following revision(s) (requested by tsutsui in ticket #170):
sys/arch/sparc64/conf/GENERIC: revision 1.63
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.55
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.54
sys/arch/next68k/conf/GENERIC: revision 1.105
sys/arch/ews4800mips/conf/GENERIC: revision 1.12
sys/arch/arc/conf/GENERIC: revision 1.142
sys/arch/sun3/conf/GENERIC3X: revision 1.91
sys/arch/amd64/conf/GENERIC: revision 1.105
sys/arch/sun2/conf/GENERIC: revision 1.58
sys/arch/amiga/conf/GENERIC.in: revision 1.55
sys/arch/mac68k/conf/GENERIC: revision 1.175
sys/arch/acorn26/conf/GENERIC: revision 1.46
sys/arch/shark/conf/GENERIC: revision 1.65
sys/arch/cesfic/conf/GENERIC: revision 1.45
sys/arch/sandpoint/conf/GENERIC: revision 1.36
sys/arch/iyonix/conf/GENERIC: revision 1.32
sys/arch/mvme68k/conf/GENERIC: revision 1.69
sys/arch/evbarm/conf/ARMADILLO210: revision 1.3
sys/arch/vax/conf/GENERIC: revision 1.154
sys/arch/mipsco/conf/GENERIC: revision 1.61
sys/arch/evbarm/conf/ARMADILLO9: revision 1.14
sys/arch/cobalt/conf/GENERIC: revision 1.103
sys/arch/ofppc/conf/GENERIC: revision 1.94
sys/arch/hp700/conf/GENERIC: revision 1.69
sys/arch/playstation2/conf/GENERIC: revision 1.8
sys/arch/dreamcast/conf/GENERIC: revision 1.73
sys/arch/news68k/conf/GENERIC: revision 1.81
sys/arch/macppc/conf/GENERIC: revision 1.234
sys/arch/hp300/conf/GENERIC: revision 1.134
sys/arch/mmeye/conf/GENERIC: revision 1.83
sys/arch/ibmnws/conf/GENERIC: revision 1.26
sys/arch/cats/conf/GENERIC: revision 1.109
sys/arch/sparc/conf/GENERIC: revision 1.191
sys/arch/pdp10/conf/GENERIC: revision 1.27
sys/arch/acorn32/conf/GENERIC: revision 1.75
sys/arch/luna68k/conf/GENERIC: revision 1.74
sys/arch/bebox/conf/GENERIC: revision 1.101
sys/arch/pmax/conf/GENERIC: revision 1.148
sys/arch/x68k/conf/GENERIC: revision 1.130
sys/arch/sun3/conf/GENERIC: revision 1.134
sys/arch/prep/conf/GENERIC: revision 1.126
sys/arch/alpha/conf/GENERIC: revision 1.293
sys/arch/newsmips/conf/GENERIC: revision 1.94
sys/arch/netwinder/conf/GENERIC: revision 1.83
sys/arch/hpcsh/conf/GENERIC: revision 1.69
sys/arch/sbmips/conf/GENERIC: revision 1.55
sys/arch/pc532/conf/GENERIC: revision 1.65
sys/arch/hpcmips/conf/GENERIC: revision 1.192
Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.10.2.2 01-Sep-2006  riz Pull up following revision(s) (requested by tsutsui in ticket #90):
sys/arch/ews4800mips/conf/GENERIC: revision 1.15
- add "zsc1 at sbdio?" so that ewskbd and ewsms are attached properly (oops)
- fix typo in a commented out entry
 1.10.2.1 14-Aug-2006  tron Pull up following revision(s) (requested by elad in ticket #17):
sys/arch/sparc/conf/KRUPS: revision 1.38
sys/arch/i386/conf/XEN2_DOMU: revision 1.2
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.197
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.53
sys/arch/evbsh5/conf/SIMULATOR: revision 1.12
sys/arch/sparc/conf/MRCOFFEE: revision 1.17
sys/arch/next68k/conf/GENERIC: revision 1.104
sys/arch/i386/conf/VIRTUALPC: revision 1.44
sys/arch/ews4800mips/conf/GENERIC: revision 1.11
sys/arch/evbsh5/conf/CAYMAN: revision 1.23
sys/arch/arc/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/GENERIC: revision 1.103
sys/arch/sun3/conf/GENERIC3X: revision 1.90
sys/arch/evbarm/conf/HDL_G: revision 1.3
sys/arch/sun2/conf/GENERIC: revision 1.57
sys/arch/news68k/conf/GENERIC_TINY: revision 1.51
sys/arch/evbppc/conf/EXPLORA451: revision 1.27
sys/arch/amiga/conf/GENERIC.in: revision 1.54
sys/arch/mac68k/conf/GENERIC: revision 1.174
sys/arch/acorn26/conf/GENERIC: revision 1.45
sys/arch/shark/conf/GENERIC: revision 1.64
sys/arch/cesfic/conf/GENERIC: revision 1.44
sys/arch/mvme68k/conf/GENERIC: revision 1.68
sys/arch/i386/conf/XEN2_DOM0: revision 1.4
sys/arch/atari/conf/GENERIC.in: revision 1.63
sys/arch/amiga/conf/GENERIC: revision 1.240
sys/arch/i386/conf/LAMB: revision 1.65
sys/arch/i386/conf/GENERIC: revision 1.773
sys/arch/acorn32/conf/EB7500ATX: revision 1.26
sys/arch/x68k/conf/GENERIC: revision 1.128
sys/arch/vax/conf/GENERIC: revision 1.153
sys/arch/atari/conf/ATARITT: revision 1.81
sys/arch/mipsco/conf/GENERIC: revision 1.60
sys/arch/cobalt/conf/GENERIC: revision 1.101
sys/arch/evbarm/conf/ARMADILLO9: revision 1.13
sys/arch/ofppc/conf/GENERIC: revision 1.93
sys/arch/atari/conf/MILAN-PCIIDE: revision 1.51
sys/arch/arc/conf/RPC44: revision 1.26
sys/arch/sparc64/conf/GENERIC: revision 1.59
sys/arch/i386/conf/XEN3_DOMU: revision 1.2
sys/arch/hp700/conf/GENERIC: revision 1.68
sys/arch/atari/conf/MILAN-ISAIDE: revision 1.47
sys/arch/macppc/conf/GENERIC: revision 1.231
sys/arch/dreamcast/conf/GENERIC: revision 1.72
sys/arch/news68k/conf/GENERIC: revision 1.80
sys/arch/hp300/conf/GENERIC: revision 1.133
sys/arch/mmeye/conf/GENERIC: revision 1.82
sys/arch/macppc/conf/MAMBO: revision 1.2
sys/arch/cats/conf/GENERIC: revision 1.107
sys/arch/atari/conf/FALCON: revision 1.79
sys/arch/acorn32/conf/GENERIC: revision 1.71
sys/arch/sparc/conf/GENERIC: revision 1.190
sys/arch/news68k/conf/LIBERO: revision 1.40
sys/arch/amiga/conf/DRACO: revision 1.114
sys/arch/cobalt/conf/INSTALL: revision 1.23
sys/arch/luna68k/conf/GENERIC: revision 1.73
sys/arch/bebox/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.147
sys/arch/amiga/conf/WSCONS: revision 1.52
sys/arch/macppc/conf/POWERMAC_G5: revision 1.2
sys/arch/alpha/conf/ALPHA: revision 1.218
sys/arch/sun3/conf/GENERIC: revision 1.133
sys/arch/prep/conf/GENERIC: revision 1.124
sys/arch/alpha/conf/GENERIC: revision 1.291
sys/arch/atari/conf/HADES: revision 1.71
sys/arch/newsmips/conf/GENERIC: revision 1.93
sys/arch/netwinder/conf/GENERIC: revision 1.82
sys/arch/hpcmips/conf/GENERIC: revision 1.190
sys/arch/amiga/conf/AMIGA: revision 1.98
sys/arch/sbmips/conf/GENERIC: revision 1.54
sys/arch/pc532/conf/GENERIC: revision 1.64
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.53
Disable SYSTRACE by default on all kernels (discussed with core)
 1.15.4.2 10-Dec-2006  yamt sync with head.
 1.15.4.1 22-Oct-2006  yamt sync with head
 1.15.2.1 18-Nov-2006  ad Sync with head.
 1.17.18.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.17.16.2 03-Oct-2007  garbled Sync with HEAD
 1.17.16.1 26-Jun-2007  garbled Sync with HEAD.
 1.17.10.1 11-Jul-2007  mjf Sync with head.
 1.17.8.3 03-Dec-2007  ad Sync with HEAD.
 1.17.8.2 15-Jul-2007  ad Sync with head.
 1.17.8.1 09-Jun-2007  ad Sync with head.
 1.17.2.1 05-Jun-2007  bouyer Pull up following revision(s) (requested by martin in ticket #699):
sys/arch/hpcmips/conf/GENERIC: revision 1.196
sys/arch/hp700/conf/GENERIC: revision 1.74
sys/arch/i386/conf/GENERIC: revision 1.831
sys/arch/next68k/conf/GENERIC: revision 1.108
sys/arch/alpha/conf/GENERIC: revision 1.313
sys/arch/arc/conf/GENERIC: revision 1.146
sys/arch/cats/conf/GENERIC: revision 1.115
sys/arch/ews4800mips/conf/GENERIC: revision 1.18
sys/arch/landisk/conf/GENERIC: revision 1.8 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.85
sys/arch/pmax/conf/GENERIC: revision 1.152
sys/arch/iyonix/conf/GENERIC: revision 1.38 via patch
sys/arch/amiga/conf/GENERIC: revision 1.245
sys/arch/vax/conf/GENERIC: revision 1.157
sys/arch/prep/conf/GENERIC: revision 1.135
sys/arch/pc532/conf/GENERIC: revision 1.70
sys/arch/sbmips/conf/GENERIC: revision 1.61
sys/arch/mipsco/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.108
sys/arch/ofppc/conf/GENERIC: revision 1.98
sys/arch/amd64/conf/GENERIC: revision 1.148
sys/arch/acorn26/conf/GENERIC: revision 1.50
sys/arch/dreamcast/conf/GENERIC: revision 1.78
sys/arch/mac68k/conf/GENERIC: revision 1.181
sys/arch/hp300/conf/GENERIC: revision 1.139
sys/arch/mmeye/conf/GENERIC: revision 1.88
sys/arch/news68k/conf/GENERIC: revision 1.88
sys/arch/mvme68k/conf/GENERIC: revision 1.71
sys/arch/acorn32/conf/GENERIC: revision 1.79
sys/arch/sparc/conf/GENERIC: revision 1.199
sys/arch/luna68k/conf/GENERIC: revision 1.78
sys/arch/bebox/conf/GENERIC: revision 1.105
sys/arch/macppc/conf/GENERIC: revision 1.256 via patch
sys/arch/x68k/conf/GENERIC: revision 1.134
sys/arch/sun3/conf/GENERIC: revision 1.138
sys/arch/newsmips/conf/GENERIC: revision 1.98
Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.19.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.19.10.3 23-Mar-2008  matt sync with HEAD
 1.19.10.2 09-Jan-2008  matt sync with HEAD
 1.19.10.1 06-Nov-2007  matt sync with HEAD
 1.19.8.1 04-Nov-2007  jmcneill Sync with HEAD.
 1.21.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.21.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.23.16.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.23.16.1 19-Oct-2008  haad Sync with HEAD.
 1.23.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.23.10.3 11-Aug-2010  yamt sync with head.
 1.23.10.2 11-Mar-2010  yamt sync with head
 1.23.10.1 04-May-2009  yamt sync with head.
 1.23.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.23.6.1 28-Sep-2008  mjf Sync with HEAD.
 1.25.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.25.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.29.4.3 21-Apr-2011  rmind sync with head
 1.29.4.2 05-Mar-2011  rmind sync with head
 1.29.4.1 30-May-2010  rmind sync with head
 1.29.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.29.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.33.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.33.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.34.4.3 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.34.4.2 30-Oct-2012  yamt sync with head
 1.34.4.1 17-Apr-2012  yamt sync with head
 1.35.2.2 11-Mar-2012  mrg sync to latest -current
 1.35.2.1 18-Feb-2012  mrg merge to -current.
 1.38.2.4 03-Dec-2017  jdolecek update from HEAD
 1.38.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.38.2.2 23-Jun-2013  tls resync from head
 1.38.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.44.2.2 18-May-2014  rmind sync with head
 1.44.2.1 28-Aug-2013  rmind sync with head
 1.46.2.1 10-Aug-2014  tls Rebase.
 1.47.2.2 18-Nov-2014  snj Pull up following revision(s) (requested by manu in ticket #251):
sys/arch/acorn26/conf/GENERIC: revision 1.81
sys/arch/acorn32/conf/GENERIC: revision 1.116
sys/arch/alpha/conf/GENERIC: revision 1.362
sys/arch/amd64/conf/ALL: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.404
sys/arch/amd64/conf/XEN3_DOM0: revision 1.112
sys/arch/amd64/conf/XEN3_DOMU: revision 1.60
sys/arch/amiga/conf/GENERIC.in: revision 1.129
sys/arch/amiga/conf/GENERIC: revision 1.311
sys/arch/amigappc/conf/GENERIC: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.184
sys/arch/bebox/conf/GENERIC: revision 1.145
sys/arch/cats/conf/GENERIC: revision 1.155
sys/arch/cesfic/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.147
sys/arch/dreamcast/conf/GENERIC: revision 1.121
sys/arch/emips/conf/GENERIC: revision 1.15
sys/arch/epoc32/conf/GENERIC: revision 1.8
sys/arch/ews4800mips/conf/GENERIC: revision 1.51
sys/arch/hp300/conf/GENERIC: revision 1.190
sys/arch/hpcmips/conf/GENERIC: revision 1.229
sys/arch/hpcsh/conf/GENERIC: revision 1.106
sys/arch/hppa/conf/GENERIC: revision 1.6
sys/arch/i386/conf/ALL: revision 1.389
sys/arch/i386/conf/GENERIC: revision 1.1118
sys/arch/i386/conf/XEN3_DOM0: revision 1.93
sys/arch/i386/conf/XEN3_DOMU: revision 1.65
sys/arch/ibmnws/conf/GENERIC: revision 1.46
sys/arch/iyonix/conf/GENERIC: revision 1.88
sys/arch/landisk/conf/GENERIC: revision 1.45
sys/arch/luna68k/conf/GENERIC: revision 1.119
sys/arch/mac68k/conf/GENERIC: revision 1.220
sys/arch/macppc/conf/GENERIC: revision 1.320
sys/arch/macppc/conf/MAMBO: revision 1.24
sys/arch/macppc/conf/POWERMAC_G5: revision 1.25
sys/arch/mipsco/conf/GENERIC: revision 1.88
sys/arch/mmeye/conf/GENERIC: revision 1.120
sys/arch/mvme68k/conf/GENERIC: revision 1.94
sys/arch/mvmeppc/conf/GENERIC: revision 1.24
sys/arch/netwinder/conf/GENERIC: revision 1.126
sys/arch/news68k/conf/GENERIC: revision 1.125
sys/arch/newsmips/conf/GENERIC: revision 1.129
sys/arch/next68k/conf/GENERIC: revision 1.139
sys/arch/ofppc/conf/GENERIC: revision 1.157
sys/arch/pmax/conf/GENERIC64: revision 1.21
sys/arch/pmax/conf/GENERIC: revision 1.185
sys/arch/prep/conf/GENERIC: revision 1.174
sys/arch/rs6000/conf/GENERIC: revision 1.33
sys/arch/sandpoint/conf/GENERIC: revision 1.88
sys/arch/sbmips/conf/GENERIC: revision 1.101
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.28
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.104
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.106
sys/arch/shark/conf/GENERIC: revision 1.121
sys/arch/sparc/conf/GENERIC: revision 1.248
sys/arch/sparc/conf/TADPOLE3GX: revision 1.65
sys/arch/sparc64/conf/GENERIC: revision 1.177
sys/arch/sparc64/conf/NONPLUS64: revision 1.44
sys/arch/sun2/conf/GENERIC: revision 1.94
sys/arch/sun3/conf/GENERIC: revision 1.171
sys/arch/vax/conf/GENERIC: revision 1.193
sys/arch/vax/conf/VAX780: revision 1.19
sys/arch/x68k/conf/GENERIC: revision 1.179
sys/arch/zaurus/conf/GENERIC: revision 1.65
sys/ufs/files.ufs: revision 1.38
Remove unused extended attributes kernel options

As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
 1.47.2.1 14-Nov-2014  martin Pull up following revision(s) (requested by manu in ticket #232):
sys/arch/next68k/conf/GENERIC: revision 1.138
sys/arch/cobalt/conf/GENERIC: revision 1.146
sys/arch/mvme68k/conf/GENERIC: revision 1.93
sys/arch/vax/conf/VAX780: revision 1.18
sys/arch/newsmips/conf/GENERIC: revision 1.128
sys/arch/luna68k/conf/GENERIC: revision 1.118
sys/arch/sbmips/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.184
sys/arch/alpha/conf/GENERIC: revision 1.361
sys/arch/sparc64/conf/GENERIC: revision 1.176
sys/arch/sun3/conf/GENERIC: revision 1.170
sys/arch/shark/conf/GENERIC: revision 1.120
sys/arch/landisk/conf/GENERIC: revision 1.44
sys/arch/bebox/conf/GENERIC: revision 1.144
sys/arch/sparc64/conf/NONPLUS64: revision 1.43
sys/arch/sandpoint/conf/GENERIC: revision 1.87
sys/arch/emips/conf/GENERIC: revision 1.14
sys/arch/amd64/conf/XEN3_DOM0: revision 1.111
sys/arch/dreamcast/conf/GENERIC: revision 1.120
sys/arch/cesfic/conf/GENERIC: revision 1.64
sys/arch/mmeye/conf/GENERIC: revision 1.119
sys/arch/epoc32/conf/GENERIC: revision 1.7
sys/arch/x68k/conf/GENERIC: revision 1.178
sys/arch/iyonix/conf/GENERIC: revision 1.87
sys/arch/sun2/conf/GENERIC: revision 1.93
sys/arch/ews4800mips/conf/GENERIC: revision 1.50
sys/arch/amd64/conf/XEN3_DOMU: revision 1.59
sys/arch/acorn26/conf/GENERIC: revision 1.80
sys/arch/acorn32/conf/GENERIC: revision 1.115
sys/arch/macppc/conf/POWERMAC_G5: revision 1.24
sys/arch/i386/conf/GENERIC: revision 1.1117
sys/arch/arc/conf/GENERIC: revision 1.183
sys/arch/cats/conf/GENERIC: revision 1.154
sys/arch/amiga/conf/GENERIC.in: revision 1.128
sys/arch/zaurus/conf/GENERIC: revision 1.64
sys/arch/netwinder/conf/GENERIC: revision 1.125
sys/arch/hppa/conf/GENERIC: revision 1.5
sys/arch/mvmeppc/conf/GENERIC: revision 1.23
sys/arch/macppc/conf/GENERIC: revision 1.319
sys/arch/amiga/conf/GENERIC: revision 1.310
sys/arch/pmax/conf/GENERIC64: revision 1.20
sys/arch/macppc/conf/MAMBO: revision 1.23
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.27
sys/arch/amigappc/conf/GENERIC: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.403
sys/arch/ofppc/conf/GENERIC: revision 1.156
sys/arch/mac68k/conf/GENERIC: revision 1.219
sys/arch/i386/conf/XEN3_DOMU: revision 1.64
sys/arch/mipsco/conf/GENERIC: revision 1.87
sys/arch/hp300/conf/GENERIC: revision 1.189
sys/arch/vax/conf/GENERIC: revision 1.192
sys/arch/news68k/conf/GENERIC: revision 1.124
sys/arch/ibmnws/conf/GENERIC: revision 1.45
sys/arch/hpcsh/conf/GENERIC: revision 1.105
sys/arch/sparc/conf/TADPOLE3GX: revision 1.64
sys/arch/i386/conf/XEN3_DOM0: revision 1.92
sys/arch/sparc/conf/GENERIC: revision 1.247
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.105
sys/arch/prep/conf/GENERIC: revision 1.173
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.103
sys/arch/rs6000/conf/GENERIC: revision 1.32
sys/arch/hpcmips/conf/GENERIC: revision 1.228
Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr
Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
 1.51.2.2 28-Aug-2017  skrll Sync with HEAD
 1.51.2.1 22-Sep-2015  skrll Sync with HEAD
 1.52.10.1 26-Jan-2018  martin Pull up following revision(s) (requested by sevan in ticket #510):
sys/arch/sun3/conf/GENERIC3X: revision 1.130
sys/arch/sparc64/conf/GENERIC: revision 1.203
sys/arch/news68k/conf/LIBERO: revision 1.66
sys/arch/amiga/conf/DRACO: revision 1.185
sys/arch/evbarm/conf/MV2120: revision 1.35
sys/arch/x68k/conf/GENERIC: revision 1.187
sys/arch/rs6000/conf/GENERIC: revision 1.39
sys/arch/news68k/conf/GENERIC_TINY: revision 1.86
sys/arch/i386/conf/XEN3_DOMU: revision 1.88
sys/arch/iyonix/conf/GENERIC: revision 1.97
sys/arch/evbarm64/conf/A64EMUL: revision 1.11
sys/arch/mvme68k/conf/GENERIC: revision 1.98
sys/arch/acorn32/conf/GENERIC: revision 1.124
sys/arch/i386/conf/XEN3_DOM0: revision 1.125
sys/arch/cobalt/conf/INSTALL: revision 1.65
sys/arch/macppc/conf/GENERIC_601: revision 1.16
sys/arch/hppa/conf/GENERIC: revision 1.17
sys/arch/amiga/conf/GENERIC.in: revision 1.137
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33
sys/arch/netwinder/conf/GENERIC: revision 1.134
sys/arch/amd64/conf/XEN3_DOMU: revision 1.83
sys/arch/mac68k/conf/GENERIC: revision 1.225
sys/arch/arc/conf/RPC44: revision 1.54
sys/arch/mipsco/conf/GENERIC: revision 1.92
sys/arch/cats/conf/GENERIC: revision 1.166
sys/arch/amd64/conf/XEN3_DOM0: revision 1.145
sys/arch/amigappc/conf/GENERIC: revision 1.33
sys/arch/sun3/conf/GENERIC: revision 1.176
sys/arch/news68k/conf/GENERIC: revision 1.130
sys/arch/hpcsh/conf/GENERIC: revision 1.110
sys/arch/hp300/conf/GENERIC: revision 1.198
sys/arch/atari/conf/GENERIC.in: revision 1.115
sys/arch/sparc/conf/MRCOFFEE: revision 1.54
sys/arch/evbppc/conf/EXPLORA451: revision 1.62
sys/arch/cesfic/conf/GENERIC: revision 1.69
sys/arch/vax/conf/GENERIC: revision 1.204
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112
sys/arch/sparc/conf/GENERIC: revision 1.258
sys/arch/next68k/conf/GENERIC: revision 1.145
sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34
sys/arch/prep/conf/GENERIC: revision 1.185
sys/arch/amiga/conf/INSTALL: revision 1.129
sys/arch/newsmips/conf/GENERIC: revision 1.133
sys/arch/cobalt/conf/GENERIC: revision 1.156
sys/arch/sun2/conf/GENERIC: revision 1.99
sys/arch/luna68k/conf/INSTALL: revision 1.25
sys/arch/amigappc/conf/NULL: revision 1.53
sys/arch/acorn26/conf/GENERIC: revision 1.85
sys/arch/vax/conf/VAX780: revision 1.25
sys/arch/luna68k/conf/GENERIC: revision 1.125
sys/arch/ews4800mips/conf/GENERIC: revision 1.56
sys/arch/macppc/conf/POWERMAC_G5: revision 1.29
sys/arch/arc/conf/GENERIC: revision 1.189
sys/arch/macppc/conf/MAMBO: revision 1.27
sys/arch/acorn32/conf/EB7500ATX: revision 1.64
sys/arch/pmax/conf/GENERIC: revision 1.196
sys/arch/pmax/conf/GENERIC64: revision 1.28
sys/arch/amiga/conf/GENERIC: revision 1.319
sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55
sys/arch/macppc/conf/GENERIC: revision 1.339
sys/arch/emips/conf/GENERIC: revision 1.21
sys/arch/sandpoint/conf/GENERIC: revision 1.97
sys/arch/landisk/conf/GENERIC: revision 1.58
sys/arch/bebox/conf/GENERIC: revision 1.157
sys/arch/alpha/conf/GENERIC: revision 1.379
Alternate buffer queue strategies no longer considered experimental, update
description.
Discussed on tech-kern
http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html
 1.56.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.56.4.1 10-Jun-2019  christos Sync with HEAD
 1.56.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.58.4.1 25-Jan-2020  ad Sync with head.
 1.62.2.1 03-Apr-2021  thorpej Sync with HEAD.
 1.2 19-Sep-2018  rin This file was only for setting COMPAT_AS appropriately, which is
automatically done in sys/compat/common/Makefile.inc since r1.24:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/common/Makefile.inc#rev1.24
 1.1 24-Dec-2017  christos branches: 1.1.2; 1.1.4;
Build compat code for RAMDISK as a library otherwise we get code bloat
for code we are not using (there are no compat options in the RAMDISK kernel).
 1.1.4.1 10-Jun-2019  christos Sync with HEAD
 1.1.2.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.37 22-Apr-2025  christos bump
 1.36 18-Apr-2025  christos bump
 1.35 17-Apr-2025  christos bump
 1.34 16-Apr-2025  christos bump
 1.33 27-Sep-2020  roy branches: 1.33.26;
vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.32 14-Jun-2020  tsutsui Disable COMPAT_13 and UFS_EXTATTR. Saves ~52kbytes.
 1.31 14-Jun-2020  tsutsui Sort options to match GENERIC.
 1.30 14-Jun-2020  tsutsui Disable npf instead of obsolete ipfilter. Saves ~82kbytes.

Maybe other installation kernels that include GENEIRIC-like ones
and use "no pseudo-device" options should be checked:
https://mail-index.netbsd.org/source-changes/2018/08/01/msg097235.html
 1.29 09-Jun-2020  tsutsui Fix comment.
 1.28 09-Jun-2020  tsutsui Specify -fno-unwind-tables to shrink binary. Saves ~3.5%.
 1.27 09-Jun-2020  tsutsui Suppress "options `COMPAT_xx' is not defined" warnings.
 1.26 07-Apr-2020  martin Disable userconf in the RAMDISK kernel to shrink it a bit
 1.25 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.24 23-Dec-2019  christos branches: 1.24.2;
Add a comment where the other memory disk is defined to avoid future confusion.
 1.23 27-Apr-2019  sevan Skip CARP & Veriexec support in RAMDISK to reduce size
 1.22 24-Dec-2017  christos branches: 1.22.4;
No DDB/ksyms
 1.21 14-Sep-2017  mrg clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.20 20-Sep-2016  christos Put back the original size, this is not the reason we don't fit.
 1.19 19-Sep-2016  christos grow more
 1.18 18-Sep-2016  christos grow
 1.17 21-Aug-2015  christos branches: 1.17.2;
comment out disabling ksyms
 1.16 10-Mar-2012  joerg branches: 1.16.2; 1.16.16;
P1003_1B_SEMAPHORE is no longer optional.
 1.15 20-Mar-2011  tsutsui branches: 1.15.4; 1.15.8;
Shrink more options, file-systems and device.
 1.14 06-Mar-2011  bouyer merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.13 08-Feb-2011  tsutsui Disable more file-system and pseudo-devices to shrink install floppies.
 1.12 07-Dec-2009  pooka branches: 1.12.4; 1.12.6; 1.12.8;
remove rest of 'no file-system PORTAL' (portalfs kernel driver was removed)
 1.11 06-Feb-2009  jym Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
 1.10 16-Jul-2008  tsutsui branches: 1.10.2;
Disable more pseudo-devices to shrink an install kernel.
 1.9 30-Jan-2008  tsutsui branches: 1.9.6; 1.9.10; 1.9.12; 1.9.14; 1.9.16;
Disable more options and file-systems to shrink install kernel.
 1.8 17-Oct-2007  garbled branches: 1.8.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.7 15-Oct-2007  tsutsui Disable agr(4) to shrink an install kernel.
 1.6 16-Feb-2007  tsutsui branches: 1.6.6; 1.6.14; 1.6.22; 1.6.24; 1.6.26;
Disable more options to shrink kernel size.
 1.5 02-Oct-2006  chs branches: 1.5.2; 1.5.4;
remove MALLOC_NOINLINE, it doesn't do anything anymore.
 1.4 28-Aug-2006  tsutsui branches: 1.4.2; 1.4.4;
options SYSTRACE is now disabled in GENERIC,
so remove "no options SYSTRACE".
 1.3 09-Jan-2006  tsutsui branches: 1.3.2; 1.3.6; 1.3.16; 1.3.18;
- Shrink more functions.
- Adjust MEMORY_DISK_ROOT_SIZE.
 1.2 08-Jan-2006  tsutsui Shrink RAMDISK kernel by disabling some functions.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 15-Jan-2006  yamt sync with head.
 1.3.18.1 01-Sep-2006  riz Pull up following revision(s) (requested by tsutsui in ticket #91):
sys/arch/ews4800mips/conf/RAMDISK: revision 1.4
options SYSTRACE is now disabled in GENERIC,
so remove "no options SYSTRACE".
 1.3.16.6 04-Feb-2008  yamt sync with head.
 1.3.16.5 27-Oct-2007  yamt sync with head.
 1.3.16.4 26-Feb-2007  yamt sync with head.
 1.3.16.3 30-Dec-2006  yamt sync with head.
 1.3.16.2 21-Jun-2006  yamt sync with head.
 1.3.16.1 09-Jan-2006  yamt file RAMDISK was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.3.6.1 03-Sep-2006  yamt sync with head.
 1.3.2.1 09-Sep-2006  rpaulo sync with head
 1.4.4.1 22-Oct-2006  yamt sync with head
 1.4.2.1 18-Nov-2006  ad Sync with head.
 1.5.4.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.5.2.2 09-Mar-2008  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1095):
sys/arch/ews4800mips/conf/RAMDISK: revision 1.9
Disable more options and file-systems to shrink install kernel.
 1.5.2.1 04-Feb-2008  riz Pull up following revision(s) (requested by tsutsui in ticket #1055):
sys/arch/ews4800mips/conf/RAMDISK: revision 1.7
Disable agr(4) to shrink an install kernel.
 1.6.26.1 18-Oct-2007  yamt sync with head.
 1.6.24.2 23-Mar-2008  matt sync with HEAD
 1.6.24.1 06-Nov-2007  matt sync with HEAD
 1.6.22.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.6.14.1 16-Oct-2007  garbled Sync with HEAD
 1.6.6.1 23-Oct-2007  ad Sync with head.
 1.8.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.16.1 19-Oct-2008  haad Sync with HEAD.
 1.9.14.1 18-Jul-2008  simonb Sync with head.
 1.9.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.10.2 11-Mar-2010  yamt sync with head
 1.9.10.1 04-May-2009  yamt sync with head.
 1.9.6.1 28-Sep-2008  mjf Sync with HEAD.
 1.10.2.1 03-Mar-2009  skrll Sync with HEAD.
 1.12.8.2 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.12.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.12.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.12.4.2 21-Apr-2011  rmind sync with head
 1.12.4.1 05-Mar-2011  rmind sync with head
 1.15.8.1 11-Mar-2012  mrg sync to latest -current
 1.15.4.1 17-Apr-2012  yamt sync with head
 1.16.16.2 05-Oct-2016  skrll Sync with HEAD
 1.16.16.1 22-Sep-2015  skrll Sync with HEAD
 1.16.2.1 03-Dec-2017  jdolecek update from HEAD
 1.17.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.22.4.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.22.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.22.4.1 10-Jun-2019  christos Sync with HEAD
 1.24.2.1 25-Jan-2020  ad Sync with head.
 1.33.26.1 02-Aug-2025  perseant Sync with HEAD
 1.7 20-Jul-2014  alnsn Include sljit files.
 1.6 02-Oct-2012  christos branches: 1.6.10;
move common/bus_dma/ -> dev/bus_dma/
 1.5 20-Feb-2011  matt branches: 1.5.4; 1.5.14;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.4 21-Aug-2009  thorpej branches: 1.4.4; 1.4.6; 1.4.8;
Use bus_dmamem_common.
 1.3 20-Feb-2008  drochner branches: 1.3.10; 1.3.28;
Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
 1.2 09-Sep-2006  gdamore branches: 1.2.30;
Convert code to pick remove pasteware, picking up common implementations of
delay, mips3_init_tc, etc.
 1.1 29-Dec-2005  tsutsui branches: 1.1.8; 1.1.18; 1.1.22;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.4 27-Feb-2008  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file files.ews4800mips was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.1.8.1 14-Sep-2006  yamt sync with head.
 1.2.30.1 23-Mar-2008  matt sync with HEAD
 1.3.28.1 05-Feb-2010  matt Change to deal with new method of invoking softints. Remove mips/softintr.c
from config files. Fix SYMTAB_SPACE for WGT62V43
 1.3.10.1 16-Sep-2009  yamt sync with head
 1.4.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.5.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.4.1 30-Oct-2012  yamt sync with head
 1.6.10.1 10-Aug-2014  tls Rebase.
 1.6 28-Jan-2019  dholland Systematize handling of removed drivers.

- Every driver that was removed and whose number hasn't already been
reused is now listed with a commented-out "obsolete" line.
- The format of these has been systematized. Future format changes can
probably be safely done with a script.
- This does not include a few cases of assignments that only lasted a
couple days, or stuff from before major reorgs. Some of these may
be included nonetheless, because there was a lot of ground to cover
and therefore not a lot of time to dig into history in detail.

Note that the obsolete listings do not mean the major numbers can
never be reused; that's up to portmasters and/or core. It does mean
that they won't be reused by accident, however, which in some cases
(depending on the driver, how widely used it was, its family of device
nodes, their default permissions, etc.) can be quite dangerous.

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)
 1.5 30-Jun-2011  wiz branches: 1.5.54;
dependant -> dependent
 1.4 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.3 31-Dec-2007  ad branches: 1.3.6; 1.3.10; 1.3.16; 1.3.18;
Remove systrace. Ok core@.
 1.2 24-Nov-2006  wiz branches: 1.2.28; 1.2.34; 1.2.42;
s/independant/independent/, from Zafer.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 12-Jan-2007  ad Sync with head.
 1.1.18.4 21-Jan-2008  yamt sync with head
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file majors.ews4800mips was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.2.42.1 02-Jan-2008  bouyer Sync with HEAD
 1.2.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.28.1 09-Jan-2008  matt sync with HEAD
 1.3.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.3.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.3.10.1 04-May-2009  yamt sync with head.
 1.3.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.5.54.1 10-Jun-2019  christos Sync with HEAD
 1.2 09-Feb-2024  andvar fix spelling mistakes, mainly in comments and log messages.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file std.ews4800mips was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 17-Oct-2007  garbled branches: 1.3.16; 1.3.18; 1.3.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 02-Jun-2007  tsutsui branches: 1.2.10;
Sort some keymap entries.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.32; 1.1.34; 1.1.40;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.40.1 26-Jun-2007  garbled Sync with HEAD.
 1.1.34.1 11-Jul-2007  mjf Sync with head.
 1.1.32.1 09-Jun-2007  ad Sync with head.
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ews4800keymap.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.2.10.1 06-Nov-2007  matt sync with HEAD
 1.3.20.1 16-May-2008  yamt sync with head.
 1.3.18.1 18-May-2008  yamt sync with head.
 1.3.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ews4800keymap.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.14 18-Sep-2021  tsutsui Remove unnecessary (and unimplemented) WSKBD_*BELL ioctls in kbd drivers.

It looks the only ioctl(4) to be implemented for WSKBDIO_*BELL in
the backend keyboard driver is WSKBDIO_COMPLEXBELL.
All other BELL ioctls (WSKBDIO_BELL, WSKBDIO_SETBELL, WSKBDIO_GETBELL,
WSKBDIO_SETDEFAULTBELL, and WSKBDIO_GETDEFAULTBELL) are handled in the
MI wskbd driver (in wskbd_displayioctl() in src/sys/dev/wscons/wskbd.c).
 1.13 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12 24-Apr-2021  thorpej branches: 1.12.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.11 21-Nov-2020  thorpej branches: 1.11.2;
malloc(9) -> kmem(9)
 1.10 13-Oct-2012  tsutsui branches: 1.10.50;
struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@)
 1.9 14-May-2008  tsutsui branches: 1.9.32; 1.9.42;
Normalize my licenses.
 1.8 29-Mar-2008  tsutsui branches: 1.8.2; 1.8.4; 1.8.6;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.7 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.6 17-Oct-2007  garbled branches: 1.6.16;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 29-Jun-2007  tsutsui branches: 1.5.10;
Fix botch in cnpollc(9) for keyboard devices.
 1.4 04-Mar-2007  christos branches: 1.4.2; 1.4.4; 1.4.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.3 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.2 12-Mar-2007  rmind Sync with HEAD.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.4 03-Sep-2007  yamt sync with head.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ewskbd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.4.10.1 03-Oct-2007  garbled Sync with HEAD
 1.4.4.1 11-Jul-2007  mjf Sync with head.
 1.4.2.1 15-Jul-2007  ad Sync with head.
 1.5.10.1 06-Nov-2007  matt sync with HEAD
 1.6.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.6.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.8.4.1 16-May-2008  yamt sync with head.
 1.8.2.1 18-May-2008  yamt sync with head.
 1.9.42.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.32.1 30-Oct-2012  yamt sync with head
 1.10.50.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.11.2.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.12.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.10 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.9 24-Apr-2021  thorpej branches: 1.9.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.8 13-Oct-2012  tsutsui branches: 1.8.52;
struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@)
 1.7 25-May-2008  tsutsui branches: 1.7.32; 1.7.42;
Some KNF and cosmetics.
 1.6 29-Mar-2008  tsutsui branches: 1.6.2; 1.6.4; 1.6.6;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.5 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.4 04-Mar-2007  christos branches: 1.4.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 12-Nov-2006  plunky branches: 1.2.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ewsms.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.2.4.2 12-Mar-2007  rmind Sync with HEAD.
 1.2.4.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.4.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.4.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.6.4.1 04-May-2009  yamt sync with head.
 1.6.2.1 04-Jun-2008  yamt sync with head
 1.7.42.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.32.1 30-Oct-2012  yamt sync with head
 1.8.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.9.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 07-Nov-2009  cegger Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ga.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.3.46.2 11-Mar-2010  yamt sync with head
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.6 11-Sep-2021  andvar Add missing double p and d for stopped and overriden accordingly.
Fix few more typos along the way, mainly in copy-pasted comments.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 29-Mar-2008  tsutsui branches: 1.4.2; 1.4.4;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.3 26-Nov-2007  ad branches: 1.3.14;
Use the softint API.
 1.2 03-Nov-2006  tsutsui branches: 1.2.8; 1.2.26; 1.2.28; 1.2.34;
- no need to scan zsc units in zshard(), just use passed one
- call zsc_intr_soft() directly on softintr and remove zssoft()
(no need spltty() since it should be done in each MD handler)
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.4 07-Dec-2007  yamt sync with head
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file zs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:09 +0000
 1.2.34.1 08-Dec-2007  mjf Sync with HEAD.
 1.2.28.1 09-Jan-2008  matt sync with HEAD
 1.2.26.1 27-Nov-2007  joerg Sync with HEAD. amd64 Xen support needs testing.
 1.2.8.1 03-Dec-2007  ad Sync with HEAD.
 1.3.14.2 02-Jun-2008  mjf Sync with HEAD.
 1.3.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.4.4.1 16-May-2008  yamt sync with head.
 1.4.2.1 18-May-2008  yamt sync with head.
 1.9 29-Jul-2012  mlelstv Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
 1.8 20-Feb-2011  matt branches: 1.8.4; 1.8.10;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.7 28-Apr-2008  martin branches: 1.7.18; 1.7.22; 1.7.28; 1.7.30;
Remove clause 3 and 4 from TNF licenses
 1.6 12-Feb-2008  joerg branches: 1.6.6; 1.6.8; 1.6.10;
Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
 1.5 04-Jan-2008  ad Pull in the right headers.
 1.4 05-Dec-2007  tsutsui branches: 1.4.4;
Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro.
 1.3 17-Oct-2007  garbled branches: 1.3.2; 1.3.4;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 29-Jun-2007  tsutsui branches: 1.2.8; 1.2.10;
We have to use _splnone() instead of spl0() to enable interrupts on mips
because spl0() is an alias of _spllower(0) and it doesn't set MIPS_SR_INT_IE.

Fixes ews4800mips kernel getting stuck in cpu_idle(9)
after cpu_configure(9) since yamt-idlelwp merge.
(previous mips_idle() implicitly set MIPS_SR_INT_IE
but new cpu_idle(9) for mips no longer does it)
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.32; 1.1.34; 1.1.40;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.40.1 03-Oct-2007  garbled Sync with HEAD
 1.1.34.1 11-Jul-2007  mjf Sync with head.
 1.1.32.1 15-Jul-2007  ad Sync with head.
 1.1.18.6 27-Feb-2008  yamt sync with head.
 1.1.18.5 21-Jan-2008  yamt sync with head
 1.1.18.4 07-Dec-2007  yamt sync with head
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file autoconf.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.10.3 23-Mar-2008  matt sync with HEAD
 1.2.10.2 09-Jan-2008  matt sync with HEAD
 1.2.10.1 06-Nov-2007  matt sync with HEAD
 1.2.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.3.4.1 08-Dec-2007  ad Sync with head.
 1.3.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.3.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.4.4.1 08-Jan-2008  bouyer Sync with HEAD
 1.6.10.1 16-May-2008  yamt sync with head.
 1.6.8.1 18-May-2008  yamt sync with head.
 1.6.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.22.1 05-Mar-2011  rmind sync with head
 1.7.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.8.10.1 08-Aug-2012  martin Pull up following revision(s) (requested by mlelstv in ticket #466):
sys/arch/amiga/amiga/autoconf.c: revision 1.113
sys/arch/rs6000/rs6000/autoconf.c: revision 1.4
sys/arch/emips/emips/autoconf.c: revision 1.6
sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27
sys/arch/evbmips/alchemy/autoconf.c: revision 1.18
sys/arch/sgimips/sgimips/autoconf.c: revision 1.43
sys/arch/atari/atari/autoconf.c: revision 1.63
sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17
sys/arch/mmeye/mmeye/autoconf.c: revision 1.9
distrib/sets/lists/comp/mi: revision 1.1771
sys/arch/mipsco/mipsco/autoconf.c: revision 1.25
sys/arch/iyonix/iyonix/autoconf.c: revision 1.14
sys/arch/hp300/hp300/autoconf.c: revision 1.100
sys/kern/init_main.c: revision 1.445
sys/arch/pmax/pmax/autoconf.c: revision 1.79
sys/arch/netwinder/netwinder/autoconf.c: revision 1.11
sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10
sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12
sys/arch/evbppc/ev64260/autoconf.c: revision 1.17
sys/arch/evbmips/gdium/autoconf.c: revision 1.5
sys/arch/algor/algor/autoconf.c: revision 1.21
share/man/man9/Makefile: revision 1.367
sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9
sys/arch/amigappc/amigappc/autoconf.c: revision 1.5
sys/arch/x86/x86/x86_autoconf.c: revision 1.65
sys/arch/acorn26/acorn26/autoconf.c: revision 1.9
sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13
sys/arch/vax/vax/autoconf.c: revision 1.94
sys/arch/usermode/dev/cpu.c: revision 1.72
sys/arch/evbppc/virtex/autoconf.c: revision 1.5
sys/arch/next68k/next68k/autoconf.c: revision 1.26
sys/arch/mac68k/mac68k/autoconf.c: revision 1.73
sys/arch/ia64/ia64/autoconf.c: revision 1.6
sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6
share/man/man9/cpu_rootconf.9: revision 1.7
sys/arch/landisk/landisk/autoconf.c: revision 1.6
sys/arch/evbmips/malta/autoconf.c: revision 1.16
sys/arch/sun3/sun3/autoconf.c: revision 1.76
sys/arch/evbppc/explora/autoconf.c: revision 1.13
sys/arch/sun3/sun3/autoconf.c: revision 1.77
sys/arch/evbmips/loongson/autoconf.c: revision 1.3
sys/arch/evbmips/atheros/autoconf.c: revision 1.11
sys/arch/sparc64/sparc64/autoconf.c: revision 1.188
sys/arch/acorn32/acorn32/autoconf.c: revision 1.18
sys/arch/evbarm/evbarm/autoconf.c: revision 1.13
sys/arch/cobalt/cobalt/autoconf.c: revision 1.30
sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46
sys/arch/hp700/hp700/autoconf.c: revision 1.48
sys/arch/evbmips/adm5120/autoconf.c: revision 1.5
sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25
sys/arch/alpha/alpha/autoconf.c: revision 1.52
sys/arch/sparc/sparc/autoconf.c: revision 1.244
sys/arch/evbppc/pmppc/autoconf.c: revision 1.7
sys/arch/bebox/bebox/autoconf.c: revision 1.25
sys/arch/luna68k/luna68k/autoconf.c: revision 1.13
sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20
sys/arch/evbppc/walnut/autoconf.c: revision 1.21
sys/arch/cesfic/cesfic/autoconf.c: revision 1.26
sys/arch/cats/cats/autoconf.c: revision 1.17
sys/arch/x68k/x68k/autoconf.c: revision 1.67
sys/arch/news68k/news68k/autoconf.c: revision 1.21
sys/arch/arc/arc/autoconf.c: revision 1.34
sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11
sys/sys/conf.h: revision 1.143
sys/arch/evbmips/rasoc/autoconf.c: revision 1.3
sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26
sys/arch/sun68k/sun68k/autoconf.c: revision 1.29
sys/arch/evbmips/rmixl/autoconf.c: revision 1.6
sys/arch/zaurus/zaurus/autoconf.c: revision 1.12
sys/arch/xen/x86/autoconf.c: revision 1.15
sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6
sys/arch/shark/shark/autoconf.c: revision 1.18
sys/arch/prep/prep/autoconf.c: revision 1.25
sys/arch/newsmips/newsmips/autoconf.c: revision 1.36
sys/arch/sbmips/sbmips/autoconf.c: revision 1.8
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.
No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().
Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().
Make cpu_rootconf(9) describe the calling order.
add rootconf(9) as a link to cpu_rootconf(9)
make this compile again
 1.8.4.1 30-Oct-2012  yamt sync with head
 1.18 04-Sep-2023  andvar fix printf format specifiers for ews4800mips BUS_DMA_DEBUG build option.
 1.17 26-Jul-2022  andvar s/functin/function/ in copy pasted comment.
 1.16 21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.15 23-Jun-2015  matt branches: 1.15.30;
Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.14 11-Jun-2015  matt Add struct pmap_limits and pm_{min,max}addr from uvm/pmap/map.h and use it to
store avail_start, avail_end, virtual_start, and virtual_end.
Remove iospace and let emips just bump pmap_limits.virtual_start to get the
VA space it needs.
pmap_segtab.c is almost identical to uvm/pmap/pmap_segtab.c now. It won't
be long until we switch to the uvm/pmap one.
 1.13 02-Oct-2012  christos branches: 1.13.14;
move common/bus_dma/ -> dev/bus_dma/
 1.12 06-Mar-2011  tsutsui branches: 1.12.4; 1.12.14;
Remove extra TAB.
 1.11 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.10 21-Aug-2009  thorpej branches: 1.10.4; 1.10.6; 1.10.8;
Use bus_dmamem_common.
 1.9 04-Jun-2008  ad branches: 1.9.16;
vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.
 1.8 28-Apr-2008  martin branches: 1.8.2;
Remove clause 3 and 4 from TNF licenses
 1.7 17-Mar-2007  tsutsui branches: 1.7.34; 1.7.36; 1.7.38;
Use (char *) on pointer arithmetic. (I forgot to commit this one)
 1.6 04-Mar-2007  christos branches: 1.6.2; 1.6.4; 1.6.6;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.5 10-Jun-2006  tsutsui branches: 1.5.4; 1.5.14;
space nits.
 1.4 16-Apr-2006  tsutsui branches: 1.4.2;
Mising -> Mixing
 1.3 16-Apr-2006  tsutsui - make _ds_vaddr member vaddr_t instead of bus_addr_t
- use appropriate cache ops in bus_dmamap_sync() like other mips3 ports
 1.2 01-Mar-2006  yamt branches: 1.2.2; 1.2.4; 1.2.6;
merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2; 1.1.4; 1.1.6;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.1.2.1 18-Feb-2006  yamt adapt bus_dma implementations.
 1.2.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.2.2 26-Jun-2006  yamt sync with head.
 1.2.2.1 24-May-2006  yamt sync with head.
 1.4.2.1 19-Jun-2006  chap Sync with head.
 1.5.14.2 24-Mar-2007  yamt sync with head.
 1.5.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.4.3 03-Sep-2007  yamt sync with head.
 1.5.4.2 21-Jun-2006  yamt sync with head.
 1.5.4.1 10-Jun-2006  yamt file bus_dma.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.6.6.1 18-Mar-2007  reinoud First attempt to bring branch in sync with HEAD
 1.6.4.1 11-Jul-2007  mjf Sync with head.
 1.6.2.1 10-Apr-2007  ad Sync with head.
 1.7.38.3 16-Sep-2009  yamt sync with head
 1.7.38.2 04-May-2009  yamt sync with head.
 1.7.38.1 16-May-2008  yamt sync with head.
 1.7.36.2 17-Jun-2008  yamt sync with head.
 1.7.36.1 18-May-2008  yamt sync with head.
 1.7.34.2 05-Jun-2008  mjf Sync with HEAD.

Also fix build.
 1.7.34.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.9.16.2 20-Jan-2010  matt Adjust things to the new world order.
 1.9.16.1 14-Jan-2010  matt More avail_end/avail_start fallout.
 1.10.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.4.2 21-Apr-2011  rmind sync with head
 1.10.4.1 05-Mar-2011  rmind sync with head
 1.12.14.2 03-Dec-2017  jdolecek update from HEAD
 1.12.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.12.4.1 30-Oct-2012  yamt sync with head
 1.13.14.1 22-Sep-2015  skrll Sync with HEAD
 1.15.30.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.6 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.5 27-Jan-2012  para branches: 1.5.6; 1.5.24;
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
 1.4 28-Apr-2008  martin branches: 1.4.34; 1.4.38;
Remove clause 3 and 4 from TNF licenses
 1.3 15-Dec-2007  perry branches: 1.3.6; 1.3.8; 1.3.10;
__FUNCTION__ -> __func__
 1.2 01-Jun-2006  tsutsui branches: 1.2.4; 1.2.38; 1.2.48; 1.2.52;
Sync with hpcsh/bus_space.c rev 1.12:
> Use C99 syntax for designated initializers.
> Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.6; 1.1.8; 1.1.14;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.14.1 19-Jun-2006  chap Sync with head.
 1.1.8.1 26-Jun-2006  yamt sync with head.
 1.1.6.1 01-Jun-2006  kardel Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.52.1 02-Jan-2008  bouyer Sync with HEAD
 1.2.48.1 26-Dec-2007  ad Sync with head.
 1.2.38.1 09-Jan-2008  matt sync with HEAD
 1.2.4.3 21-Jan-2008  yamt sync with head
 1.2.4.2 21-Jun-2006  yamt sync with head.
 1.2.4.1 01-Jun-2006  yamt file bus_space.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.10.1 16-May-2008  yamt sync with head.
 1.3.8.1 18-May-2008  yamt sync with head.
 1.3.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.38.1 18-Feb-2012  mrg merge to -current.
 1.4.34.1 17-Apr-2012  yamt sync with head
 1.5.24.1 22-Sep-2015  skrll Sync with HEAD
 1.5.6.1 03-Dec-2017  jdolecek update from HEAD
 1.8 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.7 09-Sep-2006  tsutsui branches: 1.7.54; 1.7.56; 1.7.58;
G/c now unused #includes.
 1.6 09-Sep-2006  gdamore whitespace fix.
 1.5 09-Sep-2006  gdamore Convert code to pick remove pasteware, picking up common implementations of
delay, mips3_init_tc, etc.
 1.4 08-Sep-2006  tsutsui Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
it isn't configured to use internal clock interrupt for CPU INT 5,
i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
is required.
 1.3 04-Sep-2006  tsutsui branches: 1.3.2;
Switch ews4800mips to MI todr.
 1.2 10-Jun-2006  tsutsui branches: 1.2.4;
space nits.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.14;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.14.1 19-Jun-2006  chap Sync with head.
 1.1.8.2 14-Sep-2006  yamt sync with head.
 1.1.8.1 26-Jun-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.4.3 30-Dec-2006  yamt sync with head.
 1.2.4.2 21-Jun-2006  yamt sync with head.
 1.2.4.1 10-Jun-2006  yamt file clock.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.2.1 18-Nov-2006  ad Sync with head.
 1.7.58.1 16-May-2008  yamt sync with head.
 1.7.56.1 18-May-2008  yamt sync with head.
 1.7.54.1 02-Jun-2008  mjf Sync with HEAD.
 1.8 15-Jun-2015  matt #include <sys/cpu.h> for curlwp
 1.7 08-Aug-2012  martin branches: 1.7.2; 1.7.16;
Remove unneeded cn_tab definition (and NULL initialization)
 1.6 28-Apr-2008  martin branches: 1.6.34;
Remove clause 3 and 4 from TNF licenses
 1.5 17-Oct-2007  garbled branches: 1.5.16; 1.5.18; 1.5.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 25-Aug-2007  tsutsui branches: 1.4.2;
Save/restore curlwp on calling ROM_GETC() and ROM_PUTC() functions,
which might break %s7 register.
 1.3 22-Feb-2007  thorpej branches: 1.3.4; 1.3.12; 1.3.16; 1.3.20;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.4 03-Sep-2007  yamt sync with head.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.20.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.3.16.1 03-Sep-2007  skrll Sync with HEAD.
 1.3.12.1 03-Oct-2007  garbled Sync with HEAD
 1.3.4.1 09-Oct-2007  ad Sync with head.
 1.4.2.1 06-Nov-2007  matt sync with HEAD
 1.5.20.1 16-May-2008  yamt sync with head.
 1.5.18.1 18-May-2008  yamt sync with head.
 1.5.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.34.1 30-Oct-2012  yamt sync with head
 1.7.16.1 22-Sep-2015  skrll Sync with HEAD
 1.7.2.1 03-Dec-2017  jdolecek update from HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.6 03-Mar-2022  riastradh mips: Use device_set_private for cpuN on older ports.

Specifically, for those that don't use cpu_attach_common of
mips_subr.c.
 1.5 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.4 20-Feb-2011  matt branches: 1.4.14; 1.4.32;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.3 04-Apr-2008  tsutsui branches: 1.3.22; 1.3.26; 1.3.32; 1.3.34;
Use CFATTACH_DECL_NEW(). (no softc)
 1.2 04-Jan-2008  ad branches: 1.2.6;
Pull in the right headers.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.52; 1.1.58; 1.1.66;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.66.1 08-Jan-2008  bouyer Sync with HEAD
 1.1.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.52.1 09-Jan-2008  matt sync with HEAD
 1.1.18.3 21-Jan-2008  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cpu.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.34.1 05-Mar-2011  bouyer Sync with HEAD
 1.3.32.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.26.1 05-Mar-2011  rmind sync with head
 1.3.22.2 23-Dec-2011  matt Change usage to cpu_identify(self, NULL);
 1.3.22.1 13-Jan-2010  matt Deal with new cpu_identity()
 1.4.32.1 22-Sep-2015  skrll Sync with HEAD
 1.4.14.1 03-Dec-2017  jdolecek update from HEAD
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file disklabel_conv.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.8 02-Aug-2009  uch fix comment
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 17-Oct-2007  garbled branches: 1.6.16; 1.6.18; 1.6.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 29-Jun-2007  tsutsui branches: 1.5.10;
__FUNCTION__ -> __func__
 1.4 22-Feb-2007  thorpej branches: 1.4.4; 1.4.6; 1.4.12;
TRUE -> true, FALSE -> false
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 25-Nov-2006  scw branches: 1.2.4;
Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 12-Jan-2007  ad Sync with head.
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file disksubr.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.4.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.4.12.1 03-Oct-2007  garbled Sync with HEAD
 1.4.6.1 11-Jul-2007  mjf Sync with head.
 1.4.4.1 15-Jul-2007  ad Sync with head.
 1.5.10.1 06-Nov-2007  matt sync with HEAD
 1.6.20.2 19-Aug-2009  yamt sync with head.
 1.6.20.1 16-May-2008  yamt sync with head.
 1.6.18.1 18-May-2008  yamt sync with head.
 1.6.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.8 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.7 20-Dec-2010  matt branches: 1.7.2; 1.7.4;
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.6 15-Nov-2010  uebayasi struct cpu_info * deref needs sys/cpu.h.
 1.5 14-Dec-2009  matt branches: 1.5.4;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.4 28-Apr-2008  martin branches: 1.4.18;
Remove clause 3 and 4 from TNF licenses
 1.3 03-Dec-2007  ad branches: 1.3.14; 1.3.16; 1.3.18;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.2 21-Dec-2006  yamt branches: 1.2.6; 1.2.22; 1.2.24; 1.2.30;
merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 22-Sep-2006  yamt fix softintr for following ports. (hopefully)
hpcmips
evbmips
algor
arc
ews4800mips
newsmips
 1.1.22.1 12-Jan-2007  ad Sync with head.
 1.1.18.4 07-Dec-2007  yamt sync with head
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file interrupt.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.30.1 08-Dec-2007  mjf Sync with HEAD.
 1.2.24.1 09-Jan-2008  matt sync with HEAD
 1.2.22.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.2.6.1 03-Dec-2007  ad Sync with HEAD.
 1.3.18.2 11-Mar-2010  yamt sync with head
 1.3.18.1 16-May-2008  yamt sync with head.
 1.3.16.1 18-May-2008  yamt sync with head.
 1.3.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.18.2 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.4.18.1 05-Feb-2010  matt Change to deal with new method of invoking softints. Remove mips/softintr.c
from config files. Fix SYMTAB_SPACE for WGT62V43
 1.5.4.1 05-Mar-2011  rmind sync with head
 1.7.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 17-Oct-2007  garbled branches: 1.4.16; 1.4.18; 1.4.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 27-Jun-2007  tsutsui branches: 1.3.10;
Print Error EPC rather than EPC on NMI.
 1.2 27-Jun-2007  tsutsui Print EPC address on NMI (i.e. when "DUMP" button is pressed) for debug.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.32; 1.1.34; 1.1.40;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.40.1 03-Oct-2007  garbled Sync with HEAD
 1.1.34.1 11-Jul-2007  mjf Sync with head.
 1.1.32.1 15-Jul-2007  ad Sync with head.
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file locore_machdep.S was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.20.1 16-May-2008  yamt sync with head.
 1.4.18.1 18-May-2008  yamt sync with head.
 1.4.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.33 05-Mar-2024  thorpej Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().

It's a small step, but it's a step.
 1.32 01-Nov-2022  andvar s/faild/failed/ in comments and messages.
 1.31 11-Jun-2020  ad uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched. It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.
 1.30 31-Dec-2019  ad Rename uvm_free() -> uvm_availmem().
 1.29 21-Dec-2019  ad uvmexp.free -> uvm_free()
 1.28 06-Nov-2017  christos branches: 1.28.4;
Cleanup and clarify the ELFSIZE mess:

We now have 2 variables automatically set in elf_machdep.h:

ARCH_ELFSIZE: the size for userland binaries
KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.27 22-Dec-2016  cherry switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.26 24-Mar-2014  christos branches: 1.26.6; 1.26.10;
use cpu_{g,s}etmodel
 1.25 28-Jul-2012  matt branches: 1.25.2; 1.25.4;
Fix -fno-common fallout.
 1.24 20-Feb-2011  matt branches: 1.24.4;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.23 04-May-2010  tsutsui branches: 1.23.2; 1.23.4;
Fix dumb build errors. Compile test only.
 1.22 08-Feb-2010  joerg branches: 1.22.2;
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
 1.21 14-Dec-2009  matt branches: 1.21.2;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.20 01-Dec-2009  skrll Fix build. Hi rmind.
 1.19 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.18 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.17 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.16 30-Nov-2008  martin As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.15 11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown(). No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown(). I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that. Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.14 02-Jul-2008  ad branches: 1.14.2; 1.14.4; 1.14.10;
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
 1.13 26-May-2008  tsutsui branches: 1.13.2;
Remove all initialization of obsolete ci_divisor_recip in
mips struct cpu_info and related macroes.
The member was prepared for a hack in MD microtime(9) implementation
but it has been superseded by MI timecounter(9).
 1.12 28-Apr-2008  martin branches: 1.12.2;
Remove clause 3 and 4 from TNF licenses
 1.11 09-Jan-2008  wiz branches: 1.11.6; 1.11.8; 1.11.10;
Fix typo in macro name and comments.
 1.10 17-Oct-2007  garbled branches: 1.10.2; 1.10.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.9 23-Jul-2007  tsutsui branches: 1.9.6;
Include <sys/proc.h> explicitly.
 1.8 02-Jun-2007  tsutsui branches: 1.8.2; 1.8.4;
Don't try to clear BSS if bootinfo is passed
(i.e. running kernel is loaded by the native bootloader).
 1.7 17-May-2007  yamt merge yamt-idlelwp branch. asked by core@. some ports still needs work.

from doc/BRANCHES:

idle lwp, and some changes depending on it.

1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
 1.6 04-Mar-2007  tsutsui branches: 1.6.2; 1.6.4; 1.6.10;
Add (char *) cast on pointer arith.
 1.5 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 25-Feb-2006  wiz branches: 1.2.12; 1.2.22;
Fix some typos.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2; 1.1.4; 1.1.6;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.1.2.1 01-Mar-2006  yamt sync with head.
 1.2.22.3 18-Apr-2007  ad - Further adaptations to MIPS for the yamt-idlelwp branch.
- Make curlwp a register variable on MIPS.
 1.2.22.2 12-Mar-2007  rmind Sync with HEAD.
 1.2.22.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.12.5 21-Jan-2008  yamt sync with head
 1.2.12.4 03-Sep-2007  yamt sync with head.
 1.2.12.3 26-Feb-2007  yamt sync with head.
 1.2.12.2 21-Jun-2006  yamt sync with head.
 1.2.12.1 25-Feb-2006  yamt file machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.6.10.3 03-Oct-2007  garbled Sync with HEAD
 1.6.10.2 26-Jun-2007  garbled Sync with HEAD.
 1.6.10.1 22-May-2007  matt Update to HEAD.
 1.6.4.1 11-Jul-2007  mjf Sync with head.
 1.6.2.3 20-Aug-2007  ad Sync with HEAD.
 1.6.2.2 09-Jun-2007  ad Sync with head.
 1.6.2.1 27-May-2007  ad Sync with head.
 1.8.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.8.2.1 07-Aug-2007  matt Sync with HEAD.
 1.9.6.2 23-Mar-2008  matt sync with HEAD
 1.9.6.1 06-Nov-2007  matt sync with HEAD
 1.10.8.1 10-Jan-2008  bouyer Sync with HEAD
 1.10.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.10.5 11-Aug-2010  yamt sync with head.
 1.11.10.4 11-Mar-2010  yamt sync with head
 1.11.10.3 19-Aug-2009  yamt sync with head.
 1.11.10.2 04-May-2009  yamt sync with head.
 1.11.10.1 16-May-2008  yamt sync with head.
 1.11.8.2 04-Jun-2008  yamt sync with head
 1.11.8.1 18-May-2008  yamt sync with head.
 1.11.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.11.6.2 02-Jul-2008  mjf Sync with HEAD.
 1.11.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.12.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.13.2.1 03-Jul-2008  simonb Sync with head.
 1.14.10.5 14-Feb-2012  matt mem_cluster_cnt on mips is now a u_int.
 1.14.10.4 21-Mar-2010  cliff mips_vector_init now takes an argument to specify splsw.
NULL specifies use the default 'std_splsw'
 1.14.10.3 01-Feb-2010  matt fix fallout from frame/trapframe merger.
 1.14.10.2 20-Jan-2010  matt Adjust things to the new world order.
 1.14.10.1 07-Sep-2009  matt Deal with pcb_context being a label_t
 1.14.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.14.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.21.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.21.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.22.2.2 05-Mar-2011  rmind sync with head
 1.22.2.1 30-May-2010  rmind sync with head
 1.23.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.23.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.24.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.4.1 30-Oct-2012  yamt sync with head
 1.25.4.1 18-May-2014  rmind sync with head
 1.25.2.2 03-Dec-2017  jdolecek update from HEAD
 1.25.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.26.10.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.26.6.1 05-Feb-2017  skrll Sync with HEAD
 1.28.4.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.5 20-Feb-2011  matt branches: 1.5.70;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.4 28-Apr-2008  martin branches: 1.4.18; 1.4.22; 1.4.28; 1.4.30;
Remove clause 3 and 4 from TNF licenses
 1.3 29-Mar-2008  tsutsui branches: 1.3.2; 1.3.4;
- split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.2 04-Jan-2008  ad branches: 1.2.6;
Pull in the right headers.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.52; 1.1.58; 1.1.66;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.66.1 08-Jan-2008  bouyer Sync with HEAD
 1.1.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.52.1 09-Jan-2008  matt sync with HEAD
 1.1.18.3 21-Jan-2008  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file mainbus.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.4.1 16-May-2008  yamt sync with head.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.22.1 05-Mar-2011  rmind sync with head
 1.4.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.5.70.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 22-Jan-2014  christos Fix debugging variables
 1.4 28-Apr-2008  martin branches: 1.4.34; 1.4.44; 1.4.50;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pdinfo.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.50.1 18-May-2014  rmind sync with head
 1.4.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.34.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.3 14-Dec-2009  matt branches: 1.3.22; 1.3.40;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.2 28-Apr-2008  martin branches: 1.2.18;
Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.2 11-Mar-2010  yamt sync with head
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.18.1 26-Aug-2009  matt Fixup (all but mipsco) to deal the new realities in mipsland.
 1.3.40.1 22-Sep-2015  skrll Sync with HEAD
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 02-Jan-2008  ad branches: 1.6.6; 1.6.8; 1.6.10;
Merge vmlocking2 to head.
 1.5 17-Oct-2007  garbled branches: 1.5.2; 1.5.4; 1.5.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 08-Oct-2007  ad Merge brelse() changes from the vmlocking branch.
 1.3 22-Feb-2007  thorpej branches: 1.3.4; 1.3.12; 1.3.20; 1.3.22; 1.3.24;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.5 21-Jan-2008  yamt sync with head
 1.1.18.4 27-Oct-2007  yamt sync with head.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sector.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.24.1 14-Oct-2007  yamt sync with head.
 1.3.22.2 09-Jan-2008  matt sync with HEAD
 1.3.22.1 06-Nov-2007  matt sync with HEAD
 1.3.20.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.3.12.1 16-Oct-2007  garbled Sync with HEAD
 1.3.4.1 09-Oct-2007  ad Sync with head.
 1.5.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.5.4.1 31-Dec-2007  ad Catch up with buffer cache changes.
 1.5.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.10.1 16-May-2008  yamt sync with head.
 1.6.8.1 18-May-2008  yamt sync with head.
 1.6.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.6 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.5 20-Feb-2011  matt branches: 1.5.14; 1.5.32;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.4 15-Nov-2010  uebayasi branches: 1.4.2; 1.4.4;
struct cpu_info * deref needs sys/cpu.h.
 1.3 28-Apr-2008  martin branches: 1.3.18; 1.3.22;
Remove clause 3 and 4 from TNF licenses
 1.2 04-Jan-2008  ad branches: 1.2.6; 1.2.8; 1.2.10;
Pull in the right headers.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.52; 1.1.58; 1.1.66;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.66.1 08-Jan-2008  bouyer Sync with HEAD
 1.1.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.52.1 09-Jan-2008  matt sync with HEAD
 1.1.18.3 21-Jan-2008  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file tr2.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.10.1 16-May-2008  yamt sync with head.
 1.2.8.1 18-May-2008  yamt sync with head.
 1.2.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.22.1 05-Mar-2011  rmind sync with head
 1.3.18.2 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.3.18.1 20-Jan-2010  matt Adjust things to the new world order.
 1.4.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5.32.1 22-Sep-2015  skrll Sync with HEAD
 1.5.14.1 03-Dec-2017  jdolecek update from HEAD
 1.12 10-Mar-2011  tsutsui Set correct struct clockframe .intr value for hardclock(9).
 1.11 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.10 28-Apr-2008  martin branches: 1.10.18; 1.10.22; 1.10.28; 1.10.30;
Remove clause 3 and 4 from TNF licenses
 1.9 14-Mar-2008  tsutsui branches: 1.9.2; 1.9.4;
Fix spl(9) botch in cpu_intr() on ews4800mips:
Don't enable unhandled interrupts before all interrupts are processed.
 1.8 04-Jan-2008  ad branches: 1.8.2; 1.8.6;
Pull in the right headers.
 1.7 03-Dec-2007  ad branches: 1.7.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.6 17-Oct-2007  garbled branches: 1.6.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 26-Jun-2007  tsutsui branches: 1.5.8; 1.5.10;
Use C99 initializers.
 1.4 16-Feb-2007  tsutsui branches: 1.4.6; 1.4.8; 1.4.14;
Remove hacks for now removed spllowersoftclock(9).
 1.3 08-Sep-2006  tsutsui Remove last_clock_intr since it is only used for microtime(9).
 1.2 08-Sep-2006  tsutsui Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
it isn't configured to use internal clock interrupt for CPU INT 5,
i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
is required.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18; 1.1.22;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.8 17-Mar-2008  yamt sync with head.
 1.1.18.7 21-Jan-2008  yamt sync with head
 1.1.18.6 07-Dec-2007  yamt sync with head
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file tr2_intr.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1.8.1 14-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.4.14.1 26-Jun-2007  garbled Sync with HEAD.
 1.4.8.1 11-Jul-2007  mjf Sync with head.
 1.4.6.2 03-Dec-2007  ad Sync with HEAD.
 1.4.6.1 15-Jul-2007  ad Sync with head.
 1.5.10.3 23-Mar-2008  matt sync with HEAD
 1.5.10.2 09-Jan-2008  matt sync with HEAD
 1.5.10.1 06-Nov-2007  matt sync with HEAD
 1.5.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.6.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.6.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.7.6.1 08-Jan-2008  bouyer Sync with HEAD
 1.8.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.8.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.2.1 24-Mar-2008  keiichi sync with head.
 1.9.4.1 16-May-2008  yamt sync with head.
 1.9.2.1 18-May-2008  yamt sync with head.
 1.10.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.22.2 21-Apr-2011  rmind sync with head
 1.10.22.1 05-Mar-2011  rmind sync with head
 1.10.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.6 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.5 20-Feb-2011  matt branches: 1.5.14; 1.5.32;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.4 15-Nov-2010  uebayasi branches: 1.4.2; 1.4.4;
struct cpu_info * deref needs sys/cpu.h.
 1.3 28-Apr-2008  martin branches: 1.3.18; 1.3.22;
Remove clause 3 and 4 from TNF licenses
 1.2 04-Jan-2008  ad branches: 1.2.6; 1.2.8; 1.2.10;
Pull in the right headers.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.52; 1.1.58; 1.1.66;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.66.1 08-Jan-2008  bouyer Sync with HEAD
 1.1.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.52.1 09-Jan-2008  matt sync with HEAD
 1.1.18.3 21-Jan-2008  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file tr2a.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.10.1 16-May-2008  yamt sync with head.
 1.2.8.1 18-May-2008  yamt sync with head.
 1.2.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.22.1 05-Mar-2011  rmind sync with head
 1.3.18.2 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.3.18.1 20-Jan-2010  matt Adjust things to the new world order.
 1.4.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5.32.1 22-Sep-2015  skrll Sync with HEAD
 1.5.14.1 03-Dec-2017  jdolecek update from HEAD
 1.15 10-Mar-2011  tsutsui Set correct struct clockframe .intr value for hardclock(9).
 1.14 24-Feb-2011  tsutsui Check and update intc_cause on each iteration of interrupt handler loop.
Fixes silent hang during SCSI probe.
 1.13 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.12 28-Apr-2008  martin branches: 1.12.18; 1.12.22; 1.12.28; 1.12.30;
Remove clause 3 and 4 from TNF licenses
 1.11 14-Mar-2008  tsutsui branches: 1.11.2; 1.11.4;
Fix spl(9) botch in cpu_intr() on ews4800mips:
Don't enable unhandled interrupts before all interrupts are processed.
 1.10 04-Jan-2008  ad branches: 1.10.2; 1.10.6;
Pull in the right headers.
 1.9 03-Dec-2007  ad branches: 1.9.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.8 17-Oct-2007  garbled branches: 1.8.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.7 22-Aug-2007  tsutsui branches: 1.7.2;
Don't print error messages on stray interrupts since
it could happen after cnputc().
 1.6 26-Jun-2007  tsutsui branches: 1.6.4; 1.6.8;
Use C99 initializers.
 1.5 16-Feb-2007  tsutsui branches: 1.5.6; 1.5.8; 1.5.14;
Remove hacks for now removed spllowersoftclock(9).
 1.4 08-Sep-2006  tsutsui Remove last_clock_intr since it is only used for microtime(9).
 1.3 08-Sep-2006  tsutsui Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
it isn't configured to use internal clock interrupt for CPU INT 5,
i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
is required.
 1.2 10-Jun-2006  tsutsui branches: 1.2.4; 1.2.8;
space nits.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.14;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.14.1 19-Jun-2006  chap Sync with head.
 1.1.8.2 14-Sep-2006  yamt sync with head.
 1.1.8.1 26-Jun-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.8.1 18-Nov-2006  ad Sync with head.
 1.2.4.8 17-Mar-2008  yamt sync with head.
 1.2.4.7 21-Jan-2008  yamt sync with head
 1.2.4.6 07-Dec-2007  yamt sync with head
 1.2.4.5 03-Sep-2007  yamt sync with head.
 1.2.4.4 26-Feb-2007  yamt sync with head.
 1.2.4.3 30-Dec-2006  yamt sync with head.
 1.2.4.2 21-Jun-2006  yamt sync with head.
 1.2.4.1 10-Jun-2006  yamt file tr2a_intr.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.5.14.2 03-Oct-2007  garbled Sync with HEAD
 1.5.14.1 26-Jun-2007  garbled Sync with HEAD.
 1.5.8.1 11-Jul-2007  mjf Sync with head.
 1.5.6.3 03-Dec-2007  ad Sync with HEAD.
 1.5.6.2 09-Oct-2007  ad Sync with head.
 1.5.6.1 15-Jul-2007  ad Sync with head.
 1.6.8.2 09-Dec-2007  jmcneill Sync with HEAD.
 1.6.8.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.6.4.1 03-Sep-2007  skrll Sync with HEAD.
 1.7.2.3 23-Mar-2008  matt sync with HEAD
 1.7.2.2 09-Jan-2008  matt sync with HEAD
 1.7.2.1 06-Nov-2007  matt sync with HEAD
 1.8.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.8.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.9.6.1 08-Jan-2008  bouyer Sync with HEAD
 1.10.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.10.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.10.2.1 24-Mar-2008  keiichi sync with head.
 1.11.4.1 16-May-2008  yamt sync with head.
 1.11.2.1 18-May-2008  yamt sync with head.
 1.12.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.12.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.12.22.2 21-Apr-2011  rmind sync with head
 1.12.22.1 05-Mar-2011  rmind sync with head
 1.12.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file vtoc.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.10 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.9 12-Jul-2018  maxv branches: 1.9.36;
Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

* Removes "options PERFCTRS", the associated includes, and the associated
ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
good.

* Removes the PMC code of ARM XSCALE.

* Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

* Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
definitions are put in sysarch.h.

* Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
netbsd32 and rump.

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.8 21-Dec-2015  christos branches: 1.8.16; 1.8.18;
Add mips fenv.h (From FreeBSD)
 1.7 23-Jul-2014  alnsn branches: 1.7.4;
Rename sljitarch.h to sljit_machdep.h.
 1.6 25-Nov-2012  alnsn branches: 1.6.10;
Add sljitarch.h to all mips machines.
 1.5 17-Jul-2011  joerg branches: 1.5.2; 1.5.12;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.4 08-Mar-2007  tsutsui Stop installing <machine/intr.h> on ews4800mips. Suggested by simonb.
 1.3 09-Feb-2007  ad branches: 1.3.2;
Merge newlock2 to head.
 1.2 26-Jul-2006  drochner branches: 1.2.4;
don't install <machine/db_machdep.h>, this is kernel only
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1.8.1 11-Aug-2006  yamt sync with head
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.4.1 01-Feb-2007  ad Header file cleanup.
 1.3.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.12.3 03-Dec-2017  jdolecek update from HEAD
 1.5.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.12.1 25-Feb-2013  tls resync with head
 1.5.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.6.10.1 10-Aug-2014  tls Rebase.
 1.7.4.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.8.18.1 10-Jun-2019  christos Sync with HEAD
 1.8.16.1 28-Jul-2018  pgoyette Sync with HEAD
 1.9.36.1 02-Aug-2025  perseant Sync with HEAD
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ansi.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file aout_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file asm.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file autoconf.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bfs.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bootinfo.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bswap.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.8 23-Sep-2019  skrll Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches
to follow arm and (generic) mips.

Reviewed by christos.
 1.7 23-Jun-2015  matt branches: 1.7.18;
Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.6 28-Apr-2008  martin branches: 1.6.44; 1.6.64;
Remove clause 3 and 4 from TNF licenses
 1.5 04-Mar-2007  christos branches: 1.5.40; 1.5.42; 1.5.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 21-Feb-2007  mrg add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
bus_addr_t min_addr,
bus_addr_t max_addr,
bus_dma_tag_t *newtag,
int flags)
void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to. this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
 1.3 26-May-2006  tsutsui branches: 1.3.4; 1.3.14;
Use the same bus_space_barrier(9) macro with other mips ports to avoid
possible unused variable warnings.
 1.2 16-Apr-2006  tsutsui branches: 1.2.2;
- make _ds_vaddr member vaddr_t instead of bus_addr_t
- use appropriate cache ops in bus_dmamap_sync() like other mips3 ports
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.8.2 26-Jun-2006  yamt sync with head.
 1.1.8.1 24-May-2006  yamt sync with head.
 1.1.6.2 01-Jun-2006  kardel Sync with head.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.2.1 19-Jun-2006  chap Sync with head.
 1.3.14.2 12-Mar-2007  rmind Sync with HEAD.
 1.3.14.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.3.4.4 03-Sep-2007  yamt sync with head.
 1.3.4.3 26-Feb-2007  yamt sync with head.
 1.3.4.2 21-Jun-2006  yamt sync with head.
 1.3.4.1 26-May-2006  yamt file bus.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.5.44.1 16-May-2008  yamt sync with head.
 1.5.42.1 18-May-2008  yamt sync with head.
 1.5.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.64.1 22-Sep-2015  skrll Sync with HEAD
 1.6.44.1 03-Dec-2017  jdolecek update from HEAD
 1.7.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cdefs.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cpu.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cpu_counter.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 09-Jul-2011  matt Default to DB_ELF_SYMBOLS and DB_ELFSIZE 32
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file db_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.5 03-Apr-2019  christos centralize setdisklabel(9)
 1.4 30-Aug-2011  bouyer branches: 1.4.54;
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file disklabel.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.54.1 10-Jun-2019  christos Sync with HEAD
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ecoff_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 14-Dec-2009  matt Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.80; 1.1.98;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.98.1 22-Aug-2009  matt Move ELF{32,64}_MACHDEP_ENDIANNESS to <mips/elf_machdep.h>
 1.1.80.1 11-Mar-2010  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file elf_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file endian.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file endian_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 21-Dec-2015  christos branches: 1.1.2; 1.1.18;
Add mips fenv.h (From FreeBSD)
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 21-Dec-2015  jdolecek file fenv.h was added on branch tls-maxphys on 2017-12-03 11:36:12 +0000
 1.1.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.1.2.1 21-Dec-2015  skrll file fenv.h was added on branch nick-nhusb on 2015-12-27 12:09:35 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file float.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file gareg.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file gavar.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ieee.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ieeefp.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file int_const.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file int_fmtio.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file int_limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file int_mwgwtypes.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file int_types.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.11 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.10 28-Apr-2008  martin branches: 1.10.18; 1.10.22; 1.10.28; 1.10.30;
Remove clause 3 and 4 from TNF licenses
 1.9 04-Jan-2008  ad branches: 1.9.6; 1.9.8; 1.9.10;
Don't pull in unrelated gunk.
 1.8 03-Dec-2007  ad branches: 1.8.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.7 17-Oct-2007  garbled branches: 1.7.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6 17-Jun-2007  tsutsui branches: 1.6.8; 1.6.10;
Move declaretions of _spl*() and _{clr,set}softintr() functions
(which are in mips/locore.S) into <mips/locore.h>
from various MD files.
 1.5 16-Jun-2007  tsutsui Correct declarations spl*() functions.
XXX: these should be moved into <mips/locore.h> or elsewhere.
 1.4 08-Mar-2007  tsutsui branches: 1.4.2; 1.4.4; 1.4.10;
Remove #ifdef _KERNEL since this file is no longer exported to userland.
 1.3 16-Feb-2007  ad branches: 1.3.2;
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
 1.2 21-Dec-2006  yamt merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.2 22-Sep-2006  yamt fix softintr for following ports. (hopefully)
hpcmips
evbmips
algor
arc
ews4800mips
newsmips
 1.1.24.1 21-Sep-2006  yamt - implement splraiseipl for algor, arc, ews4800mips, hpcmips, and newsmips.
- tweak evbmips version to match with others.
XXX i think these ought to be merged.
 1.1.22.1 12-Jan-2007  ad Sync with head.
 1.1.18.7 21-Jan-2008  yamt sync with head
 1.1.18.6 07-Dec-2007  yamt sync with head
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file intr.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:12 +0000
 1.3.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.4.10.1 26-Jun-2007  garbled Sync with HEAD.
 1.4.4.1 11-Jul-2007  mjf Sync with head.
 1.4.2.2 03-Dec-2007  ad Sync with HEAD.
 1.4.2.1 15-Jul-2007  ad Sync with head.
 1.6.10.2 09-Jan-2008  matt sync with HEAD
 1.6.10.1 06-Nov-2007  matt sync with HEAD
 1.6.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.7.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.7.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.8.6.1 08-Jan-2008  bouyer Sync with HEAD
 1.9.10.1 16-May-2008  yamt sync with head.
 1.9.8.1 18-May-2008  yamt sync with head.
 1.9.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.22.1 05-Mar-2011  rmind sync with head
 1.10.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file kcore.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file kdbparam.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.4 06-Aug-2014  joerg Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
 1.3 28-Apr-2008  martin branches: 1.3.44; 1.3.60;
Remove clause 3 and 4 from TNF licenses
 1.2 25-Jan-2006  christos branches: 1.2.16; 1.2.74; 1.2.76; 1.2.78;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 25-Jan-2006  yamt file loadfile_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.3.60.1 10-Aug-2014  tls Rebase.
 1.3.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file lock.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file locore.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 30-Nov-2024  christos branches: 1.1.4;
Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.1.4.2 02-Aug-2025  perseant Sync with HEAD
 1.1.4.1 30-Nov-2024  perseant file lwp_private.h was added on branch perseant-exfatfs on 2025-08-02 05:55:37 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file math.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file mcontext.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file mips_opcode.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file mutex.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file mutex.h was added on branch yamt-lazymbuf on 2007-02-26 09:06:27 +0000
 1.6 07-Jan-2019  jdolecek move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all ports

also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports
have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3
have lower MAXPHYS)
 1.5 18-Mar-2011  tsutsui branches: 1.5.54; 1.5.56;
Include <mips/mips_param.h> after MACHINE is defined.
 1.4 08-Feb-2011  rmind Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
 1.3 14-Dec-2009  matt branches: 1.3.4; 1.3.6; 1.3.8;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.2 13-Aug-2009  matt Move MID_MACHINE to <mips/mips_param.h> and use local values so we don't
need to include exec_aout.h
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.80; 1.1.98;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.98.1 22-Aug-2009  matt Move MACHINE_ARCH definition to <mips/mips_param.h>
Move mbuf related defines to <mips/mips_param.h>
 1.1.80.2 11-Mar-2010  yamt sync with head
 1.1.80.1 19-Aug-2009  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file param.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.3.8.1 17-Feb-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.2 21-Apr-2011  rmind sync with head
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.5.56.1 10-Jun-2019  christos Sync with HEAD
 1.5.54.1 18-Jan-2019  pgoyette Synch with HEAD
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pcb.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pdinfo.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pmap.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2 12-Jul-2018  maxv Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

* Removes "options PERFCTRS", the associated includes, and the associated
ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
good.

* Removes the PMC code of ARM XSCALE.

* Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

* Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
definitions are put in sysarch.h.

* Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
netbsd32 and rump.

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.166; 1.1.168;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.168.1 10-Jun-2019  christos Sync with HEAD
 1.1.166.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pmc.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file proc.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file profile.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file psl.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file pte.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ptrace.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file reg.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file regdef.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file regnum.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file reloc.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file rwlock.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file rwlock.h was added on branch yamt-lazymbuf on 2007-02-26 09:06:27 +0000
 1.3 27-Jun-2025  andvar Grammar and spelling fixes, mainly in comments. A few in documentation,
logging, test description, and SCSI ASC/ASCQ assignment descriptions.
 1.2 28-Apr-2008  martin branches: 1.2.124;
Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbd.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.124.1 02-Aug-2025  perseant Sync with HEAD
 1.4 08-Feb-2024  andvar s/inlucde/include/, s/implemetation/implementation/ in comments and error msg.
 1.3 21-Aug-2019  msaitoh Fix typo (s/controler/controller/).
 1.2 28-Apr-2008  martin branches: 1.2.88;
Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbd_tr2.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.88.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3 08-Feb-2024  andvar s/inlucde/include/, s/implemetation/implementation/ in comments and error msg.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbd_tr2a.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbdiovar.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.6 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
 1.5 14-Dec-2009  matt branches: 1.5.4; 1.5.6; 1.5.8;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.4 28-Apr-2008  martin branches: 1.4.18;
Remove clause 3 and 4 from TNF licenses
 1.3 04-Mar-2007  christos branches: 1.3.40; 1.3.42; 1.3.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 08-Sep-2006  tsutsui branches: 1.2.6;
Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
it isn't configured to use internal clock interrupt for CPU INT 5,
i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
is required.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18; 1.1.22;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.4 03-Sep-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbdvar.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1.8.1 14-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.6.1 12-Mar-2007  rmind Sync with HEAD.
 1.3.44.2 11-Mar-2010  yamt sync with head
 1.3.44.1 16-May-2008  yamt sync with head.
 1.3.42.1 18-May-2008  yamt sync with head.
 1.3.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.18.1 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.5.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.5.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5.4.1 05-Mar-2011  rmind sync with head
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sector.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file setjmp.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file signal.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 23-Jul-2014  alnsn branches: 1.1.2; 1.1.6;
Rename sljitarch.h to sljit_machdep.h.
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:00 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:53:57 +0000
 1.2 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.1 25-Nov-2012  alnsn branches: 1.1.2; 1.1.6; 1.1.14;
Add sljitarch.h to all mips machines.
 1.1.14.1 10-Aug-2014  tls Rebase.
 1.1.6.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 25-Nov-2012  tls file sljitarch.h was added on branch tls-maxphys on 2013-02-25 00:28:40 +0000
 1.1.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.1.2.1 25-Nov-2012  yamt file sljitarch.h was added on branch yamt-pagecache on 2013-01-16 05:32:58 +0000
 1.2 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file stdarg.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file trap.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.7 20-Jan-2008  joerg Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.6 17-Oct-2007  garbled branches: 1.6.2; 1.6.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 14-Jul-2007  ad branches: 1.5.10;
Generic soft interrupts are mandatory.
 1.4 08-Sep-2006  tsutsui branches: 1.4.10; 1.4.18;
Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
it isn't configured to use internal clock interrupt for CPU INT 5,
i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
is required.
 1.3 04-Sep-2006  tsutsui branches: 1.3.2;
Switch ews4800mips to MI todr.
 1.2 03-Sep-2006  bjh21 Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.5 21-Jan-2008  yamt sync with head
 1.1.18.4 03-Sep-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file types.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1.8.1 14-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.3.2.1 18-Nov-2006  ad Sync with head.
 1.4.18.1 03-Oct-2007  garbled Sync with HEAD
 1.4.10.1 15-Jul-2007  ad Sync with head.
 1.5.10.2 23-Mar-2008  matt sync with HEAD
 1.5.10.1 06-Nov-2007  matt sync with HEAD
 1.6.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.6.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.2 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file varargs.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.3 28-Mar-2019  christos protect kernel variable from userland exposure
XXX: if there a better place for this?
 1.2 14-Dec-2009  matt branches: 1.2.64;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.80; 1.1.98;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.98.1 11-Dec-2009  matt Use the default set of VM_FREELISTs in <mips/vmparam.h> but allow them to
be overridden (for pmax).
 1.1.80.1 11-Mar-2010  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file vmparam.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.64.1 10-Jun-2019  christos Sync with HEAD
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file vtoc.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file wchar_limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file wired_map.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.4 29-Mar-2008  tsutsui Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.3 07-Nov-2007  ad branches: 1.3.14;
Merge tty changes from the vmlocking branch.
 1.2 03-Nov-2006  tsutsui branches: 1.2.8; 1.2.26; 1.2.28; 1.2.32; 1.2.34;
- no need to scan zsc units in zshard(), just use passed one
- call zsc_intr_soft() directly on softintr and remove zssoft()
(no need spltty() since it should be done in each MD handler)
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.4 15-Nov-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file z8530var.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:13 +0000
 1.2.34.1 19-Nov-2007  mjf Sync with HEAD.
 1.2.32.1 13-Nov-2007  bouyer Sync with HEAD
 1.2.28.1 08-Nov-2007  matt sync with -HEAD
 1.2.26.1 11-Nov-2007  joerg Sync with HEAD.
 1.2.8.2 03-Dec-2007  ad Sync with HEAD.
 1.2.8.1 03-Dec-2007  ad Sync with HEAD.
 1.3.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.20 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.19 24-Apr-2021  thorpej branches: 1.19.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.18 21-Nov-2020  thorpej branches: 1.18.2;
malloc(9) -> kmem(9)
 1.17 10-Nov-2019  chs branches: 1.17.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.16 13-Jun-2017  spz branches: 1.16.6;
correct size checks so they cannot be circumvented by integer overflows

reported by CTurt, thanks for the notification
 1.15 23-Jun-2015  matt branches: 1.15.10;
Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.14 21-Sep-2014  christos branches: 1.14.2;
fix leak.
 1.13 31-Jan-2014  tsutsui branches: 1.13.4;
Remove unnecessary #if 1/#endif.
 1.12 11-Jan-2012  macallan branches: 1.12.2; 1.12.6; 1.12.8; 1.12.10; 1.12.16;
adjust for wsfont_find() change
 1.11 15-May-2010  tsutsui branches: 1.11.8; 1.11.12;
Set RI_NO_AUTO at correct place. Confirmed on EWS4800/360AD.
 1.10 15-May-2010  tsutsui Clear RI_NO_AUTO in actual attach functions during autoconf(9)
for console devices that set the flag during consinit().
 1.9 15-May-2010  tsutsui Set RI_NO_AUTO in cnattach function. Untested.
 1.8 07-Nov-2009  cegger branches: 1.8.2; 1.8.4;
Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 29-Mar-2008  tsutsui branches: 1.6.2; 1.6.4;
- split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.5 17-Mar-2007  msaitoh branches: 1.5.34;
s/intialized/initialized/
 1.4 04-Mar-2007  christos branches: 1.4.2; 1.4.4; 1.4.6;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.3 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.2 12-Apr-2006  jmmv branches: 1.2.6; 1.2.16;
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.8.1 24-May-2006  yamt sync with head.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.16.3 24-Mar-2007  yamt sync with head.
 1.2.16.2 12-Mar-2007  rmind Sync with HEAD.
 1.2.16.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.6.4 03-Sep-2007  yamt sync with head.
 1.2.6.3 26-Feb-2007  yamt sync with head.
 1.2.6.2 21-Jun-2006  yamt sync with head.
 1.2.6.1 12-Apr-2006  yamt file fb_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.4.6.1 18-Mar-2007  reinoud First attempt to bring branch in sync with HEAD
 1.4.4.1 11-Jul-2007  mjf Sync with head.
 1.4.2.1 10-Apr-2007  ad Sync with head.
 1.5.34.2 02-Jun-2008  mjf Sync with HEAD.
 1.5.34.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.4.3 11-Aug-2010  yamt sync with head.
 1.6.4.2 11-Mar-2010  yamt sync with head
 1.6.4.1 16-May-2008  yamt sync with head.
 1.6.2.1 18-May-2008  yamt sync with head.
 1.8.4.1 30-May-2010  rmind sync with head
 1.8.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.11.12.1 18-Feb-2012  mrg merge to -current.
 1.11.8.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.8.1 17-Apr-2012  yamt sync with head
 1.12.16.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.10.1 18-May-2014  rmind sync with head
 1.12.8.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.6.2 03-Dec-2017  jdolecek update from HEAD
 1.12.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.13.4.2 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.13.4.1 10-Nov-2014  snj branches: 1.13.4.1.2; 1.13.4.1.6;
Pull up following revision(s) (requested by maxv in ticket #195):
sys/arch/arm/iomd/iomd_irqhandler.c: revision 1.21
sys/arch/arm/ofw/ofw_irqhandler.c: revision 1.21
sys/arch/atari/atari/intr.c: revision 1.24-1.25
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.14
sys/arch/hpcmips/tx/tx39icu.c: revision 1.34
sys/arch/shark/isa/isa_irqhandler.c: revision 1.27
sys/arch/sparc/sparc/machdep.c: revision 1.327
sys/arch/sparc64/dev/psycho.c: revision 1.119
sys/arch/sparc64/dev/schizo.c: revision 1.32
sys/arch/sparc64/sparc64/machdep.c: revision 1.279
sys/arch/sun68k/sun68k/bus.c: revision 1.22
sys/arch/x86/x86/ipmi.c: revision 1.58
sys/arch/xen/xen/privcmd.c: revision 1.46-1.49
Fix several memory leaks.
 1.13.4.1.6.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.13.4.1.2.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.14.2.2 28-Aug-2017  skrll Sync with HEAD
 1.14.2.1 22-Sep-2015  skrll Sync with HEAD
 1.15.10.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #39):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.16.6.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.17.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.18.2.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.19.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.13 22-Jul-2020  msaitoh s/reseting/resetting/
 1.12 23-Jun-2015  matt Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.11 22-Jan-2014  christos branches: 1.11.6;
fix set but unused variable
 1.10 01-Dec-2009  skrll branches: 1.10.12; 1.10.22; 1.10.26;
Spell busy correctly.
 1.9 10-May-2009  tsutsui Misc bus_dma(9) related cleanup:
- calculate each descriptor sizes and offsets in iee_attach() and store them
into softc, rather than re-calculating them everywhere via macros
- prepare macros to sync DMA shmem per each descriptor
- sync only necessary descriptors in iee_intr() and iee_start()
- make sure SCB_FOO macros take softc as an arg properly
- use bus_dmamap_load_mbuf(9) for RX mbufs
- put 2 byte alignments to RX mbufs

XXX: still slower than ie(4) in i82586 compat mode on HP9000 735/125.
 1.8 09-May-2009  tsutsui Move allocation of DMA shared memory with bus_dma(9) ops
from MD attachments to MI iee_attach().
Tested on HP9000 735/125. Compile test only on ews4800mips.

XXX: more strict bus_dmamap_sync(9) calls are required in various places.
 1.7 09-May-2009  tsutsui - use BUS_DMA_COHERENT rather than using MIPS_KSEG1_START
- use bus_dmamap_sync(9) rather than mips_dcache_wbinv_range()
- call bus_dmamap_sync(9) properly on DMA polling

XXX: untested due to lack of hardware
 1.6 05-May-2009  tsutsui - KNF and some misc cosmetics
- remove a function name from error messages on attach failure
 1.5 04-Apr-2008  tsutsui branches: 1.5.4; 1.5.18;
Split device_t/softc for iee(4), with misc cosmetic changes.
 1.4 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.3 04-Mar-2007  tsutsui branches: 1.3.40;
Add a proper cast to bus_dmamem_map(9) on mapping shared memory.
 1.2 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file if_iee_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.3.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.5.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.4.2 11-Mar-2010  yamt sync with head
 1.5.4.1 16-May-2009  yamt sync with head
 1.10.26.1 18-May-2014  rmind sync with head
 1.10.22.2 03-Dec-2017  jdolecek update from HEAD
 1.10.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.12.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.6.1 22-Sep-2015  skrll Sync with HEAD
 1.8 11-Jul-2015  kamil Improve spelling: regsiter -> register

This change is non-functional.

Approved by <riastradh>, <pgoyette>
 1.7 13-Oct-2012  tsutsui branches: 1.7.14;
struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@)
 1.6 19-Jan-2010  pooka branches: 1.6.12; 1.6.22;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 04-Apr-2008  tsutsui branches: 1.4.2; 1.4.4;
Split device_t/softc for le(4) and variants and misc cosmetic changes.
 1.3 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.2 04-Mar-2007  christos branches: 1.2.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file if_le_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.4.4.2 11-Mar-2010  yamt sync with head
 1.4.4.1 16-May-2008  yamt sync with head.
 1.4.2.1 18-May-2008  yamt sync with head.
 1.6.22.2 03-Dec-2017  jdolecek update from HEAD
 1.6.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.6.12.1 30-Oct-2012  yamt sync with head
 1.7.14.1 22-Sep-2015  skrll Sync with HEAD
 1.15 10-Dec-2021  andvar s/occured/occurred/ in comments, log messages and man pages.
 1.14 18-Sep-2021  tsutsui Remove unnecessary (and unimplemented) WSKBD_*BELL ioctls in kbd drivers.

It looks the only ioctl(4) to be implemented for WSKBDIO_*BELL in
the backend keyboard driver is WSKBDIO_COMPLEXBELL.
All other BELL ioctls (WSKBDIO_BELL, WSKBDIO_SETBELL, WSKBDIO_GETBELL,
WSKBDIO_SETDEFAULTBELL, and WSKBDIO_GETDEFAULTBELL) are handled in the
MI wskbd driver (in wskbd_displayioctl() in src/sys/dev/wscons/wskbd.c).
 1.13 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12 24-Apr-2021  thorpej branches: 1.12.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.11 26-Mar-2014  christos branches: 1.11.44;
kill sprintf
 1.10 13-Oct-2012  tsutsui branches: 1.10.2;
struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@)
 1.9 28-Apr-2008  martin branches: 1.9.34; 1.9.44;
Remove clause 3 and 4 from TNF licenses
 1.8 29-Mar-2008  tsutsui branches: 1.8.2; 1.8.4;
- split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.7 17-Oct-2007  garbled branches: 1.7.16;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6 29-Jun-2007  tsutsui branches: 1.6.10;
Fix botch in cnpollc(9) for keyboard devices.
 1.5 04-Mar-2007  christos branches: 1.5.2; 1.5.4; 1.5.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 12-Nov-2006  plunky branches: 1.2.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.22; 1.1.24;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.1 18-Nov-2006  ad Sync with head.
 1.1.18.5 03-Sep-2007  yamt sync with head.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file kbms_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.4.2 12-Mar-2007  rmind Sync with HEAD.
 1.2.4.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.5.10.1 03-Oct-2007  garbled Sync with HEAD
 1.5.4.1 11-Jul-2007  mjf Sync with head.
 1.5.2.1 15-Jul-2007  ad Sync with head.
 1.6.10.1 06-Nov-2007  matt sync with HEAD
 1.7.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.7.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.4.1 16-May-2008  yamt sync with head.
 1.8.2.1 18-May-2008  yamt sync with head.
 1.9.44.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.34.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.34.1 30-Oct-2012  yamt sync with head
 1.10.2.1 18-May-2014  rmind sync with head
 1.11.44.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.12.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 29-Mar-2008  tsutsui branches: 1.6.2; 1.6.4;
- split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.5 29-Mar-2008  tsutsui Fix thinko.
 1.4 29-Mar-2008  tsutsui Don't forget to initialize sc_dev.
 1.3 28-Mar-2008  tsutsui Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
 1.2 10-Jan-2008  tsutsui branches: 1.2.6;
- move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
MD attachments
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.52; 1.1.58; 1.1.66;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.66.1 10-Jan-2008  bouyer Sync with HEAD
 1.1.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.52.1 23-Mar-2008  matt sync with HEAD
 1.1.18.3 21-Jan-2008  yamt sync with head
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file mkclock_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.4.1 16-May-2008  yamt sync with head.
 1.6.2.1 18-May-2008  yamt sync with head.
 1.4 14-May-2008  tsutsui Normalize my licenses.
 1.3 29-Mar-2008  tsutsui branches: 1.3.2; 1.3.4; 1.3.6;
Split softc/device_t for oosiop(4) and osiop(4), with misc cosmetic changes.
 1.2 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.76.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.76.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file osiop_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.4.1 16-May-2008  yamt sync with head.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.5 23-Jun-2015  matt branches: 1.5.32;
Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.4 14-Dec-2009  matt branches: 1.4.22; 1.4.40;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.3 28-Apr-2008  martin branches: 1.3.18;
Remove clause 3 and 4 from TNF licenses
 1.2 29-Mar-2008  tsutsui branches: 1.2.2; 1.2.4;
- split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.76.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.76.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.4.2 11-Mar-2010  yamt sync with head
 1.2.4.1 16-May-2008  yamt sync with head.
 1.2.2.1 18-May-2008  yamt sync with head.
 1.3.18.1 26-Aug-2009  matt Fixup (all but mipsco) to deal the new realities in mipsland.
 1.4.40.1 22-Sep-2015  skrll Sync with HEAD
 1.4.22.1 03-Dec-2017  jdolecek update from HEAD
 1.5.32.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.14 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13 24-Apr-2021  thorpej branches: 1.13.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.12 23-Jun-2015  matt branches: 1.12.32;
Fixup includes to the new world order.
Put platform wdflush into mips_locore_jumpvec
 1.11 22-Jan-2014  christos branches: 1.11.6;
remove unused
 1.10 28-Apr-2008  martin branches: 1.10.34; 1.10.44; 1.10.50;
Remove clause 3 and 4 from TNF licenses
 1.9 29-Mar-2008  tsutsui branches: 1.9.2; 1.9.4;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.8 29-Mar-2008  tsutsui - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
 1.7 26-Nov-2007  ad branches: 1.7.14;
Use the softint API.
 1.6 09-Nov-2007  ad Call zs_lock_init() to set up the chanstate's lock.
 1.5 17-Oct-2007  garbled branches: 1.5.2;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 09-Jun-2007  tsutsui branches: 1.4.8; 1.4.10; 1.4.14;
Call simple_lock_init(9) with proper zs_chanstate otherwise
LOCKDEBUG kernel fails during console zstty attachment.
 1.3 03-Nov-2006  tsutsui branches: 1.3.8; 1.3.10; 1.3.16;
- no need to scan zsc units in zshard(), just use passed one
- call zsc_intr_soft() directly on softintr and remove zssoft()
(no need spltty() since it should be done in each MD handler)
 1.2 28-Mar-2006  thorpej branches: 1.2.6; 1.2.10; 1.2.12;
Use device_unit().
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.8.1 01-Apr-2006  yamt sync with head.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.12.1 10-Dec-2006  yamt sync with head.
 1.2.10.1 18-Nov-2006  ad Sync with head.
 1.2.6.6 07-Dec-2007  yamt sync with head
 1.2.6.5 15-Nov-2007  yamt sync with head.
 1.2.6.4 03-Sep-2007  yamt sync with head.
 1.2.6.3 30-Dec-2006  yamt sync with head.
 1.2.6.2 21-Jun-2006  yamt sync with head.
 1.2.6.1 28-Mar-2006  yamt file zs_sbdio.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.16.1 26-Jun-2007  garbled Sync with HEAD.
 1.3.10.1 11-Jul-2007  mjf Sync with head.
 1.3.8.2 03-Dec-2007  ad Sync with HEAD.
 1.3.8.1 15-Jul-2007  ad Sync with head.
 1.4.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.4.10.2 09-Jan-2008  matt sync with HEAD
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.4.8.2 27-Nov-2007  joerg Sync with HEAD. amd64 Xen support needs testing.
 1.4.8.1 11-Nov-2007  joerg Sync with HEAD.
 1.5.2.2 08-Dec-2007  mjf Sync with HEAD.
 1.5.2.1 19-Nov-2007  mjf Sync with HEAD.
 1.7.14.2 02-Jun-2008  mjf Sync with HEAD.
 1.7.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.9.4.1 16-May-2008  yamt sync with head.
 1.9.2.1 18-May-2008  yamt sync with head.
 1.10.50.1 18-May-2014  rmind sync with head
 1.10.44.2 03-Dec-2017  jdolecek update from HEAD
 1.10.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.34.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11.6.1 22-Sep-2015  skrll Sync with HEAD
 1.12.32.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.13.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.9 08-Sep-2016  christos Avoid the PIE
 1.8 31-Jan-2014  tsutsui branches: 1.8.6;
Workaround weird "nbmake[8]: Graph cycles through `clean'" errors.
 1.7 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.6 12-Aug-2013  joerg Build boot loaders without unwind tables.
 1.5 27-May-2010  dholland branches: 1.5.8; 1.5.18; 1.5.22;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.4 15-Mar-2009  tsutsui branches: 1.4.2; 1.4.4;
- use <bsd.klinks.mk> to create symlinks to MD system header directories
- suppress warnings on build without DESTDIR
 1.3 28-Jun-2006  lukem branches: 1.3.62; 1.3.70; 1.3.76;
support MAKEVERBOSE
 1.2 28-Jun-2006  lukem Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.16; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile.bootxx was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.8.1 11-Aug-2006  yamt sync with head
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.3.76.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.70.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.62.2 11-Aug-2010  yamt sync with head.
 1.3.62.1 04-May-2009  yamt sync with head.
 1.4.4.1 30-May-2010  rmind sync with head
 1.4.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.5.22.2 18-May-2014  rmind sync with head
 1.5.22.1 28-Aug-2013  rmind sync with head
 1.5.18.2 03-Dec-2017  jdolecek update from HEAD
 1.5.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.8.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.6.1 05-Oct-2016  skrll Sync with HEAD
 1.2 08-Sep-2016  christos Avoid the PIE
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.124; 1.1.144;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.144.1 05-Oct-2016  skrll Sync with HEAD
 1.1.124.1 03-Dec-2017  jdolecek update from HEAD
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile.inc was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.27 09-May-2025  martin Bump kernel size slightly
 1.26 27-Apr-2025  tsutsui Remove a trailing tab.
 1.25 07-Jun-2020  tsutsui branches: 1.25.26;
Use -fno-unwind-tables to shrink boot binaries a bit.
 1.24 23-Dec-2019  christos Bump size.
 1.23 01-Jan-2019  christos ELF2ECOFF -> MIPS_ELF2ECOFF
 1.22 08-Apr-2017  christos branches: 1.22.12; 1.22.14;
centralize vers.c building for standalone programs.
 1.21 20-Sep-2016  christos branches: 1.21.2;
The booter contains a kernel which contains a ramdisk. The kernel grew
and does not fit in the booter anymore, grow it a bit.
 1.20 08-Sep-2016  christos Avoid the PIE
 1.19 05-Aug-2014  apb branches: 1.19.4; 1.19.8;
Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
 1.18 31-Jan-2014  tsutsui branches: 1.18.2;
Workaround weird "nbmake[8]: Graph cycles through `clean'" errors.
 1.17 27-Jan-2014  apb Pass the -n flag to gzip invocations.

This prevents it from embedding a timestamp in the output. We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
 1.16 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.15 25-Dec-2011  tsutsui branches: 1.15.6; 1.15.10;
Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

- add 'ls' op to struct fs_ops to support ls command on each fs,
enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
in libsa
- split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
that opens the target fs and calls fs-depedent XXX_ls() functions
- add a ls op for ext2fs
(all other fs than ufs and ext2fs don't have actual ls ops yet)
- replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
 1.14 10-Jul-2011  matt branches: 1.14.2; 1.14.6;
Use TOOL_GZIP
 1.13 07-Jul-2011  mrg apply some -fno-strict-aliasing
 1.12 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.11 27-May-2010  dholland branches: 1.11.2; 1.11.4;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.10 03-Apr-2009  tsutsui branches: 1.10.2; 1.10.4;
Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
 1.9 15-Mar-2009  tsutsui - use <bsd.klinks.mk> to create symlinks to MD system header directories
- suppress warnings on build without DESTDIR
 1.8 16-Jul-2008  tsutsui branches: 1.8.2; 1.8.8;
Change boot messages to replace build date and maker with kernrev.
 1.7 28-Jun-2006  lukem branches: 1.7.58; 1.7.62; 1.7.64; 1.7.66; 1.7.68;
more MAKEVERBOSE
 1.6 28-Jun-2006  lukem support MAKEVERBOSE
 1.5 28-Jun-2006  lukem Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD.
 1.4 26-Jan-2006  tsutsui branches: 1.4.2; 1.4.6; 1.4.14; 1.4.16;
Add -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET to CPPFLAGS.
 1.3 08-Jan-2006  tsutsui Build and install the following bootloader binaries:
boot: ELF bootloader binary
boot.coff: COFF bootloader binary (for old firmware)
boot_kernel.gz: ELF bootloader binary which can include kernel binary
by mdsetimage(8) (for netboot)
 1.2 30-Dec-2005  tsutsui branches: 1.2.2;
- Fix a build error.
- Wrap long lines.
 1.1 29-Dec-2005  tsutsui Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.2.2.2 01-Feb-2006  yamt sync with head.
 1.2.2.1 15-Jan-2006  yamt sync with head.
 1.4.16.3 30-Dec-2006  yamt sync with head.
 1.4.16.2 21-Jun-2006  yamt sync with head.
 1.4.16.1 26-Jan-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.4.14.1 13-Jul-2006  gdamore Merge from HEAD.
 1.4.6.1 11-Aug-2006  yamt sync with head
 1.4.2.1 09-Sep-2006  rpaulo sync with head
 1.7.68.1 19-Oct-2008  haad Sync with HEAD.
 1.7.66.1 18-Jul-2008  simonb Sync with head.
 1.7.64.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.7.62.2 11-Aug-2010  yamt sync with head.
 1.7.62.1 04-May-2009  yamt sync with head.
 1.7.58.1 28-Sep-2008  mjf Sync with HEAD.
 1.8.8.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.2.1 28-Apr-2009  skrll Sync with HEAD.
 1.10.4.2 05-Mar-2011  rmind sync with head
 1.10.4.1 30-May-2010  rmind sync with head
 1.10.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.11.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.11.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.14.6.1 18-Feb-2012  mrg merge to -current.
 1.14.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.2.1 17-Apr-2012  yamt sync with head
 1.15.10.1 18-May-2014  rmind sync with head
 1.15.6.2 03-Dec-2017  jdolecek update from HEAD
 1.15.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.2.1 10-Aug-2014  tls Rebase.
 1.19.8.2 26-Apr-2017  pgoyette Sync with HEAD
 1.19.8.1 04-Nov-2016  pgoyette Sync with HEAD
 1.19.4.2 28-Aug-2017  skrll Sync with HEAD
 1.19.4.1 05-Oct-2016  skrll Sync with HEAD
 1.21.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.22.14.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.22.14.1 10-Jun-2019  christos Sync with HEAD
 1.22.12.1 18-Jan-2019  pgoyette Synch with HEAD
 1.25.26.1 02-Aug-2025  perseant Sync with HEAD
 1.3 04-Feb-2009  tsutsui - use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.2 16-Jul-2008  tsutsui branches: 1.2.2; 1.2.4;
Change boot messages to replace build date and maker with kernrev.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.80; 1.1.82; 1.1.84; 1.1.86;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.86.1 19-Oct-2008  haad Sync with HEAD.
 1.1.84.1 18-Jul-2008  simonb Sync with head.
 1.1.82.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.80.1 04-May-2009  yamt sync with head.
 1.1.76.1 28-Sep-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file version was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.4.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.2.2.1 03-Mar-2009  skrll Sync with HEAD.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.5 08-Jan-2019  christos no need for <machine/param.h>
 1.4 08-Jan-2019  christos Include <sys/param.h> for DEV_BSIZE/DEV_BSHIFT
 1.3 28-Apr-2008  martin branches: 1.3.86; 1.3.88;
Remove clause 3 and 4 from TNF licenses
 1.2 22-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
TRUE -> true, FALSE -> false
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bfs_subr.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.88.1 10-Jun-2019  christos Sync with HEAD
 1.3.86.1 18-Jan-2019  pgoyette Synch with HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file binkernel.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.7 16-Jul-2008  tsutsui Change boot messages to replace build date and maker with kernrev.
 1.6 28-Apr-2008  martin branches: 1.6.2; 1.6.4; 1.6.6;
Remove clause 3 and 4 from TNF licenses
 1.5 22-Feb-2007  thorpej branches: 1.5.42; 1.5.44; 1.5.46;
TRUE -> true, FALSE -> false
 1.4 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.3 25-Feb-2006  wiz branches: 1.3.12; 1.3.22;
Fix some typos.
 1.2 26-Jan-2006  tsutsui branches: 1.2.2; 1.2.4;
Fix printf warnings.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.4.1 22-Apr-2006  simonb Sync with head.
 1.2.2.1 09-Sep-2006  rpaulo sync with head
 1.3.22.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.3.12.3 26-Feb-2007  yamt sync with head.
 1.3.12.2 21-Jun-2006  yamt sync with head.
 1.3.12.1 25-Feb-2006  yamt file boot.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.5.46.2 04-May-2009  yamt sync with head.
 1.5.46.1 16-May-2008  yamt sync with head.
 1.5.44.1 18-May-2008  yamt sync with head.
 1.5.42.2 28-Sep-2008  mjf Sync with HEAD.
 1.5.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.6.1 19-Oct-2008  haad Sync with HEAD.
 1.6.4.1 18-Jul-2008  simonb Sync with head.
 1.6.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file boot_device.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.5 09-Jan-2019  christos use <sys/param.h> instead of <machine/param.h> for everything.
 1.4 28-Apr-2008  martin branches: 1.4.86; 1.4.88;
Remove clause 3 and 4 from TNF licenses
 1.3 15-Dec-2007  perry branches: 1.3.6; 1.3.8; 1.3.10;
__FUNCTION__ -> __func__
 1.2 25-Jan-2006  christos branches: 1.2.16; 1.2.50; 1.2.60; 1.2.64;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.64.1 02-Jan-2008  bouyer Sync with HEAD
 1.2.60.1 26-Dec-2007  ad Sync with head.
 1.2.50.1 09-Jan-2008  matt sync with HEAD
 1.2.16.3 21-Jan-2008  yamt sync with head
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 25-Jan-2006  yamt file bootfs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.10.1 16-May-2008  yamt sync with head.
 1.3.8.1 18-May-2008  yamt sync with head.
 1.3.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.88.1 10-Jun-2019  christos Sync with HEAD
 1.4.86.1 18-Jan-2019  pgoyette Synch with HEAD
 1.6 07-Jun-2020  tsutsui Fix "illegal exceptoin" error on loading a secondary boot.

Recent gcc/binutils create more than two problem header sections
so the primary bootxx should handle them accordingly.
See my port-mips@ port for more details:
https://mail-index.netbsd.org/port-mips/2020/06/06/msg000948.html

Should be pulled up to netbsd-9.
 1.5 04-Feb-2009  tsutsui branches: 1.5.70;
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.10;
Remove clause 3 and 4 from TNF licenses
 1.3 21-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 26-Aug-2006  tsutsui branches: 1.2.8;
Fix pointer signedness warnings by gcc4.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bootxx.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1.8.1 03-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.3.46.2 04-May-2009  yamt sync with head.
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.5.70.1 20-Jun-2020  martin Pull up following revision(s) (requested by tsutsui in ticket #952):

sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.6

Fix "illegal exception" error on loading a secondary boot.

Recent gcc/binutils create more than two problem header sections
so the primary bootxx should handle them accordingly.
See my port-mips@ port for more details:
https://mail-index.netbsd.org/port-mips/2020/06/06/msg000948.html

Should be pulled up to netbsd-9.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file bootxx.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 26-Aug-2006  tsutsui Handle (.rodata.*) sections created by gcc4.
 1.2 18-Mar-2006  tsutsui branches: 1.2.6;
Don't put .reginfo into .bss but prepare an independent section for it
so that new ld(1) no longer dies on link as PR/33011.

Still ld(1) coredump problem should be fixed, IMO.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.12;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.12.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.8.2 03-Sep-2006  yamt sync with head.
 1.1.8.1 01-Apr-2006  yamt sync with head.
 1.1.6.1 22-Apr-2006  simonb Sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.6.3 30-Dec-2006  yamt sync with head.
 1.2.6.2 21-Jun-2006  yamt sync with head.
 1.2.6.1 18-Mar-2006  yamt file bootxx.ldscript was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3 30-May-2016  dholland PR 51182 David Binderman: fix redundant conditional
 1.2 28-Apr-2008  martin branches: 1.2.44; 1.2.64;
Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cmd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.64.1 09-Jul-2016  skrll Sync with HEAD
 1.2.44.1 03-Dec-2017  jdolecek update from HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cmd.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1 29-Dec-2005  tsutsui branches: 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file coffboot.ldscript was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file coffhdrfix.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file common.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_fb.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_rom.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2 14-May-2008  tsutsui Normalize my licenses.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80; 1.1.82;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.82.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_zs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 17-Oct-2007  garbled branches: 1.3.16; 1.3.18; 1.3.20;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 02-Jun-2007  tsutsui branches: 1.2.10;
Use some more ANSI character escape sequences in keymaps.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.32; 1.1.34; 1.1.40;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.40.1 26-Jun-2007  garbled Sync with HEAD.
 1.1.34.1 11-Jul-2007  mjf Sync with head.
 1.1.32.1 09-Jun-2007  ad Sync with head.
 1.1.18.3 03-Sep-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file cons_zskbd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.10.1 06-Nov-2007  matt sync with HEAD
 1.3.20.1 16-May-2008  yamt sync with head.
 1.3.18.1 18-May-2008  yamt sync with head.
 1.3.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file console.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file console.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 26-Jan-2006  tsutsui branches: 1.2.16; 1.2.74; 1.2.76; 1.2.78;
Fix printf warnings.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 26-Jan-2006  yamt file cop0.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file datafs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file delay.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 21-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 26-Aug-2006  tsutsui branches: 1.2.8;
Fix pointer signedness warnings by gcc4.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file device_test.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1.8.1 03-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 25-Dec-2011  tsutsui Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

- add 'ls' op to struct fs_ops to support ls command on each fs,
enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
in libsa
- split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
that opens the target fs and calls fs-depedent XXX_ls() functions
- add a ls op for ext2fs
(all other fs than ufs and ext2fs don't have actual ls ops yet)
- replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
 1.4 28-Apr-2008  martin branches: 1.4.34; 1.4.38;
Remove clause 3 and 4 from TNF licenses
 1.3 27-Oct-2007  tsutsui branches: 1.3.16; 1.3.18; 1.3.20;
Include <lib/libsa/dev_net.h> for "extern int try_bootp" decl.
 1.2 22-Feb-2007  thorpej branches: 1.2.4; 1.2.20; 1.2.22; 1.2.26;
TRUE -> true, FALSE -> false
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.4 15-Nov-2007  yamt sync with head.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file devopen.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.2.26.1 13-Nov-2007  bouyer Sync with HEAD
 1.2.22.1 06-Nov-2007  matt sync with HEAD
 1.2.20.1 28-Oct-2007  joerg Sync with HEAD.
 1.2.4.1 03-Dec-2007  ad Sync with HEAD.
 1.3.20.1 16-May-2008  yamt sync with head.
 1.3.18.1 18-May-2008  yamt sync with head.
 1.3.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.38.1 18-Feb-2012  mrg merge to -current.
 1.4.34.1 17-Apr-2012  yamt sync with head
 1.9 09-Jan-2019  christos use <sys/param.h> instead of <machine/param.h> for everything.
 1.8 26-Mar-2014  christos branches: 1.8.28; 1.8.30;
kill sprintf
 1.7 04-Feb-2009  tsutsui branches: 1.7.14; 1.7.24; 1.7.28;
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.6 28-Apr-2008  martin branches: 1.6.8; 1.6.10;
Remove clause 3 and 4 from TNF licenses
 1.5 15-Dec-2007  perry branches: 1.5.6; 1.5.8; 1.5.10;
__FUNCTION__ -> __func__
 1.4 22-Feb-2007  thorpej branches: 1.4.22; 1.4.30; 1.4.34;
TRUE -> true, FALSE -> false
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 26-Aug-2006  tsutsui branches: 1.2.8;
Fix pointer signedness warnings by gcc4.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.5 21-Jan-2008  yamt sync with head
 1.1.18.4 26-Feb-2007  yamt sync with head.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file disk.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.1.8.1 03-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.4.34.1 02-Jan-2008  bouyer Sync with HEAD
 1.4.30.1 26-Dec-2007  ad Sync with head.
 1.4.22.1 09-Jan-2008  matt sync with HEAD
 1.5.10.2 04-May-2009  yamt sync with head.
 1.5.10.1 16-May-2008  yamt sync with head.
 1.5.8.1 18-May-2008  yamt sync with head.
 1.5.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.6.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.7.28.1 18-May-2014  rmind sync with head
 1.7.24.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.14.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.30.1 10-Jun-2019  christos Sync with HEAD
 1.8.28.1 18-Jan-2019  pgoyette Synch with HEAD
 1.5 25-Dec-2011  tsutsui Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

- add 'ls' op to struct fs_ops to support ls command on each fs,
enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
in libsa
- split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
that opens the target fs and calls fs-depedent XXX_ls() functions
- add a ls op for ext2fs
(all other fs than ufs and ext2fs don't have actual ls ops yet)
- replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
 1.4 28-Apr-2008  martin branches: 1.4.34; 1.4.38;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file diskutil.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.38.1 18-Feb-2012  mrg merge to -current.
 1.4.34.1 17-Apr-2012  yamt sync with head
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file entry.S was added on branch yamt-lazymbuf on 2006-06-21 14:51:20 +0000
 1.6 21-Nov-2014  christos need clock_subr.h for bcdtobin()
 1.5 12-Jan-2009  tsutsui branches: 1.5.24;
Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
numbers in seconds returned by the machine dependent getsecs() function
which are used to measure relative time

saseconds_t (currently int):
numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
 1.4 12-Jan-2009  tsutsui Fix getsecs() to return more proper values:
- use not only second but also minute and hour registers
- use bcdtobin() to read mkclock registers
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.10;
Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file ether_if.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.2.46.2 04-May-2009  yamt sync with head.
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.2 17-Jan-2009  mjf Sync with HEAD.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/common/ether_if.c: revision 1.4
Fix getsecs() to return more proper values:
- use not only second but also minute and hour registers
- use bcdtobin() to read mkclock registers
 1.3.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.24.1 03-Dec-2017  jdolecek update from HEAD
 1.3 22-Jan-2014  christos remove unused var
 1.2 28-Apr-2008  martin branches: 1.2.34; 1.2.44; 1.2.50;
Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file fileread_bfs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.2.50.1 18-May-2014  rmind sync with head
 1.2.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.34.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 26-Aug-2006  tsutsui branches: 1.2.56; 1.2.58; 1.2.60;
Fix pointer signedness warnings by gcc4.
 1.1 29-Dec-2005  tsutsui branches: 1.1.4; 1.1.8; 1.1.18;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.18.3 30-Dec-2006  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file fileread_ustarfs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.1.8.1 03-Sep-2006  yamt sync with head.
 1.1.4.1 09-Sep-2006  rpaulo sync with head
 1.2.60.1 16-May-2008  yamt sync with head.
 1.2.58.1 18-May-2008  yamt sync with head.
 1.2.56.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 04-Feb-2009  tsutsui - use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.10;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file floppy_2d.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.46.2 04-May-2009  yamt sync with head.
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.5 04-Feb-2009  tsutsui - use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.10;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file floppy_2hc.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.46.2 04-May-2009  yamt sync with head.
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.5 04-Feb-2009  tsutsui - use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.10;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file floppy_2hd_ibmpc.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.46.2 04-May-2009  yamt sync with head.
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.4.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file inckern.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.8 05-Dec-2021  msaitoh s/initialz/initializ/ in comment.
 1.7 04-Sep-2018  riastradh Fix some min/max -> uimin/uimax stragglers.

Confirmed by the 2018-09-04T04:40Z autobuild.
 1.6 13-Jan-2013  tsutsui branches: 1.6.36; 1.6.38;
Fix tyop. (How these ones slipped in!?)
 1.5 28-Apr-2008  martin branches: 1.5.34; 1.5.44;
Remove clause 3 and 4 from TNF licenses
 1.4 15-Dec-2007  perry branches: 1.4.6; 1.4.8; 1.4.10;
__FUNCTION__ -> __func__
 1.3 22-Feb-2007  thorpej branches: 1.3.22; 1.3.30; 1.3.34;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.4 21-Jan-2008  yamt sync with head
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file lance.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.34.1 02-Jan-2008  bouyer Sync with HEAD
 1.3.30.1 26-Dec-2007  ad Sync with head.
 1.3.22.1 09-Jan-2008  matt sync with HEAD
 1.4.10.1 16-May-2008  yamt sync with head.
 1.4.8.1 18-May-2008  yamt sync with head.
 1.4.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.44.1 25-Feb-2013  tls resync with head
 1.5.34.1 23-Jan-2013  yamt sync with head
 1.6.38.1 10-Jun-2019  christos Sync with HEAD
 1.6.36.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.6 09-Sep-2023  andvar s/reagion/region/ in comment.
 1.5 06-Oct-2021  andvar s/embeded/embedded/ in comments and messages.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 26-Jan-2006  tsutsui branches: 1.2.16; 1.2.26;
Fix printf warnings.
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.16.3 26-Feb-2007  yamt sync with head.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 26-Jan-2006  yamt file loader.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 21-Feb-2007  thorpej branches: 1.2.42; 1.2.44; 1.2.46;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file local.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.6 09-Jan-2019  christos use <sys/param.h> instead of <machine/param.h> for everything.
 1.5 28-Apr-2008  martin branches: 1.5.86; 1.5.88;
Remove clause 3 and 4 from TNF licenses
 1.4 22-Feb-2007  thorpej branches: 1.4.42; 1.4.44; 1.4.46;
TRUE -> true, FALSE -> false
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 25-Jan-2006  christos branches: 1.2.16; 1.2.26;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.16.3 26-Feb-2007  yamt sync with head.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 25-Jan-2006  yamt file mem.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.4.46.1 16-May-2008  yamt sync with head.
 1.4.44.1 18-May-2008  yamt sync with head.
 1.4.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.88.1 10-Jun-2019  christos Sync with HEAD
 1.5.86.1 18-Jan-2019  pgoyette Synch with HEAD
 1.5 09-Jan-2019  christos use <sys/param.h> instead of <machine/param.h> for everything.
 1.4 28-Apr-2008  martin branches: 1.4.86; 1.4.88;
Remove clause 3 and 4 from TNF licenses
 1.3 22-Feb-2007  thorpej branches: 1.3.42; 1.3.44; 1.3.46;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.28;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.28.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.18.3 26-Feb-2007  yamt sync with head.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file prompt.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.3.46.1 16-May-2008  yamt sync with head.
 1.3.44.1 18-May-2008  yamt sync with head.
 1.3.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.88.1 10-Jun-2019  christos Sync with HEAD
 1.4.86.1 18-Jan-2019  pgoyette Synch with HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Dec-2005  tsutsui branches: 1.1.18; 1.1.76; 1.1.78; 1.1.80;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.80.1 16-May-2008  yamt sync with head.
 1.1.78.1 18-May-2008  yamt sync with head.
 1.1.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.18.2 21-Jun-2006  yamt sync with head.
 1.1.18.1 29-Dec-2005  yamt file start.S was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.9 09-Jan-2019  christos use <sys/param.h> instead of <machine/param.h> for everything.
 1.8 04-Feb-2009  tsutsui branches: 1.8.64; 1.8.66;
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision

XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.7 28-Apr-2008  martin branches: 1.7.8; 1.7.10;
Remove clause 3 and 4 from TNF licenses
 1.6 15-Dec-2007  perry branches: 1.6.6; 1.6.8; 1.6.10;
__FUNCTION__ -> __func__
 1.5 22-Feb-2007  thorpej branches: 1.5.22; 1.5.30; 1.5.34;
TRUE -> true, FALSE -> false
 1.4 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.3 26-Aug-2006  tsutsui branches: 1.3.8;
Fix pointer signedness warnings by gcc4.
 1.2 25-Jan-2006  christos branches: 1.2.2; 1.2.6; 1.2.16;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.1 29-Dec-2005  tsutsui branches: 1.1.2;
Initial import of NetBSD/ews4800mips port,
for NEC's MIPS based EWS4800 workstations.

Most porting work was done by UCHIYAMA Yasushi <uch@netbsd>
http://mail-index.netbsd.org/port-mips/2004/06/27/0000.html
and various cleanup, updating, and fixes have been done by me.
Currently only EWS4800/350, 360, 360AD, 360ADII, 360EX and 360SX
models are supported.
 1.1.2.1 01-Feb-2006  yamt sync with head.
 1.2.16.5 21-Jan-2008  yamt sync with head
 1.2.16.4 26-Feb-2007  yamt sync with head.
 1.2.16.3 30-Dec-2006  yamt sync with head.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 25-Jan-2006  yamt file ustarfs.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:21 +0000
 1.2.6.1 03-Sep-2006  yamt sync with head.
 1.2.2.1 09-Sep-2006  rpaulo sync with head
 1.3.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.5.34.1 02-Jan-2008  bouyer Sync with HEAD
 1.5.30.1 26-Dec-2007  ad Sync with head.
 1.5.22.1 09-Jan-2008  matt sync with HEAD
 1.6.10.2 04-May-2009  yamt sync with head.
 1.6.10.1 16-May-2008  yamt sync with head.
 1.6.8.1 18-May-2008  yamt sync with head.
 1.6.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.10.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #419):
sys/arch/ews4800mips/stand/boot/version: revision 1.3
sys/arch/ews4800mips/stand/common/bootxx.c: revision 1.5
sys/arch/ews4800mips/stand/common/disk.c: revision 1.7
sys/arch/ews4800mips/stand/common/floppy_2d.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hc.c: revision 1.5
sys/arch/ews4800mips/stand/common/floppy_2hd_ibmpc.c: revision 1.5
sys/arch/ews4800mips/stand/common/ustarfs.c: revision 1.8
- use multiple sector read on floppy boot
(speeds up ustarfs floppy boot from ~840sec to ~100sec)
- use twiddle() rather than printing CHS numbers on reading floppy sectors
- make ustarfs_load() work with more than two volumes
- bump revision
XXX: FD_FORMAT_2D is not identified properly in boot_device() on EWS4800/360SX.
 1.7.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.8.66.1 10-Jun-2019  christos Sync with HEAD
 1.8.64.1 18-Jan-2019  pgoyette Synch with HEAD

RSS XML Feed