Home | History | Annotate | only in /src/sys/arch/sun2/include
History log of /src/sys/arch/sun2/include
RevisionDateAuthorComments
 1.14 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.13 12-Jul-2018  maxv branches: 1.13.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.12 24-Dec-2015  christos branches: 1.12.16; 1.12.18;
fenv for m68k
 1.11 17-Jul-2011  joerg branches: 1.11.12; 1.11.30;
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.10 22-Feb-2007  tsutsui Remove garbage in previous.
 1.9 09-Feb-2007  ad branches: 1.9.2;
Merge newlock2 to head.
 1.8 26-Jul-2006  drochner branches: 1.8.4;
don't install <machine/db_machdep.h>, this is kernel only
 1.7 11-Dec-2005  christos branches: 1.7.4; 1.7.8;
merge ktrace-lwp.
 1.6 08-May-2004  kleink branches: 1.6.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.5 18-Jan-2003  thorpej branches: 1.5.2;
Merge the nathanw_sa branch.
 1.4 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.3 07-Aug-2002  briggs Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.2 22-Mar-2002  fredette branches: 1.2.4;
Added bits to use the console code under sys/arch/sun2 and
sys/dev/sun.
 1.1 27-Jun-2001  fredette branches: 1.1.2; 1.1.8;
Added a Makefile for the sun2 includes.
 1.1.8.5 11-Dec-2002  thorpej Sync with HEAD.
 1.1.8.4 13-Aug-2002  nathanw Catch up to -current.
 1.1.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.8.2 10-Nov-2001  scw Kernel mcontext glue for Scheduler Activations on m68k from
Klaus Klein <kleink@netbsd.org>.
 1.1.8.1 27-Jun-2001  scw file Makefile was added on branch nathanw_sa on 2001-11-10 21:22:53 +0000
 1.1.2.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.1 31-Aug-2002  gehenna catch up with -current.
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.6.12.2 26-Feb-2007  yamt sync with head.
 1.6.12.1 30-Dec-2006  yamt sync with head.
 1.7.8.1 11-Aug-2006  yamt sync with head
 1.7.4.1 09-Sep-2006  rpaulo sync with head
 1.8.4.1 01-Feb-2007  ad Header file cleanup.
 1.9.2.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.11.30.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.11.12.1 03-Dec-2017  jdolecek update from HEAD
 1.12.18.1 10-Jun-2019  christos Sync with HEAD
 1.12.16.1 28-Jul-2018  pgoyette Sync with HEAD
 1.13.36.1 02-Aug-2025  perseant Sync with HEAD
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file ansi.h was added on branch nathanw_sa on 2001-04-06 13:13:02 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file ansi.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.2 10-Dec-2002  thorpej Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 11-Dec-2002  thorpej Sync with HEAD.
 1.1.10.1 06-Apr-2001  thorpej file aout_machdep.h was added on branch nathanw_sa on 2002-12-11 06:12:32 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file aout_machdep.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file asm.h was added on branch nathanw_sa on 2001-04-06 13:13:03 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file asm.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.3 27-Jun-2001  fredette branches: 1.3.8;
Include a common header, then define macros that
give the appearance of specific attach args for
the mbio and mbmem buses.
 1.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file autoconf.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.3.8.2 27-Jun-2001  fredette Include a common header, then define macros that
give the appearance of specific attach args for
the mbio and mbmem buses.
 1.3.8.1 27-Jun-2001  fredette file autoconf.h was added on branch nathanw_sa on 2001-06-27 19:21:50 +0000
 1.3 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.2 19-Sep-2007  he Improve consistency between <sys/bswap.h> and what's actually
defined by the C library for the various m68k ports by borrowing
some #ifs from the i386 port.

Also, align sun2 with the other m68k ports as to whether they
define __bswap{16,32} or bswap{16,32} in their C library (all
now define the __ variants).

This should make the m68k ports build sys/rump again, except
for sun2 which hits another problem later on.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10; 1.1.42; 1.1.84; 1.1.92; 1.1.102; 1.1.104;
Added.
 1.1.104.1 06-Nov-2007  matt sync with HEAD
 1.1.102.1 02-Oct-2007  joerg Sync with HEAD.
 1.1.92.1 03-Oct-2007  garbled Sync with HEAD
 1.1.84.1 09-Oct-2007  ad Sync with head.
 1.1.42.1 27-Oct-2007  yamt sync with head.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file bswap.h was added on branch nathanw_sa on 2001-04-06 13:13:03 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file bswap.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.3 14-Jun-2001  fredette branches: 1.3.8;
Now simply include the real header under arch/sun68k.
 1.2 06-Apr-2001  fredette branches: 1.2.2;
Added an internal bus_space flag to find and use PROM mappings.
Added an internal bus_dma flag to mark when a map has been
loaded by double-mapping pages by hand, outside of the pmap.
Added more prototypes for our bus_dma implementation.
 1.1 29-Mar-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 06-Apr-2001  bouyer file bus.h was added on branch thorpej_scsipi on 2001-04-21 17:54:48 +0000
 1.3.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.3.8.1 14-Jun-2001  fredette file bus.h was added on branch nathanw_sa on 2001-06-14 13:16:04 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file cdefs.h was added on branch nathanw_sa on 2001-04-06 13:13:03 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file cdefs.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.5 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.4 28-Feb-2002  simonb branches: 1.4.8;
Use "#define<tab>".
 1.3 27-Feb-2002  christos - define other DEV_ constants that the local port uses.
- delete cdev_decl(mm) since <sys/conf.h> does it.
 1.2 27-Jun-2001  fredette branches: 1.2.2; 1.2.8;
Declare the PROM console device.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file conf.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.2.8.4 17-Sep-2002  nathanw Catch up to -current.
 1.2.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.2.8.1 27-Jun-2001  nathanw file conf.h was added on branch nathanw_sa on 2002-02-28 04:12:20 +0000
 1.2.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.8.1 19-May-2002  gehenna Remove port-dependent conf.h.
 1.3 27-Jun-2001  fredette branches: 1.3.8;
Just include a common header.
 1.2 30-May-2001  mrg use _KERNEL_OPT
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file cpu.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.3.8.2 27-Jun-2001  fredette Just include a common header.
 1.3.8.1 27-Jun-2001  fredette file cpu.h was added on branch nathanw_sa on 2001-06-27 19:19:23 +0000
 1.8 06-Nov-2017  christos 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.7 11-Dec-2005  christos branches: 1.7.122;
merge ktrace-lwp.
 1.6 03-Jun-2005  tsutsui Remove declarations for db_read_bytes() and db_write_bytes().
They are in <ddb/db_access.h>.
 1.5 22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.4 13-May-2002  matt branches: 1.4.10; 1.4.18;
Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h>
 1.3 30-Nov-2001  fredette Purge vm_offset_t.
 1.2 09-Nov-2001  thorpej branches: 1.2.2;
Remove unneeded declarations of the db_machine_init() function. The
ARM ports are the only ones that actually have one, and it is about
to change.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.4; 1.1.8;
Added.
 1.1.8.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.1.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file db_machdep.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.2.2.3 20-Jun-2002  nathanw Catch up to -current.
 1.2.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.2.1 09-Nov-2001  nathanw file db_machdep.h was added on branch nathanw_sa on 2002-01-08 00:28:09 +0000
 1.4.18.1 29-Apr-2005  kent sync with -current
 1.4.10.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.10.1 24-Jan-2005  skrll Sync with HEAD.
 1.7.122.1 03-Dec-2017  jdolecek update from HEAD
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 12-Jun-2005  dyoung Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
 1.2 14-Jun-2001  fredette branches: 1.2.8; 1.2.24;
Now simply include the real header under arch/sun68k.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file disklabel.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.2.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.2.8.1 14-Jun-2001  fredette file disklabel.h was added on branch nathanw_sa on 2001-06-14 13:12:51 +0000
 1.8 20-Jul-2024  andvar fix typos in comments, mainly s/harware/hardware/.
 1.7 28-Apr-2008  martin branches: 1.7.124;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5 19-Jun-2005  thorpej Move common Sun ID PROM definitions into <dev/sun/idprom.h>.
 1.4 02-Apr-2003  thorpej branches: 1.4.2;
Use PAGE_SIZE rather than NBPG.
 1.3 14-Jun-2001  fredette branches: 1.3.8;
Corrected the value of DVMA_OBIO_SLAVE_BASE; obio
devices can see the entire CPU address space.
 1.2 06-Apr-2001  fredette branches: 1.2.2;
Now use the proper DVMA map size depending on what
machine type we're on.
Removed all prototypes, since we're going bus_dma.
 1.1 29-Mar-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 06-Apr-2001  bouyer file dvma.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.3.8.2 14-Jun-2001  fredette Corrected the value of DVMA_OBIO_SLAVE_BASE; obio
devices can see the entire CPU address space.
 1.3.8.1 14-Jun-2001  fredette file dvma.h was added on branch nathanw_sa on 2001-06-14 13:17:05 +0000
 1.4.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.78.1 16-May-2008  yamt sync with head.
 1.6.76.1 18-May-2008  yamt sync with head.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.124.1 02-Aug-2025  perseant Sync with HEAD
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.74; 1.3.76; 1.3.78;
merge ktrace-lwp.
 1.2 19-Jun-2005  thorpej Move common Sun3/Sun4 EEPROM definitions in to <dev/sun/eeprom.h>
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10; 1.1.26;
Added.
 1.1.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file eeprom.h was added on branch nathanw_sa on 2001-04-06 13:13:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file eeprom.h was added on branch thorpej_scsipi on 2001-04-21 17:54:49 +0000
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 28-Jan-2002  thorpej Define ELF32_EHDR_FLAGS_OK()/ELF64_EHDR_FLAGS_OK() and use it
as an added measure to make sure that we can execute a binary.
These default to (1) if elf_machdep.h does not override them.

On Sun2, ELF32_EHDR_FLAGS_OK() checks for the presense of EF_M68000,
since the 68010 cannot run binaries for the 68020-and-up.
 1.4 28-Jan-2002  thorpej Just use the stock m68k/elf_machdep.h for now, so that things compile.
A patch to handle EF_M68000 will be posted shortly.
 1.3 09-Dec-2001  thorpej Add support for dumping ELF-cormat core files.
 1.2 27-Jun-2001  fredette branches: 1.2.2; 1.2.8;
Now define a suitable ELF32_MACHDEP_ID_CASES.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file elf_machdep.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.2.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.8.1 27-Jun-2001  nathanw file elf_machdep.h was added on branch nathanw_sa on 2002-01-08 00:28:09 +0000
 1.2.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.2.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file endian.h was added on branch nathanw_sa on 2001-04-06 13:13:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file endian.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file endian_machdep.h was added on branch nathanw_sa on 2001-04-06 13:13:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file endian_machdep.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.1 22-Mar-2002  fredette branches: 1.1.4; 1.1.10;
Added bits to use the console code under sys/arch/sun2 and
sys/dev/sun.
 1.1.10.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.10.1 22-Mar-2002  jdolecek file fbio.h was added on branch kqueue on 2002-06-23 17:42:31 +0000
 1.1.4.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.1 22-Mar-2002  nathanw file fbio.h was added on branch nathanw_sa on 2002-04-01 07:43:19 +0000
 1.1 27-Dec-2023  thorpej Re-factor the 680x0 Function Code definitions into their own
separate file (as was done on the sun2/sun3 ports ages ago)
and switch everyone to the common header.
 1.1 24-Dec-2015  christos branches: 1.1.2; 1.1.18;
fenv for m68k
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 24-Dec-2015  jdolecek file fenv.h was added on branch tls-maxphys on 2017-12-03 11:36:45 +0000
 1.1.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.1.2.1 24-Dec-2015  skrll file fenv.h was added on branch nick-nhusb on 2015-12-27 12:09:44 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file float.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file frame.h was added on branch nathanw_sa on 2001-04-06 13:13:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file frame.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.2 14-Jun-2001  fredette branches: 1.2.8;
Now simply include the real header under arch/sun68k.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file idprom.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.2.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.2.8.1 14-Jun-2001  fredette file idprom.h was added on branch nathanw_sa on 2001-06-14 13:12:51 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file ieee.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file ieeefp.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.10;
Add definitions of C99 integer constant macros.
 1.1.10.2 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
 1.1.10.1 14-Apr-2001  kleink file int_const.h was added on branch nathanw_sa on 2001-04-14 22:38:44 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_const.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.10;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.2 15-Apr-2001  kleink Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.1 15-Apr-2001  kleink file int_fmtio.h was added on branch nathanw_sa on 2001-04-15 17:13:20 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_fmtio.h was added on branch thorpej_scsipi on 2001-04-21 17:54:50 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.10;
Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.2 15-Apr-2001  kleink Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.1 15-Apr-2001  kleink file int_limits.h was added on branch nathanw_sa on 2001-04-15 15:29:14 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_limits.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.10;
Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.2 14-Apr-2001  kleink Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.10.1 14-Apr-2001  kleink file int_mwgwtypes.h was added on branch nathanw_sa on 2001-04-14 12:20:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_mwgwtypes.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file int_types.h was added on branch nathanw_sa on 2001-04-06 13:13:04 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file int_types.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.6 05-Oct-2006  tsutsui Minor cleanups before isr.c merge with sun3:
- include <m68k/cpu.h> rather than <m68k/m68k.h> in <sun68k/cpu.h>
- wrap M68K_VAC definition with #ifndef _SUN3X_ in <sun68k/cpu.h>
- move setsoftnet() macro from <sun68k/cpu.h> to <sun68k/intr.h>
- move declarations for isr_soft_request() and isr_soft_clear() from
sun2/include/intr.h to <sun68k/intr.h>
- remove extern keyword from function declarations
 1.5 11-Dec-2005  christos branches: 1.5.20; 1.5.22;
merge ktrace-lwp.
 1.4 22-Jan-2005  chs branches: 1.4.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.3 14-Jun-2001  fredette branches: 1.3.8; 1.3.24; 1.3.32;
Now simply include the real header under arch/sun68k.
 1.2 18-Apr-2001  fredette branches: 1.2.2;
Now define IPL_BIO.
 1.1 06-Apr-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 18-Apr-2001  bouyer file intr.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.3.32.1 29-Apr-2005  kent sync with -current
 1.3.24.1 24-Jan-2005  skrll Sync with HEAD.
 1.3.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.3.8.1 14-Jun-2001  fredette file intr.h was added on branch nathanw_sa on 2001-06-14 13:12:51 +0000
 1.4.8.1 30-Dec-2006  yamt sync with head.
 1.5.22.1 06-Oct-2006  tsutsui Sync files of recent sun3 and sun68k merge and intersil7170(4) changes
with HEAD to build sun3 kernel on this branch.
 1.5.20.1 18-Nov-2006  ad Sync with head.
 1.1 27-Jun-2001  fredette branches: 1.1.8;
Just include a common header.
 1.1.8.2 27-Jun-2001  fredette Just include a common header.
 1.1.8.1 27-Jun-2001  fredette file kbd.h was added on branch nathanw_sa on 2001-06-27 19:19:24 +0000
 1.1 27-Jun-2001  fredette branches: 1.1.8;
Just include a common header.
 1.1.8.2 27-Jun-2001  fredette Just include a common header.
 1.1.8.1 27-Jun-2001  fredette file kbio.h was added on branch nathanw_sa on 2001-06-27 19:19:24 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file kcore.h was added on branch nathanw_sa on 2001-04-06 13:13:05 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file kcore.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.74; 1.3.76; 1.3.78;
merge ktrace-lwp.
 1.2 22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10; 1.1.26; 1.1.34;
Added.
 1.1.34.1 29-Apr-2005  kent sync with -current
 1.1.26.1 24-Jan-2005  skrll Sync with HEAD.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file leds.h was added on branch nathanw_sa on 2001-04-06 13:13:05 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file leds.h was added on branch thorpej_scsipi on 2001-04-21 17:54:51 +0000
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file limits.h was added on branch nathanw_sa on 2001-04-06 13:13:05 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file limits.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.1 17-Sep-2006  tsutsui branches: 1.1.4; 1.1.8;
Make sun68k/stand build without installed ${DESTDIR} files.

Currently "machine" symlink points sys/arch/sun68k/include,
but this means some <machine/foo.h> files are taken from
sys/arch/sun68k/include but others (i.e. files not in sun68k/include)
are taken from ${DESTDIR}/usr/include/machine.

Instead, make "machine" symlink point sys/arch/${MACHINE}/include,
make "sun68k" symlink point sys/arch/sun68k/include (not sys/arch/sun68k),
add sys/arch to include path, and move some files where appropriate.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 17-Sep-2006  yamt file loadfile_machdep.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:06 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 17-Sep-2006  ad file loadfile_machdep.h was added on branch newlock2 on 2006-11-18 21:29:34 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file lock.h was added on branch nathanw_sa on 2001-04-06 13:13:05 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file lock.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +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:56:10 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file math.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 17-Sep-2006  tsutsui branches: 1.1.4; 1.1.8;
Make sun68k/stand build without installed ${DESTDIR} files.

Currently "machine" symlink points sys/arch/sun68k/include,
but this means some <machine/foo.h> files are taken from
sys/arch/sun68k/include but others (i.e. files not in sun68k/include)
are taken from ${DESTDIR}/usr/include/machine.

Instead, make "machine" symlink point sys/arch/${MACHINE}/include,
make "sun68k" symlink point sys/arch/sun68k/include (not sys/arch/sun68k),
add sys/arch to include path, and move some files where appropriate.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 17-Sep-2006  yamt file mc68851.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:06 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 17-Sep-2006  ad file mc68851.h was added on branch newlock2 on 2006-11-18 21:29:34 +0000
 1.2 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 10-Nov-2001  scw branches: 1.1.2;
file mcontext.h was initially added on branch nathanw_sa.
 1.1.2.1 10-Nov-2001  scw Kernel mcontext glue for Scheduler Activations on m68k from
Klaus Klein <kleink@netbsd.org>.
 1.2 14-Jun-2001  fredette branches: 1.2.8;
Now simply include the real header under arch/sun68k.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file mon.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.2.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.2.8.1 14-Jun-2001  fredette file mon.h was added on branch nathanw_sa on 2001-06-14 13:12:51 +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:08:31 +0000
 1.16 31-May-2021  simonb Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE is
referenced since some sources include <machine/param.h>.
 1.15 11-Aug-2012  tsutsui branches: 1.15.56;
Poor sun2 has only 14MB KVA space so reduce NKMEMPAGES_MIN_DEFAULT and
NKMEMPAGES_MAX_DEFAULT values accordingly.

XXX: netbsd-6 GENERIC still gets "panic: pool_get: kmem-4096: page empty"
 1.14 10-Feb-2012  para branches: 1.14.2;
proper sizing of kmem_arena on different ports

PR port-i386/45946: Kernel locks up in VMEM system
 1.13 08-Feb-2011  rmind branches: 1.13.4; 1.13.8;
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.12 08-Feb-2010  joerg branches: 1.12.2; 1.12.4; 1.12.6;
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.11 11-Dec-2009  tsutsui branches: 1.11.2;
Refactoring MD segment related definitions on m68k ports:
- move macro SEGSHIFT, NBSG, and SEGOFFSET from <machine/param.h>
to <machine/pmap.h> where they should belong
- don't use m68k_round_seg() and m68k_trunc_seg() in sun2 pmap sources
and instead define and use sun2_round_seg() and sun2_trunc_seg()
since they are quite pmap implementation dependent
 1.10 02-Jul-2008  ad Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
 1.9 16-Mar-2007  tsutsui branches: 1.9.34; 1.9.38; 1.9.40; 1.9.42;
Bump MAXBSIZE to 0x4000 because 16KB could be used by default
on newfs(8) in these days and we'll get "buf mem pool index 5" panic
in sys/kern/vfs_bio.c.
 1.8 11-Dec-2005  christos branches: 1.8.24; 1.8.26; 1.8.30; 1.8.32; 1.8.34;
merge ktrace-lwp.
 1.7 23-Jan-2005  chs branches: 1.7.8;
move spl*() and IPL_* definitions from psl.h to intr.h.
 1.6 22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.5 30-Oct-2003  mycroft branches: 1.5.8;
Set MAXPHYS to 0xe000.
XXX This really is the wrong way to do this.
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.3 14-May-2001  fredette branches: 1.3.8; 1.3.18; 1.3.24;
Now always define PGSHIFT. Thanks to the ELF move, note the new
larger msgbuf size and different KERNBASE.
 1.2 10-Apr-2001  fredette branches: 1.2.2;
Define a very small UBC_NWINS to keep UBC from eating all kernel VM.
 1.1 29-Mar-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 10-Apr-2001  bouyer file param.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.3.24.4 24-Jan-2005  skrll Sync with HEAD.
 1.3.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.24.1 03-Aug-2004  skrll Sync with HEAD
 1.3.18.1 28-Jan-2004  jmc Pullup (via patch from fredette)
Identical to pullup 1453 for sun3. Clips MAXPHYS to 32k on sun2, as needed by the sc driver.
 1.3.8.2 14-May-2001  fredette Now always define PGSHIFT. Thanks to the ELF move, note the new
larger msgbuf size and different KERNBASE.
 1.3.8.1 14-May-2001  fredette file param.h was added on branch nathanw_sa on 2001-05-14 20:35:59 +0000
 1.5.8.1 29-Apr-2005  kent sync with -current
 1.7.8.1 03-Sep-2007  yamt sync with head.
 1.8.34.1 18-Mar-2007  reinoud First attempt to bring branch in sync with HEAD
 1.8.32.1 11-Jul-2007  mjf Sync with head.
 1.8.30.1 10-Apr-2007  ad Sync with head.
 1.8.26.1 24-Mar-2007  yamt sync with head.
 1.8.24.1 31-Mar-2007  bouyer Pull up following revision(s) (requested by tsutsui in ticket #527):
sys/arch/sun2/sun2/trap.c: revision 1.30
sys/arch/sun2/include/param.h: revision 1.9
sys/arch/sun2/sun2/machdep.c: revision 1.49
Pass proper args to ksyms_init().
Fix compile with options DIAGNOSTIC.
(Hmm, no one has tried it since nathanw_sa merge..)
Bump MAXBSIZE to 0x4000 because 16KB could be used by default
on newfs(8) in these days and we'll get "buf mem pool index 5" panic
in sys/kern/vfs_bio.c.
 1.9.42.1 03-Jul-2008  simonb Sync with head.
 1.9.40.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.38.2 11-Mar-2010  yamt sync with head
 1.9.38.1 04-May-2009  yamt sync with head.
 1.9.34.1 02-Jul-2008  mjf Sync with HEAD.
 1.11.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.12.6.1 17-Feb-2011  bouyer Sync with HEAD
 1.12.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.12.2.1 05-Mar-2011  rmind sync with head
 1.13.8.1 18-Feb-2012  mrg merge to -current.
 1.13.4.2 30-Oct-2012  yamt sync with head
 1.13.4.1 17-Apr-2012  yamt sync with head
 1.14.2.1 13-Aug-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #487):
sys/arch/sun3/include/param3.h: revision 1.55
sys/arch/sun3/include/param3.h: revision 1.56
sys/arch/sun2/include/param.h: revision 1.15
sys/arch/sun3/include/param.h: revision 1.61
sys/arch/sun3/include/param3x.h: revision 1.18
Poor sun3 (but not sun3x) has only 31MB KVM address space,
so reduce NKMEMPAGES_MAX_DEFAULT from 64MB to 16MB.
Fixes "panic: ubc_init: failed to map ubc_object" on
TME emulating 3/120 with >16MB RAM.
Should be pulled up to netbsd-6.
Poor sun2 has only 14MB KVA space so reduce NKMEMPAGES_MIN_DEFAULT and
NKMEMPAGES_MAX_DEFAULT values accordingly.
XXX: netbsd-6 GENERIC still gets "panic: pool_get: kmem-4096: page empty"
Also reduce UBC_NWINS from default 1024 to 512
to avoid possible KVA shortage, otherwise
"panic: ubc_init: failed to map ubc_object"
could still happen on netbsd-6 branch.
Should be pulled up to netbsd-6.
 1.15.56.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file pcb.h was added on branch nathanw_sa on 2001-04-06 13:13:05 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file pcb.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.28 14-Mar-2020  ad pmap_remove_all(): Return a boolean value to indicate the behaviour. If
true, all mappings have been removed, the pmap is totally cleared out, and
UVM can then avoid doing the work to call pmap_remove() for each map entry.
If false, either nothing has been done, or some helpful arch-specific voodoo
has taken place.
 1.27 01-Feb-2020  tsutsui Use "__nothing" macro defined in <sys/cdefs.h> for empty pmap_update().

Suggested by pgoyette@ in PR/54869.
 1.26 09-Jan-2013  he branches: 1.26.38; 1.26.44;
The pmap_prefer() function grew an additional argument with the introduction
of top-down VM; fix the prototype accordingly.
 1.25 07-Jan-2013  chs switch to __USE_TOPDOWN_VM.
 1.24 03-Jun-2011  tsutsui branches: 1.24.2; 1.24.12;
- remove simple_lock(9) and use atomic_ops(3) to account pmap reference count,
perrequest from rmind@
- while here no need to export struct pmap on sun2/sun3/sun3x

No particular problem for a week on hp300 and sun3x kernels with disabled
tcp_vtw which has been broken for a month on low memory machines.
 1.23 11-Dec-2009  tsutsui branches: 1.23.4; 1.23.6; 1.23.10;
Export pmap_procwr() declaration only #ifdef _KERNEL.
 1.22 11-Dec-2009  tsutsui Refactoring MD segment related definitions on m68k ports:
- move macro SEGSHIFT, NBSG, and SEGOFFSET from <machine/param.h>
to <machine/pmap.h> where they should belong
- don't use m68k_round_seg() and m68k_trunc_seg() in sun2 pmap sources
and instead define and use sun2_round_seg() and sun2_trunc_seg()
since they are quite pmap implementation dependent
 1.21 09-Dec-2008  pooka Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module. pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
 1.20 28-Apr-2008  martin branches: 1.20.6; 1.20.8;
Remove clause 3 and 4 from TNF licenses
 1.19 22-Jan-2008  joerg branches: 1.19.6; 1.19.8; 1.19.10;
Include sys/simplelock.h for the sake of pm_lock.
 1.18 16-Feb-2006  perry branches: 1.18.44; 1.18.50; 1.18.58;
Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
 1.17 24-Dec-2005  perry branches: 1.17.2; 1.17.4; 1.17.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.16 11-Dec-2005  christos merge ktrace-lwp.
 1.15 22-Jan-2005  chs branches: 1.15.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.14 17-Jan-2005  atatat Convert the PMAP_PREFER() macro from two arguments (offset and hint)
to four (adding size and direction).

In order for topdown uvm to be an option on ports using PMAP_PREFER,
they will need to "prefer" lower addresses if topdown is being used.
Additionally, at least one port also needs to know the size.
 1.13 22-Sep-2002  chs branches: 1.13.6; 1.13.14;
it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not. doh.
 1.12 22-Sep-2002  chs add pmap_remove_all() hook (empty on most platforms so far).
 1.11 30-Nov-2001  fredette Purge vm_offset_t.
 1.10 10-Sep-2001  chris branches: 1.10.4;
Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
 1.9 27-Jun-2001  fredette branches: 1.9.2; 1.9.4;
Added comments and fixed some macros now that I correctly
understand how to address the sun2 VME bus in the VM hardware.
 1.8 02-Jun-2001  chs replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
 1.7 26-May-2001  chs replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}.
 1.6 25-Apr-2001  thorpej Garbage-collect pmap_page_index().
 1.5 22-Apr-2001  thorpej Undo a misguided previous change to the pmap_update() API.
 1.4 22-Apr-2001  thorpej Give pmap_update() an argument (a pmap_t) so that it knows which
pmap it should be updating.
 1.3 21-Apr-2001  thorpej #define away pmap_update() in <machine/pmap.h> so that no function
call overhead is incurred as we start sprinkling pmap_update() calls
throughout the source tree (no pmaps currently defer operations, but
we are adding the infrastructure to allow them to do so).
 1.2 06-Apr-2001  fredette branches: 1.2.2;
Added a prototype for the internal function _pmap_extract_pmeg,
used by the bus_dma implementation when double-mapping pages
by hand.
Now define PMAP_OBMEM for completeness.
 1.1 29-Mar-2001  fredette Added.
 1.2.2.3 23-Apr-2001  bouyer Sync with HEAD.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 06-Apr-2001  bouyer file pmap.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.9.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.9.2.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.9.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.10.4.3 18-Oct-2002  nathanw Catch up to -current.
 1.10.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.10.4.1 10-Sep-2001  nathanw file pmap.h was added on branch nathanw_sa on 2002-01-08 00:28:09 +0000
 1.13.14.1 29-Apr-2005  kent sync with -current
 1.13.6.2 24-Jan-2005  skrll Sync with HEAD.
 1.13.6.1 17-Jan-2005  skrll Sync with HEAD.
 1.15.8.1 04-Feb-2008  yamt sync with head.
 1.17.6.1 22-Apr-2006  simonb Sync with head.
 1.17.4.1 09-Sep-2006  rpaulo sync with head
 1.17.2.1 18-Feb-2006  yamt sync with head.
 1.18.58.1 23-Jan-2008  bouyer Sync with HEAD.
 1.18.50.1 18-Feb-2008  mjf Sync with HEAD.
 1.18.44.1 23-Mar-2008  matt sync with HEAD
 1.19.10.3 11-Mar-2010  yamt sync with head
 1.19.10.2 04-May-2009  yamt sync with head.
 1.19.10.1 16-May-2008  yamt sync with head.
 1.19.8.1 18-May-2008  yamt sync with head.
 1.19.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.19.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.20.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.20.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.23.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.23.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.23.4.1 12-Jun-2011  rmind sync with head
 1.24.12.1 25-Feb-2013  tls resync with head
 1.24.2.1 23-Jan-2013  yamt sync with head
 1.26.44.1 29-Feb-2020  ad Sync with head.
 1.26.38.1 08-Apr-2020  martin Merge changes from current as of 20200406
 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 07-Aug-2002  briggs branches: 1.1.2; 1.1.4; 1.1.6; 1.1.202; 1.1.204;
Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.1.204.1 10-Jun-2019  christos Sync with HEAD
 1.1.202.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 07-Aug-2002  jdolecek file pmc.h was added on branch kqueue on 2002-09-06 08:41:59 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 07-Aug-2002  gehenna file pmc.h was added on branch gehenna-devsw on 2002-08-31 14:52:41 +0000
 1.1.2.2 13-Aug-2002  nathanw Catch up to -current.
 1.1.2.1 07-Aug-2002  nathanw file pmc.h was added on branch nathanw_sa on 2002-08-13 02:18:58 +0000
 1.2 13-Jul-2002  scw m68k syscall rototill:

- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
- Add systrace glue.
- Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
(They were all defined exactly the same anyway, other than a couple
of the MDP_* flags.)
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.4; 1.1.10; 1.1.18;
Added.
 1.1.18.1 17-Jul-2002  gehenna catch up with -current.
 1.1.10.3 01-Aug-2002  nathanw Catch up to -current.
 1.1.10.2 18-Nov-2001  scw MD Scheduler Activation bits for Sun2.

XXX: I can't even compile-test this since the Sun2 config files
XXX: are borked both on the nathanw_sa branch and in -current ...
 1.1.10.1 06-Apr-2001  scw file proc.h was added on branch nathanw_sa on 2001-11-18 19:45:49 +0000
 1.1.4.1 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file proc.h was added on branch thorpej_scsipi on 2001-04-21 17:54:52 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file profile.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.9 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.8 11-Dec-2005  christos branches: 1.8.74; 1.8.76; 1.8.78;
merge ktrace-lwp.
 1.7 03-Jun-2005  tsutsui Add const.
 1.6 22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.5 19-Mar-2004  he branches: 1.5.8;
Fix an overlooked PROM_getprop*() => prom_getprop*() rename.
 1.4 22-Mar-2002  fredette branches: 1.4.12;
Added bits to use the console code under sys/arch/sun2 and
sys/dev/sun.
 1.3 01-Oct-2001  fredette branches: 1.3.4;
Added the prom_kbdid function, to help us figure out if
the console keyboard is on the parallel interface or zs1.
 1.2 14-Jun-2001  fredette branches: 1.2.2; 1.2.4;
Moved the definition of romVectorPtr here from mon.h.
Prototype prom_sd_target.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file promlib.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +0000
 1.2.4.1 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.2.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.4.1 01-Oct-2001  nathanw file promlib.h was added on branch nathanw_sa on 2002-04-01 07:43:19 +0000
 1.4.12.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.12.4 24-Jan-2005  skrll Sync with HEAD.
 1.4.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.12.1 03-Aug-2004  skrll Sync with HEAD
 1.5.8.1 29-Apr-2005  kent sync with -current
 1.8.78.1 16-May-2008  yamt sync with head.
 1.8.76.1 18-May-2008  yamt sync with head.
 1.8.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 14-Jun-2001  fredette branches: 1.4.8;
Now simply include the real header under arch/sun68k.
 1.3 14-May-2001  fredette Rewrote a variable constraint to make gcc 2.95 happy.
 1.2 13-Apr-2001  thorpej branches: 1.2.2;
Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
 1.1 06-Apr-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 13-Apr-2001  bouyer file psl.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +0000
 1.4.8.2 14-Jun-2001  fredette Now simply include the real header under arch/sun68k.
 1.4.8.1 14-Jun-2001  fredette file psl.h was added on branch nathanw_sa on 2001-06-14 13:12:52 +0000
 1.8 12-Jan-2009  tsutsui Add parantheses to macro to suppress possible compiler warnings.
 1.7 28-Apr-2008  martin branches: 1.7.8;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5 22-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.4 30-Nov-2001  fredette branches: 1.4.16; 1.4.24;
Purge vm_offset_t.
 1.3 27-Jun-2001  fredette branches: 1.3.2; 1.3.8;
Now define kernel_context() and restore_context(), these
are used by some sun68k common code.
 1.2 08-Jun-2001  fredette Added comments and fixed some macros now that I correctly
understand how to address the sun2 VME bus in the VM hardware.
 1.1 29-Mar-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 29-Mar-2001  bouyer file pte.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +0000
 1.3.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.1 27-Jun-2001  nathanw file pte.h was added on branch nathanw_sa on 2002-01-08 00:28:09 +0000
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.24.1 29-Apr-2005  kent sync with -current
 1.4.16.1 24-Jan-2005  skrll Sync with HEAD.
 1.6.78.2 04-May-2009  yamt sync with head.
 1.6.78.1 16-May-2008  yamt sync with head.
 1.6.76.1 18-May-2008  yamt sync with head.
 1.6.74.2 17-Jan-2009  mjf Sync with HEAD.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file ptrace.h was added on branch nathanw_sa on 2001-04-06 13:13:06 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file ptrace.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file reg.h was added on branch nathanw_sa on 2001-04-06 13:13:06 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file reg.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +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:08:31 +0000
 1.1 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file setjmp.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file signal.h was added on branch nathanw_sa on 2001-04-06 13:13:06 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file signal.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +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 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file stdarg.h was added on branch nathanw_sa on 2001-04-06 13:13:06 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file stdarg.h was added on branch thorpej_scsipi on 2001-04-21 17:54:53 +0000
 1.2 11-Dec-2005  christos branches: 1.2.18;
merge ktrace-lwp.
 1.1 11-Jul-2005  christos branches: 1.1.6;
Add m68k sunos_machdep.h
 1.1.6.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.6.1 11-Jul-2005  skrll file sunos_machdep.h was added on branch ktrace-lwp on 2005-11-10 13:59:38 +0000
 1.2.18.2 21-Jun-2006  yamt sync with head.
 1.2.18.1 11-Dec-2005  yamt file sunos_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:57:05 +0000
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.10;
Added.
 1.1.10.2 06-Apr-2001  fredette Added.
 1.1.10.1 06-Apr-2001  fredette file trap.h was added on branch nathanw_sa on 2001-04-06 13:13:06 +0000
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file trap.h was added on branch thorpej_scsipi on 2001-04-21 17:54:54 +0000
 1.15 14-Jan-2024  thorpej Merge common sun68k types defns into <sun68k/types.h>.
 1.14 01-Apr-2021  simonb Define __HAVE_LEGACY_INTRCNT to indicate this port uses legacy intrcnt
interrupt accounting.
 1.13 01-Apr-2021  simonb Whitespace: #define<tab>
 1.12 08-May-2018  christos branches: 1.12.14; 1.12.16;
make as not having pmap statistics available
 1.11 17-Jan-2012  joerg branches: 1.11.46;
Introduce __HAVE_NO___THREAD for sun2 and vax to disable the TLS usage.
Require __HAVE_TLS_VARIANT_I or __HAVE_TLS_VARIANT_II as well as
__lwp_getprivate_fast / __lwp_gettcb_fast to exist for libpthread.
Define VAX as going to use TLS variant I, if it is ever implemented.
 1.10 12-Jun-2011  rmind branches: 1.10.2; 1.10.6;
Welcome to 5.99.53! Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
 1.9 20-Jan-2008  joerg branches: 1.9.32; 1.9.42;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.8 17-Oct-2007  garbled branches: 1.8.2; 1.8.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.7 14-Jul-2007  ad branches: 1.7.10;
Generic soft interrupts are mandatory.
 1.6 03-Sep-2006  gdamore branches: 1.6.12; 1.6.20;
Convert to timecounters. Since sun2 lacks a separate timer for microsecond
interpolation, we just use the default clock interrupt timer. (100Hz)
 1.5 03-Sep-2006  gdamore Oops, forgot to commit __HAVE_GENERIC_TODR. :-)
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.8;
merge ktrace-lwp.
 1.3 18-Jan-2005  chs branches: 1.3.8;
sun2 no longer abuses cf_unit.
 1.2 28-Feb-2002  simonb branches: 1.2.16; 1.2.24;
Use "#define<tab>".
 1.1 06-Apr-2001  fredette branches: 1.1.2; 1.1.4; 1.1.10;
Added.
 1.1.10.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.10.1 06-Apr-2001  nathanw file types.h was added on branch nathanw_sa on 2002-04-01 07:43:19 +0000
 1.1.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file types.h was added on branch thorpej_scsipi on 2001-04-21 17:54:54 +0000
 1.2.24.1 29-Apr-2005  kent sync with -current
 1.2.16.1 24-Jan-2005  skrll Sync with HEAD.
 1.3.8.3 21-Jan-2008  yamt sync with head
 1.3.8.2 03-Sep-2007  yamt sync with head.
 1.3.8.1 30-Dec-2006  yamt sync with head.
 1.4.8.1 14-Sep-2006  yamt sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.6.20.1 03-Oct-2007  garbled Sync with HEAD
 1.6.12.1 15-Jul-2007  ad Sync with head.
 1.7.10.2 23-Mar-2008  matt sync with HEAD
 1.7.10.1 06-Nov-2007  matt sync with HEAD
 1.8.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.8.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.42.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.32.1 18-Mar-2010  rmind Unify /dev/{mem,kmem,zero,null} implementations in MI code. Based on patch
from Joerg Sonnenberger, proposed on tech-kern@, in February 2008.

Work and depression still in progress.
 1.10.6.1 18-Feb-2012  mrg merge to -current.
 1.10.2.1 17-Apr-2012  yamt sync with head
 1.11.46.1 21-May-2018  pgoyette Sync with HEAD
 1.12.16.1 03-Apr-2021  thorpej Sync with HEAD.
 1.12.14.1 03-Apr-2021  thorpej 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 24-Apr-2001  fredette branches: 1.1.8;
Added these required headers.
 1.1.8.2 24-Apr-2001  fredette Added these required headers.
 1.1.8.1 24-Apr-2001  fredette file varargs.h was added on branch nathanw_sa on 2001-04-24 14:42:33 +0000
 1.1 13-Jan-2024  thorpej Switch the sun68k platforms over to the common m68k vector table.
 1.16 10-Aug-2020  rin Clean up _LKM --> _MODULE leftovers.

Note that _KERNEL is always defined for modules.
 1.15 07-Jan-2013  chs switch to __USE_TOPDOWN_VM.
 1.14 06-Nov-2010  uebayasi branches: 1.14.8; 1.14.18;
Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.13 06-Mar-2009  joerg branches: 1.13.2; 1.13.4;
Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.12 28-Apr-2008  martin branches: 1.12.8; 1.12.14;
Remove clause 3 and 4 from TNF licenses
 1.11 25-Oct-2007  yamt branches: 1.11.16; 1.11.18; 1.11.20;
defparam PAGER_MAP_SIZE.
 1.10 02-Apr-2003  thorpej branches: 1.10.18; 1.10.60; 1.10.78; 1.10.80; 1.10.84;
Use PAGE_SIZE rather than NBPG.
 1.9 01-Apr-2003  thorpej Make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK a compile-time constant on Sun2.
 1.8 10-Dec-2002  thorpej Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
 1.7 30-Nov-2001  fredette Purge vm_offset_t.
 1.6 15-Nov-2001  soren MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
 1.5 14-Jun-2001  fredette branches: 1.5.2; 1.5.8;
Under _LKM, now undefine KERNBASE for declaring it.
Not sure if this is correct, but the real question
is whether 68000 LKMs are even possible.
 1.4 01-May-2001  thorpej Per discussion w/ chuck and chuck, restructure the md page stuff
to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD
and __HAVE_PMAP_PHYSSEG.
 1.3 29-Apr-2001  thorpej Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for
each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this
data when pages are initialized by UVM. These macros are mandatory,
but ports may #define them to nothing if they are not needed/used.

This deprecates struct pmap_physseg. As a transitional measure,
allow a port to #define PMAP_PHYSSEG so that it can continue to
use it until its pmap is converted to use VM_MDPAGE_MEMBERS.

Use all this stuff to eliminate a lot of extra work in the Alpha
pmap module (it's smaller and faster now). Changes to other pmap
modules will follow.
 1.2 10-Apr-2001  fredette branches: 1.2.2;
Be paranoid, #undef PAGER_MAP_SIZE before defining it.
 1.1 06-Apr-2001  fredette Added.
 1.2.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.2.2.1 10-Apr-2001  bouyer file vmparam.h was added on branch thorpej_scsipi on 2001-04-21 17:54:54 +0000
 1.5.8.3 11-Dec-2002  thorpej Sync with HEAD.
 1.5.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.5.8.1 14-Jun-2001  nathanw file vmparam.h was added on branch nathanw_sa on 2002-01-08 00:28:09 +0000
 1.5.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.84.1 13-Nov-2007  bouyer Sync with HEAD
 1.10.80.1 06-Nov-2007  matt sync with HEAD
 1.10.78.1 28-Oct-2007  joerg Sync with HEAD.
 1.10.60.1 03-Dec-2007  ad Sync with HEAD.
 1.10.18.1 27-Oct-2007  yamt sync with head.
 1.11.20.2 04-May-2009  yamt sync with head.
 1.11.20.1 16-May-2008  yamt sync with head.
 1.11.18.1 18-May-2008  yamt sync with head.
 1.11.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.4.1 05-Mar-2011  rmind sync with head
 1.13.2.1 26-Apr-2010  uebayasi Remove the unfinished code to add a memory segment after uvm_page_init().
It doesn't even compile.

(In the future, we should allocate struct vm_page [] on the added memory
segment for NUMA's sake.)
 1.14.18.1 25-Feb-2013  tls resync with head
 1.14.8.1 23-Jan-2013  yamt sync with head
 1.1 27-Jun-2001  fredette branches: 1.1.8;
Just include a common header.
 1.1.8.2 27-Jun-2001  fredette Just include a common header.
 1.1.8.1 27-Jun-2001  fredette file vuid_event.h was added on branch nathanw_sa on 2001-06-27 19:19:24 +0000
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 08-May-2004  kleink branches: 1.1.2;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 03-Aug-2004  skrll Sync with HEAD
 1.1.2.1 08-May-2004  skrll file wchar_limits.h was added on branch ktrace-lwp on 2004-08-03 10:41:49 +0000
 1.5 11-Dec-2005  christos merge ktrace-lwp.
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.3 22-Mar-2002  fredette branches: 1.3.12;
Added bits to use the console code under sys/arch/sun2 and
sys/dev/sun.
 1.2 27-Jun-2001  fredette branches: 1.2.2; 1.2.8;
Now don't include zsvar.h until the end. splzs() is
now defined in machine/cpu.h. Define zs_peripheral_type.
 1.1 06-Apr-2001  fredette branches: 1.1.2;
Added.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 06-Apr-2001  bouyer file z8530var.h was added on branch thorpej_scsipi on 2001-04-21 17:54:54 +0000
 1.2.8.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.8.1 27-Jun-2001  nathanw file z8530var.h was added on branch nathanw_sa on 2002-04-01 07:43:20 +0000
 1.2.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.12.1 03-Aug-2004  skrll Sync with HEAD

RSS XML Feed