Home | History | Annotate | only in /src/sys/arch/hpcarm/include
History log of /src/sys/arch/hpcarm/include
RevisionDateAuthorComments
 1.31 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.30 17-Jun-2014  alnsn Add sljit support to arm.
 1.29 02-May-2013  matt branches: 1.29.8;
This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
 1.28 11-Jan-2013  matt Don't install fp.h anymore
 1.27 19-Jul-2011  dyoung branches: 1.27.2; 1.27.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcarm/bus.h obsolete.
 1.26 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.25 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.24 09-Feb-2007  ad branches: 1.24.20; 1.24.24; 1.24.30; 1.24.36;
Merge newlock2 to head.
 1.23 26-Jul-2006  drochner branches: 1.23.4;
don't install <machine/db_machdep.h>, this is kernel only
 1.22 11-Dec-2005  christos branches: 1.22.4; 1.22.8;
merge ktrace-lwp.
 1.21 08-May-2004  kleink branches: 1.21.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.20 17-Jan-2003  thorpej branches: 1.20.2;
Merge the nathanw_sa branch.
 1.19 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.18 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.17 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.16 26-Nov-2001  thorpej branches: 1.16.8;
Delete <machine/psl.h> from the ARM ports. It's not a header that
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
 1.15 24-Nov-2001  thorpej Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.14 24-Nov-2001  thorpej No need to install bootconfig.h
 1.13 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.12 23-Nov-2001  thorpej Don't need a <machine/profileio.h> on these platforms.
 1.11 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.10 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.9 03-Sep-2001  matt branches: 1.9.6;
Add a merged <pcb.h> for arm26/arm32.
 1.8 15-Apr-2001  kleink branches: 1.8.2;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.7 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.6 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
Tidy Makefiles up a little.
 1.5 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.4 06-Apr-2001  toshii There is no /usr/include/hpcarm/disklabel_acorn.h.
 1.3 24-Feb-2001  ichiro branches: 1.3.2; 1.3.4;
add profile.h,profileio.h
 1.2 24-Feb-2001  ichiro i forgot writing some include files in Makefile
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 24-Feb-2001  bouyer file Makefile was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.3.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.8.2.4 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.8.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.8.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.9.6.6 11-Dec-2002  thorpej Sync with HEAD.
 1.9.6.5 18-Oct-2002  nathanw Catch up to -current.
 1.9.6.4 13-Aug-2002  nathanw Catch up to -current.
 1.9.6.3 08-Jan-2002  nathanw Catch up to -current.
 1.9.6.2 14-Nov-2001  thorpej ARM-specific mcontext support. From Klaus Klein <kleink@netbsd.org>.
 1.9.6.1 03-Sep-2001  thorpej file Makefile was added on branch nathanw_sa on 2001-11-14 20:53:12 +0000
 1.16.8.1 31-Aug-2002  gehenna catch up with -current.
 1.20.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.20.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.20.2.1 03-Aug-2004  skrll Sync with HEAD
 1.21.12.3 21-Jan-2008  yamt sync with head
 1.21.12.2 26-Feb-2007  yamt sync with head.
 1.21.12.1 30-Dec-2006  yamt sync with head.
 1.22.8.1 11-Aug-2006  yamt sync with head
 1.22.4.1 09-Sep-2006  rpaulo sync with head
 1.23.4.1 01-Feb-2007  ad Header file cleanup.
 1.24.36.1 20-Jan-2008  bouyer Sync with HEAD
 1.24.30.1 18-Feb-2008  mjf Sync with HEAD.
 1.24.24.1 23-Mar-2008  matt sync with HEAD
 1.24.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.27.12.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.27.12.2 23-Jun-2013  tls resync from head
 1.27.12.1 25-Feb-2013  tls resync with head
 1.27.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.27.2.1 23-Jan-2013  yamt sync with head
 1.29.8.1 10-Aug-2014  tls Rebase.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ansi.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file aout_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 04-Mar-2006  peter branches: 1.5.68; 1.5.70; 1.5.72;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6;
merge ktrace-lwp.
 1.3 11-May-2004  he branches: 1.3.12;
Provide multiple include protection. Fixes build problem in kdump.
 1.2 19-Sep-2002  manu branches: 1.2.2; 1.2.4; 1.2.10;
More definitions to get apmd building (but it is not functionnal yet)
 1.1 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.2.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.10.1 03-Aug-2004  skrll Sync with HEAD
 1.2.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.4.1 19-Sep-2002  nathanw file apmvar.h was added on branch nathanw_sa on 2002-10-18 02:37:02 +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 19-Sep-2002  jdolecek file apmvar.h was added on branch kqueue on 2002-10-10 18:32:52 +0000
 1.3.12.1 21-Jun-2006  yamt sync with head.
 1.4.6.1 22-Apr-2006  simonb Sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.5.72.1 16-May-2008  yamt sync with head.
 1.5.70.1 18-May-2008  yamt sync with head.
 1.5.68.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file asm.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2 26-Sep-2020  skrll G/C arm/atomic.h
 1.1 19-Oct-2002  bsh branches: 1.1.2; 1.1.72;
make atomic_{set,clear}_bit() inline for arm32 ports, and
add <machine/atomic.h> for them.
 1.1.72.1 19-Apr-2007  thorpej Convert to the new atomic ops API.
 1.1.2.2 11-Nov-2002  nathanw Catch up to -current
 1.1.2.1 19-Oct-2002  nathanw file atomic.h was added on branch nathanw_sa on 2002-11-11 21:58:39 +0000
 1.8 26-Oct-2006  bjh21 boot_file is not used by generic NetBSD/arm code, and its type varies by
MACHINE. Thus, move it out of <arm/bootconfig.h> and put it into
<machine/bootconfig.h> on those MACHINEs (cats, hpcarm, and shark) where
it's used outside the file in which it's defined.
 1.7 24-Oct-2006  bjh21 Use <arm/bootconfig.h>.
 1.6 11-Dec-2005  christos branches: 1.6.20; 1.6.22;
merge ktrace-lwp.
 1.5 23-Oct-2005  peter - Remove __P.
- Remove var names in function declaration.
 1.4 02-Jun-2005  uwe branches: 1.4.2; 1.4.4;
Catch up with constification.
 1.3 13-Jul-2002  toshii branches: 1.3.6;
Recognize hpcboot's "b=xx" option, which specifies the root device to use.
 1.2 10-Apr-2002  thorpej branches: 1.2.2;
Eliminate all #ifdef HPCARM, and delete the option.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.2 01-Aug-2002  nathanw Catch up to -current.
 1.1.10.1 17-Apr-2002  nathanw Catch up to -current.
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bootconfig.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2.2.1 16-Jul-2002  gehenna catch up with -current.
 1.3.6.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.4.1 26-Oct-2005  yamt sync with head
 1.4.2.2 30-Dec-2006  yamt sync with head.
 1.4.2.1 21-Jun-2006  yamt sync with head.
 1.6.22.1 10-Dec-2006  yamt sync with head.
 1.6.20.1 18-Nov-2006  ad Sync with head.
 1.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bootinfo.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bswap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.4 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcarm/bus.h obsolete.
 1.3 18-Jun-2001  bjh21 branches: 1.3.8;
Move <arm/arm32/bus.h> to <arm/bus.h>, since it looks like it's going to be
necessary on arm26 as well.
 1.2 23-Feb-2001  reinoud branches: 1.2.2; 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file bus.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.8.2 18-Jun-2001  bjh21 Move <arm/arm32/bus.h> to <arm/bus.h>, since it looks like it's going to be
necessary on arm26 as well.
 1.3.8.1 18-Jun-2001  bjh21 file bus.h was added on branch nathanw_sa on 2001-06-18 21:37:35 +0000
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcarm/bus.h obsolete.
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark hpcarm/bus.h obsolete.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file cdefs.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.9 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.8 09-Sep-2001  toshii branches: 1.8.4; 1.8.12;
Readd sacom to cdevsw.
 1.7 04-Sep-2001  wiz branches: 1.7.2;
Fix typos (CONS instead of CONF, and specifc instead of specific).
 1.6 03-Sep-2001  matt Add a merged <pcb.h> for arm26/arm32.
 1.5 26-Mar-2001  lukem branches: 1.5.2;
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately

- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well

- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)

- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev

- ensure that the comments are accurate WRT the behaviour of a given entry
 1.4 21-Mar-2001  lukem now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
 1.3 04-Mar-2001  bjh21 branches: 1.3.2; 1.3.4;
Remove redundant cdev_decl(cpu).
 1.2 03-Mar-2001  bjh21 Remove support for /dev/cpu*. This code has never done anything useful anyway.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 04-Mar-2001  bouyer file conf.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.3.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.5.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.5.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.7.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.8.12.1 19-May-2002  gehenna Remove port-dependent conf.h.
 1.8.4.2 17-Sep-2002  nathanw Catch up to -current.
 1.8.4.1 09-Sep-2001  nathanw file conf.h was added on branch nathanw_sa on 2002-09-17 21:14:45 +0000
 1.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file config_hook.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpu.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.3 24-Nov-2001  thorpej Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpufunc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.3 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpus.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.4 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.3 20-Mar-2001  toshii branches: 1.3.8; 1.3.174;
hpcarm kernel is ELF.
 1.2 23-Feb-2001  reinoud branches: 1.2.2; 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file db_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.174.1 03-Dec-2017  jdolecek update from HEAD
 1.3.8.2 20-Mar-2001  toshii hpcarm kernel is ELF.
 1.3.8.1 20-Mar-2001  toshii file db_machdep.h was added on branch nathanw_sa on 2001-03-20 18:01:50 +0000
 1.10 07-May-2013  matt Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.9 30-Aug-2011  bouyer branches: 1.9.2; 1.9.12;
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.8 17-Jul-2010  tsutsui Bump MAXPARTITIONS from 8 to 16 using __HAVE_OLD_DISKLABEL compat method
as i386 and hpcmips. PR port-hpcarm/18256
 1.7 23-Nov-2009  pooka branches: 1.7.2; 1.7.4;
If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.
This allows use of subr_disk_mbr on all archs. Default to it for
the rump disk component. No functional change for regular kernels.
(The other option would've been to include dkbad in disklabels
everywhere, but arguably this approach has less possible side-effects,
especially given that wedges and related magic will take over the
world any second now).
 1.6 11-Dec-2005  christos branches: 1.6.78;
merge ktrace-lwp.
 1.5 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.4 08-Oct-2003  lukem Overhaul MBR handling (part 1):

<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.

As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).

amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.

* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.

* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.

* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.

* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.

installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)

mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
 1.3 10-May-2003  thorpej branches: 1.3.2;
Remove redundant bounds_check_with_label() prototype.
 1.2 14-Mar-2001  toshii branches: 1.2.8;
Use hpc/hpc/disksubr.c.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file disklabel.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.8.2 14-Mar-2001  toshii Use hpc/hpc/disksubr.c.
 1.2.8.1 14-Mar-2001  toshii file disklabel.h was added on branch nathanw_sa on 2001-03-14 14:47:42 +0000
 1.3.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.1 03-Aug-2004  skrll Sync with HEAD
 1.6.78.2 11-Aug-2010  yamt sync with head.
 1.6.78.1 11-Mar-2010  yamt sync with head
 1.7.4.1 05-Mar-2011  rmind sync with head
 1.7.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.9.12.1 23-Jun-2013  tls resync from head
 1.9.2.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.2 14-Mar-2001  toshii branches: 1.2.8;
Use hpc/hpc/disksubr.c.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file disklabel_acorn.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.8.2 14-Mar-2001  toshii Use hpc/hpc/disksubr.c.
 1.2.8.1 14-Mar-2001  toshii file disklabel_acorn.h was added on branch nathanw_sa on 2001-03-14 14:47:43 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file elf_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file endian.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file endian_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file float.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 11-Jan-2013  matt Remove FPA specific header.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.166; 1.1.176;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.176.1 25-Feb-2013  tls resync with head
 1.1.166.1 23-Jan-2013  yamt sync with head
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file fp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file frame.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ieee.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ieeefp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer constant macros.
 1.1.12.2 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
 1.1.12.1 14-Apr-2001  kleink file int_const.h was added on branch nathanw_sa on 2001-04-14 22:38:38 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 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:53:35 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.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.12.1 15-Apr-2001  kleink file int_fmtio.h was added on branch nathanw_sa on 2001-04-15 17:13:11 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 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:53:35 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.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.12.1 15-Apr-2001  kleink file int_limits.h was added on branch nathanw_sa on 2001-04-15 15:29:07 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 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:53:35 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
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.12.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.12.1 14-Apr-2001  kleink file int_mwgwtypes.h was added on branch nathanw_sa on 2001-04-14 12:19:54 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 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:53:35 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file int_types.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.22 05-Jun-2021  christos there is no SPL_SOFT
 1.21 27-Jul-2020  skrll branches: 1.21.6; 1.21.10;
Don't remove the _LKM #ifdefs, but do s/_LKM/_MODULE/
 1.20 23-Jul-2020  skrll unidef -U_LKM
 1.19 04-Feb-2014  matt _setsoftintr is long dead. reap any leftovers from arm.
 1.18 28-Jul-2012  matt branches: 1.18.2; 1.18.4;
Remove IPL_SAFEPRI
 1.17 27-Jul-2012  matt Remove safepri and use IPL_SAFEPRI instead. This may be defined in a MD
header file (if not, a value of 0 is assmued).
 1.16 10-Jun-2012  skrll Remove unused __NEWINTR defines
 1.15 13-Nov-2010  uebayasi branches: 1.15.8;
sys/device.h is not suitable for such low-level definitions.
 1.14 13-Jun-2010  tsutsui Apply fixes for PR port-arm/43339:
Set proper IPL_SOFTfoo values even in !FAST_SOFTINTS case.
Some assertions in MI code expect they have unique values,
per comments from rmind@.

Also cleanup various "interrupt hierarchy" code since IPL_NONE and
IPL_SOFTfoo should not be set by any hardware interrupt establish functions.

Ok'ed by mrg@, tested on shark and hpcarm.
 1.13 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.12 27-Apr-2008  matt branches: 1.12.20; 1.12.22;
Merge kernel changes in matt-armv6 to HEAD.
 1.11 03-Dec-2007  ad branches: 1.11.14; 1.11.16; 1.11.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.10 17-Oct-2007  garbled branches: 1.10.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.9 01-Jul-2007  toshii branches: 1.9.6; 1.9.8; 1.9.10;
Quick and dirty fix for hpcarm build failure, using hpcarm specific
softintr code for now.
 1.8 21-Dec-2006  yamt branches: 1.8.6; 1.8.8; 1.8.14;
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.7 16-Jun-2003  thorpej branches: 1.7.18; 1.7.48; 1.7.50;
Rename IPL_IMP -> IPL_VM.
 1.6 26-Nov-2001  thorpej branches: 1.6.4;
Use <arm/arm32/psl.h> rather than <machine/psl.h>.
 1.5 20-Jun-2001  toshii branches: 1.5.2; 1.5.8;
Add IPL_SOFT* interrupt levels.
Fix type for softintr handlers.
 1.4 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.3 15-May-2001  toshii Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.2 30-Apr-2001  toshii Pull in <machine/psl.h> for spl* definitions.
(same as arm32/include/intr.h rev 1.5)
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file intr.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.5.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.5.8.1 20-Jun-2001  nathanw file intr.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.5.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.7.50.1 23-Oct-2006  yamt add IPL_STATCLOCK, IPL_SCHED, IPL_LOCK.
 1.7.48.1 12-Jan-2007  ad Sync with head.
 1.7.18.3 07-Dec-2007  yamt sync with head
 1.7.18.2 03-Sep-2007  yamt sync with head.
 1.7.18.1 30-Dec-2006  yamt sync with head.
 1.8.14.1 03-Oct-2007  garbled Sync with HEAD
 1.8.8.1 11-Jul-2007  mjf Sync with head.
 1.8.6.2 03-Dec-2007  ad Sync with HEAD.
 1.8.6.1 15-Jul-2007  ad Sync with head.
 1.9.10.3 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.9.10.2 09-Jan-2008  matt sync with HEAD
 1.9.10.1 06-Nov-2007  matt sync with HEAD
 1.9.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.9.6.2 26-Dec-2007  rjs Sync with HEAD.
 1.9.6.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.10.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.11.18.2 11-Aug-2010  yamt sync with head.
 1.11.18.1 16-May-2008  yamt sync with head.
 1.11.16.1 18-May-2008  yamt sync with head.
 1.11.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.22.3 05-Mar-2011  rmind sync with head
 1.12.22.2 03-Jul-2010  rmind sync with head
 1.12.22.1 30-May-2010  rmind sync with head
 1.12.20.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.12.20.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.15.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.15.8.1 30-Oct-2012  yamt sync with head
 1.18.4.1 18-May-2014  rmind sync with head
 1.18.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.10.1 06-Jun-2021  cjep sync with head
 1.21.6.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.3 11-Dec-2005  christos branches: 1.3.46;
merge ktrace-lwp.
 1.2 23-Oct-2005  peter Fix a typo.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.26; 1.1.42; 1.1.44;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.44.1 26-Oct-2005  yamt sync with head
 1.1.42.1 21-Jun-2006  yamt sync with head.
 1.1.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file io.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.3.46.1 07-Oct-2007  rjs Remove old files.
 1.2 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.1 24-Nov-2001  thorpej branches: 1.1.2; 1.1.4; 1.1.36; 1.1.94; 1.1.98; 1.1.104; 1.1.112;
Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.1.112.1 20-Jan-2008  bouyer Sync with HEAD
 1.1.104.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.98.1 23-Mar-2008  matt sync with HEAD
 1.1.94.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.36.1 21-Jan-2008  yamt sync with head
 1.1.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.1 24-Nov-2001  thorpej file ipkdb.h was added on branch kqueue on 2002-01-10 19:43:40 +0000
 1.1.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.1 24-Nov-2001  nathanw file ipkdb.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.9 13-Jun-2008  rafal Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
 1.8 27-Apr-2008  matt branches: 1.8.2; 1.8.4;
Merge kernel changes in matt-armv6 to HEAD.
 1.7 11-Dec-2005  christos branches: 1.7.50; 1.7.74; 1.7.76; 1.7.78;
merge ktrace-lwp.
 1.6 23-Oct-2005  peter - Remove __P.
- Remove var names in function declaration.
 1.5 12-Apr-2002  thorpej branches: 1.5.10; 1.5.26; 1.5.28;
Centralize ARM CPU configuration information by adding a new header
file, <arm/cpuconf.h>, which pulls in "opt_cputypes.h" and then defines
the following:
* CPU_NTYPES -- now many CPU types are configured into the kernel. What
you really want to know is "== 1" or "> 1".
* Defines ARM_ARCH_2, ARM_ARCH_3, ARM_ARCH_4, ARM_ARCH_5, depending
on which ARM architecture versions are configured (based on CPU_*
options). Also defines ARM_NARCH to determins how many architecture
versions are configured.
* Defines ARM_MMU_MEMC, ARM_MMU_GENERIC, ARM_MMU_XSCALE depending on
which classes of ARM MMUs are configured into the kernel, and ARM_NMMUS
to determine how many MMU classes are configured.

Remove the needless inclusion of "opt_cputypes.h" in several places.
Convert remaining users to <arm/cpuconf.h>.
 1.4 20-Dec-2001  thorpej * Share a common vector page between arm26 and arm32.
* Use a common set of exception handlers for all arm32 platforms.
* New FIQ framework based on discussions with Ben Harris, shared
between arm26 and arm32.
 1.3 30-May-2001  mrg branches: 1.3.2; 1.3.8;
use _KERNEL_OPT
 1.2 15-May-2001  toshii Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file irqhandler.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.8.3 17-Apr-2002  nathanw Catch up to -current.
 1.3.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.1 30-May-2001  nathanw file irqhandler.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.3.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.28.1 26-Oct-2005  yamt sync with head
 1.5.26.1 21-Jun-2006  yamt sync with head.
 1.5.10.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.78.2 04-May-2009  yamt sync with head.
 1.7.78.1 16-May-2008  yamt sync with head.
 1.7.76.2 17-Jun-2008  yamt sync with head.
 1.7.76.1 18-May-2008  yamt sync with head.
 1.7.74.2 29-Jun-2008  mjf Sync with HEAD.
 1.7.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.50.1 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.8.4.1 18-Jun-2008  simonb Sync with head.
 1.8.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file katelib.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.4 06-Sep-2020  riastradh Fix some more uvm header fallout. Add include guards while here.
 1.3 15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.2 11-Jun-2015  matt branches: 1.2.18; 1.2.22;
Move declaration of avail_start, avail_end to <machine/kloader.h>
 1.1 31-Mar-2012  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.20;
Add support kloader(4) for PXA2X0.
 1.1.20.1 22-Sep-2015  skrll Sync with HEAD
 1.1.6.1 03-Dec-2017  jdolecek update from HEAD
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 31-Mar-2012  yamt file kloader.h was added on branch yamt-pagecache on 2012-04-17 00:06:24 +0000
 1.1.2.2 05-Apr-2012  mrg sync to latest -current.
 1.1.2.1 31-Mar-2012  mrg file kloader.h was added on branch jmcneill-usbmp on 2012-04-05 21:33:15 +0000
 1.2.22.1 18-Dec-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #570):

sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3
sys/dev/raidframe/rf_compat50.h: revision 1.6
sys/arch/emips/emips/bus_space.c: revision 1.3
sys/compat/net/if.h: revision 1.5
sys/arch/emips/stand/common/bootinfo.c: revision 1.2
sys/compat/common/sysv_msg_50.c: revision 1.5
sys/compat/common/kern_time_30.c: revision 1.8
sys/arch/emips/stand/common/bootinfo.h: revision 1.2
sys/arch/ia64/include/bus.h: revision 1.4
sys/arch/ia64/ia64/bus_space.c: revision 1.2
sys/compat/common/sysv_shm_50.c: revision 1.5
sys/dev/ic/adw.h: revision 1.15
sys/compat/common/uipc_syscalls_50.c: revision 1.10
sys/arch/emips/ebus/flash_ebus.c: revision 1.22
sys/dev/ic/adv.h: revision 1.15
sys/dev/ic/adwmcode.c: revision 1.18
sys/dev/ic/advlib.c: revision 1.29
sys/arch/hpcarm/include/kloader.h: revision 1.3
sys/dev/usb/uberry.c: revision 1.16
sys/compat/common/sysv_sem_50.c: revision 1.5
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43
sys/dev/ic/advlib.h: revision 1.21
sys/dev/ic/adv.c: revision 1.50
sys/compat/netinet6/in6_var.h: revision 1.5
sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2
sys/arch/emips/include/loadfile_machdep.h: revision 1.3
sys/arch/emips/stand/common/prom_iface.c: revision 1.7
sys/dev/ic/adw.c: revision 1.56
sys/dev/ic/adwmcode.h: revision 1.12
sys/dev/ic/advmcode.c: revision 1.10
sys/arch/emips/ebus/ace_ebus.c: revision 1.22
sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5
sys/dev/raidframe/rf_compat50.c: revision 1.13
sys/arch/x68k/dev/intiovar.h: revision 1.15
sys/dev/usb/uipad.c: revision 1.8
sys/arch/zaurus/include/kloader.h: revision 1.3
sys/arch/emips/stand/common/bootxx.c: revision 1.2
sys/dev/ic/adwlib.h: revision 1.23
sys/dev/ic/adwlib.c: revision 1.44
sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3
sys/arch/amigappc/include/intr.h: revision 1.27
sys/arch/x68k/dev/mfp.c: revision 1.27
sys/arch/arm/at91/at91dbgu.c: revision 1.17
sys/dev/ic/advmcode.h: revision 1.7
sys/compat/ultrix/ultrix_exec.h: revision 1.7
sys/compat/common/vfs_syscalls_50.c: revision 1.24
sys/arch/mips/cavium/octeon_dma.c: revision 1.3
sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2

Remove clause 3 and 4 from TNF licenses.
Ok'ed by martin@ in PR/54760.

Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
 1.2.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file limits.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file lock.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +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:40 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file math.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.2 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 14-Nov-2001  thorpej branches: 1.1.2;
file mcontext.h was initially added on branch nathanw_sa.
 1.1.2.1 14-Nov-2001  thorpej ARM-specific mcontext support. From Klaus Klein <kleink@netbsd.org>.
 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:37 +0000
 1.1 04-Aug-2014  martin branches: 1.1.2; 1.1.6;
Add missing netbsd32_machdep.h file
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 04-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:03 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 04-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:53:58 +0000
 1.5 12-Feb-2002  thorpej * For platforms which are already ELF, remove the definition of
MACHINE_ARCH since <arm/param.h> already sets it correctly to "arm".
* For platforms which are not yet ELF, defined MACHINE_ARCH to "arm32"
if __ELF__ is not defined by the C preprocessor.
* In <arm/param.h>, clarify the rules about when MACHINE and
MACHINE_ARCH are defined, and to what. Also, for ELF platforms,
int the non-_KERNEL case, force both MACHINE and MACHINE_ARCH to "arm",
rather than allowing platform-specifc code to define either.
 1.4 04-Mar-2001  matt branches: 1.4.4; 1.4.6; 1.4.10;
Only define MACHINE & MACHINE_ARCH in port-dependent param.h.
Everything else (since it's common) is from <arm/arm32/param.h>
 1.3 26-Feb-2001  reinoud Putting param.h back into hpcarm's include
 1.2 23-Feb-2001  reinoud Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.4.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.4.6.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.4.4.1 04-Mar-2001  bouyer file param.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.3 03-Sep-2001  matt branches: 1.3.6;
Add a merged <pcb.h> for arm26/arm32.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.6.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pcb.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.3.6.2 03-Sep-2001  matt Add a merged <pcb.h> for arm26/arm32.
 1.3.6.1 03-Sep-2001  matt file pcb.h was added on branch nathanw_sa on 2001-09-03 19:20:30 +0000
 1.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid_generated.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid_mask.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.3 23-Nov-2001  thorpej Extra whitespace removal.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 08-Jan-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pmap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +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 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:35:28 +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 13:44:43 +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:13 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file proc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.1 24-Feb-2001  ichiro branches: 1.1.4;
add profile.h,profileio.h
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 24-Feb-2001  bouyer file profile.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.2 23-Nov-2001  thorpej Don't need a <machine/profileio.h> on these platforms.
 1.1 24-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
add profile.h,profileio.h
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 24-Feb-2001  bouyer file profileio.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.3 26-Nov-2001  thorpej Delete <machine/psl.h> from the ARM ports. It's not a header that
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file psl.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.3 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pte.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file ptrace.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file reg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file rtc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +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:37 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file setjmp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file signal.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +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:03 +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:58 +0000
 1.2 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.1 17-Jun-2014  alnsn Add sljit support to arm.
 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 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file stdarg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.3 14-Jul-2001  matt branches: 1.3.6;
Make <sysarch.h> valid for all arm platforms. Adjust/remove port-specific
includes as required.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file sysarch.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.3.6.2 14-Jul-2001  matt Make <sysarch.h> valid for all arm platforms. Adjust/remove port-specific
includes as required.
 1.3.6.1 14-Jul-2001  matt file sysarch.h was added on branch nathanw_sa on 2001-07-14 00:23:12 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file trap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.16 26-Jan-2017  christos provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.
 1.15 07-May-2013  matt branches: 1.15.12; 1.15.16; 1.15.20;
Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.14 17-Jul-2010  tsutsui branches: 1.14.8; 1.14.18;
Bump MAXPARTITIONS from 8 to 16 using __HAVE_OLD_DISKLABEL compat method
as i386 and hpcmips. PR port-hpcarm/18256
 1.13 20-Jan-2008  joerg branches: 1.13.10; 1.13.30; 1.13.32;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.12 17-Oct-2007  garbled branches: 1.12.2; 1.12.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.11 14-Jul-2007  ad branches: 1.11.6; 1.11.10;
Generic soft interrupts are mandatory.
 1.10 23-Oct-2006  peter branches: 1.10.8; 1.10.16;
Enable MI todr(9) and timecounter on hpcarm.
 1.9 03-Sep-2006  bjh21 branches: 1.9.2; 1.9.4;
Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
 1.8 11-Dec-2005  christos branches: 1.8.4; 1.8.8;
merge ktrace-lwp.
 1.7 06-Aug-2003  bsh branches: 1.7.16;
add __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS to machine/types.h for
following ports:

acorn26, amiga, hpcarm, sparc, sparc64

This was proposed by Martin Husemann at teck-kern@ in May to properly
test whether softintr can be established for all IPL, or only for
IPL_SOFT*. OKed by acorn26, hpcarm and sparc port masters.
 1.6 28-Feb-2002  simonb branches: 1.6.16;
Use "#define<tab>".
 1.5 22-Nov-2001  thorpej Add 26-bit and 32-bit types.h files, which indicate the programming
model in use for a given platform (__PROG26 vs __PROG32), then pulls
in <arm/types.h>. Change each ARM port to pull in <arm/arm26/types.h>
or <arm/arm32/types.h> as appropriate. Change all references to PROG26
and PROG32 to __PROG26 and __PROG32. Eliminate the opt_progmode.h
header file.
 1.4 20-Jun-2001  toshii branches: 1.4.2; 1.4.8;
Define __HAVE_GENERIC_SOFT_INTERRUPTS, and nuke traditional softserial and
softclock.
 1.3 23-Feb-2001  bjh21 branches: 1.3.4;
__HAVE_NWSCONS and __HAVE_DEVICE_REGISTER are MACHINE-dependent.
 1.2 23-Feb-2001  reinoud Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 23-Feb-2001  bouyer file types.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.4.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.8.1 20-Jun-2001  nathanw file types.h was added on branch nathanw_sa on 2002-01-08 00:24:55 +0000
 1.4.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.16.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.3 21-Jan-2008  yamt sync with head
 1.7.16.2 03-Sep-2007  yamt sync with head.
 1.7.16.1 30-Dec-2006  yamt sync with head.
 1.8.8.1 14-Sep-2006  yamt sync with head.
 1.8.4.1 09-Sep-2006  rpaulo sync with head
 1.9.4.1 10-Dec-2006  yamt sync with head.
 1.9.2.1 18-Nov-2006  ad Sync with head.
 1.10.16.1 03-Oct-2007  garbled Sync with HEAD
 1.10.8.1 15-Jul-2007  ad Sync with head.
 1.11.10.2 23-Mar-2008  matt sync with HEAD
 1.11.10.1 06-Nov-2007  matt sync with HEAD
 1.11.6.1 28-Feb-2008  rjs Sync with HEAD.
 1.12.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.12.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.13.32.1 05-Mar-2011  rmind sync with head
 1.13.30.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.13.10.1 11-Aug-2010  yamt sync with head.
 1.14.18.2 03-Dec-2017  jdolecek update from HEAD
 1.14.18.1 23-Jun-2013  tls resync from head
 1.14.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.15.20.1 21-Apr-2017  bouyer Sync with HEAD
 1.15.16.1 20-Mar-2017  pgoyette Sync with HEAD
 1.15.12.1 05-Feb-2017  skrll Sync with HEAD
 1.3 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file undefined.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +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 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file varargs.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.33 27-Mar-2019  christos - expose vmparams to userland on arm, like other archs do.
- remove unneeded includes
 1.32 02-Nov-2017  skrll branches: 1.32.4;
ISA exists on more that just shark. Fix a comment about this.
 1.31 23-Feb-2015  joerg Use default PAGER_MAP_DEFAULT_SIZE for ARM and PowerPC, exception
acorn26. This bumps the KVA reservation from 4MB to 16MB and avoids
long hangs on my Cubietruck under IO. acorn26 is kept as it does have a
ridiculous low 32MB KVA limit.
 1.30 17-Feb-2012  christos branches: 1.30.2; 1.30.16;
expose more for kmemuser
 1.29 06-Nov-2010  uebayasi branches: 1.29.8; 1.29.12;
Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.28 25-Oct-2007  yamt branches: 1.28.40; 1.28.42;
defparam PAGER_MAP_SIZE.
 1.27 11-Dec-2005  christos branches: 1.27.30; 1.27.46; 1.27.48; 1.27.50; 1.27.54;
merge ktrace-lwp.
 1.26 07-Aug-2003  agc branches: 1.26.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.25 22-May-2003  thorpej branches: 1.25.2;
Move KERNEL_VM_SIZE into the C files where its used.
 1.24 22-May-2003  thorpej Use virtual_avail and virtual_end to compute the size of the available
kernel VM space for VM_MAX_KERNEL_BUF, and move the definition into
generic ARM code.
 1.23 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.22 03-May-2003  thorpej Don't expose KERNEL_TEXT_BASE outside of board-specific code. This gives
individual board start-up code more flexibility about where the kernel
starts in the kernel address space.
 1.21 03-May-2003  thorpej Remove old pmap support for platforms which have fully switched over.
 1.20 28-Apr-2003  thorpej Don't define APTE_BASE if ARM32_PMAP_NEW is defined; the new pmap
doesn't use it.
 1.19 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.18 14-Sep-2002  thorpej Back out previous; it breaks binary compatibility between platforms
in the same MACHINE_ARCH.
 1.17 14-Sep-2002  mycroft Move some #defines out of _KERNEL.
 1.16 23-Mar-2002  thorpej * Change all uses of KERNEL_SPACE_START to KERNEL_BASE.
* Delete now unused KERNEL_SPACE_START.
 1.15 23-Mar-2002  thorpej * Fix the definition of KERNEL_BASE.
* Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms of
KERNEL_BASE.
 1.14 23-Mar-2002  thorpej Slignt cleanup.
 1.13 23-Mar-2002  thorpej * Rename PROCESS_PAGE_TBLS_BASE -> PTE_BASE
* Rename ALT_PAGE_TBLS_BASE -> APTE_BASE
* Garbage-collect PAGE_TABLE_SPACE_START
 1.12 03-Mar-2002  chris Implement pmap_growkernel for arm32 based ports.
Note that this has been compiled on some systems, cats, IQ80310, IPAQ, netwinder and shark (note that shark's build is currently broken due to other reasons), but only actually run on cats.
Shark doesn't make use of the functionality as I believe there has to be a correlation between OFW and the kernel tables so that calls into OFW work.
 1.11 23-Feb-2002  toshii Make KERNEL_VM_SIZE a little larger so that ubc_init doesn't fail from
ENOMEM.
 1.10 23-Nov-2001  thorpej Move even more constants into the shared 32-bit vmparam.h header.
Cleanup elsewhere will have to be done before we can sanitize this
header any further.
 1.9 23-Nov-2001  thorpej - Move more contents of various <machine/vmparam.h> files into
<arm/arm32/vmparam.h> (mostly the stuff that's tied to the pmap
implementation).
- Since the MMU definitions in pte.h are specific to ARM processors
that support 32-bit mode, move pte.h to <arm/arm32/pte.h>.
- Make the Netwinder startup file build again (use PT_B|PT_C, rather
than PT_CACHEABLE, since the latter expands to a variable these days).
 1.8 15-Nov-2001  soren MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
 1.7 11-Nov-2001  thorpej branches: 1.7.2;
Pull in common 32-bit ARM VM parameters.
 1.6 11-Aug-2001  chris branches: 1.6.4;
Checking a whole host of pmap changes:
Improved locking (not that we actually use it on a uniprocessor, but one day :)
Removed unneeded splvm's
tweaked pmap_clean_page code to only flush the cache if the page is mapped in the current pmap (based on diff from richard E)
Adopted pv entry allocation mechanism from i386.
Laid framework for returning ptp's when we've finished with them rather than holding onto them till the process exits.
ptp's are now allocated with a uvm object for the pmap, means that we can walk a list to free them off in pmap_release, until they get freed off by pmap_remove.

Also implemented a page zeroing function when the processor is idling. Note that hpcarm may wish to disable this.

I believe this code to be stable, if anyone has any problems please shout up.
 1.5 02-Aug-2001  toshii Change the start address to load the kernel. We have 768k more free
memory now.
 1.4 15-May-2001  toshii branches: 1.4.2;
Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.3 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.2 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.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file vmparam.h was added on branch thorpej_scsipi on 2001-03-12 13:28:31 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.6 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.4.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.2 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.4.2.1 03-Aug-2001  lukem update to -current
 1.6.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.7.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.7.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.7.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.7.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.7.2.1 11-Nov-2001  nathanw file vmparam.h was added on branch nathanw_sa on 2002-01-08 00:24:55 +0000
 1.25.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.25.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.25.2.1 03-Aug-2004  skrll Sync with HEAD
 1.26.16.1 27-Oct-2007  yamt sync with head.
 1.27.54.1 13-Nov-2007  bouyer Sync with HEAD
 1.27.50.1 06-Nov-2007  matt sync with HEAD
 1.27.48.1 28-Oct-2007  joerg Sync with HEAD.
 1.27.46.1 01-Nov-2007  rjs Sync with HEAD.
 1.27.30.1 03-Dec-2007  ad Sync with HEAD.
 1.28.42.1 05-Mar-2011  rmind sync with head
 1.28.40.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.29.12.1 18-Feb-2012  mrg merge to -current.
 1.29.8.1 17-Apr-2012  yamt sync with head
 1.30.16.1 06-Apr-2015  skrll Sync with HEAD
 1.30.2.1 03-Dec-2017  jdolecek update from HEAD
 1.32.4.1 10-Jun-2019  christos Sync with HEAD
 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:35:04 +0000

RSS XML Feed