Home | History | Annotate | only in /src/sys/arch/ia64
History log of /src/sys/arch/ia64
RevisionDateAuthorComments
 1.3 18-Dec-2016  christos Descend into compile
 1.2 20-Jun-2006  skrll branches: 1.2.2; 1.2.8; 1.2.110; 1.2.130; 1.2.134;
Enable installation of ia64 includes - mostly from cherry.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.3 26-Jun-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.134.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.2.130.1 05-Feb-2017  skrll Sync with HEAD
 1.2.110.1 03-Dec-2017  jdolecek update from HEAD
 1.2.8.2 09-Sep-2006  rpaulo sync with head
 1.2.8.1 20-Jun-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.2.2.2 21-Jun-2006  yamt sync with head.
 1.2.2.1 20-Jun-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.10 03-Feb-2020  scole Update architectures ski is known to run on
 1.9 17-Nov-2019  scole branches: 1.9.2;
Mention ski works on amd64 and probably other archs
 1.8 11-Nov-2019  scole ski should run on i386 and amd64 with patches from http://gnats.netbsd.org/54690
 1.7 22-May-2019  scole LOCKDEBUG kernels should work now.
 1.6 05-May-2019  scole a little bit of clean up, sort ski items, and some notes about libunwind
 1.5 03-Apr-2019  scole add note about pmap.c compilation warnings
 1.4 30-Jan-2019  scole RUMP building on ia64 now
 1.3 29-Jan-2019  scole add more items
 1.2 14-Nov-2018  scole add more items
 1.1 14-Apr-2018  scole branches: 1.1.2; 1.1.4;
List some obvious remaining items to-do
 1.1.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1.4.1 10-Jun-2019  christos Sync with HEAD
 1.1.2.3 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1.2.2 16-Apr-2018  pgoyette Sync with HEAD, resolve some conflicts
 1.1.2.1 14-Apr-2018  pgoyette file TODO was added on branch pgoyette-compat on 2018-04-16 01:59:55 +0000
 1.9.2.1 29-Feb-2020  ad Sync with head.
 1.10 22-Dec-2019  thorpej Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existing
ACPI software layering model, are wrappers around acpi_md_intr_mask() and
acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and
intr_unmask().

XXX ARM and IA64 implementations of acpi_md_intr_mask() and
acpi_md_intr_unmask() are just stubs for now.
 1.9 17-Nov-2018  scole change "InterruptNumber" to "irq" to fix compilation
 1.8 16-Nov-2018  jmcneill Add MD functions for establishing and disestablishing interrupt handlers.
 1.7 20-Mar-2018  bouyer branches: 1.7.2;
Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".

Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.

Proposed on tech-kern@ on Dec 29.
 1.6 23-Sep-2012  chs branches: 1.6.36;
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
 1.5 12-Jun-2011  jruoho branches: 1.5.2; 1.5.8; 1.5.12;
Follow IA-64 with the x86-specific ACPI MD functions and move these where
they belong to. Remove an unused function. Minor KNF. No functional change.
 1.4 12-Jun-2011  jruoho Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).
 1.3 13-Jan-2011  jruoho branches: 1.3.6;
Move the function that counts the CPUs from acpicpu(4) to the MD layer.
 1.2 24-Jul-2010  jruoho Move ACPI_FLUSH_CPU_CACHE() (a.k.a. WBINVD on x86) to MD headers where it
belongs to. Let IA-64 define its own function/instruction instead of
requiring a dummy wbinvd() to satisfy the definition in a MI header.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.4; 1.1.6;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.6.1 05-Mar-2011  rmind sync with head
 1.1.4.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.3 11-Aug-2010  yamt sync with head.
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file acpi_machdep.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:20 +0000
 1.3.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.8.1 22-Nov-2012  riz Pull up following revision(s) (requested by chs in ticket #683):
sys/arch/ia64/include/acpi_machdep.h: revision 1.6
sys/arch/x86/include/acpi_machdep.h: revision 1.11
sys/dev/acpi/acpi.c: revision 1.255
sys/arch/x86/acpi/acpi_machdep.c: revision 1.4
sys/arch/x86/x86/mpacpi.c: revision 1.95
sys/arch/x86/x86/mpacpi.c: revision 1.96
sys/arch/ia64/acpi/acpi_machdep.c: revision 1.6
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
as a workaround for PR 47016, call ioapic_reenable() at the end of
ACPI interrupt routing to fix the settings for the SCI interrupt.
the problem is that after my recent changes, the SCI handler is
installed before the MADT info is parsed, so we don't know what
polarity it should have. the real fix for this will be to rearrange
the ACPI initialization so that everything is done in a more sensible
order, but that will take some more time.
 1.5.2.1 30-Oct-2012  yamt sync with head
 1.6.36.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.6.36.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.7.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7.2.1 10-Jun-2019  christos Sync with HEAD
 1.6 13-Jul-2023  mrg explicitly include no longer implicitly included sys/mutex.h.
 1.5 12-Dec-2022  gutteridge branches: 1.5.2;
madt.c & mainbus.c: fix build with acpica 20221020

AcpiTbChecksum() was renamed AcpiUtChecksum() during code consolidation.
 1.4 29-Apr-2019  scole Rename ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE with acpica update, see
src/sys/external/bsd/acpica/dist/changes.txt
 1.3 07-Apr-2013  kiyohara branches: 1.3.36;
Include sapicvar.h for sapic_create().
 1.2 09-Nov-2009  skrll branches: 1.2.12; 1.2.22;
Make this compile.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.2.3 11-Mar-2010  yamt sync with head
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file madt.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:20 +0000
 1.2.22.1 23-Jun-2013  tls resync from head
 1.2.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.36.1 10-Jun-2019  christos Sync with HEAD
 1.5.2.1 09-Aug-2023  martin Pull up following revision(s) (requested by maya in ticket #316):

sys/arch/m68k/include/mutex.h: revision 1.13
sys/arch/arm/include/cpu.h: revision 1.125
sys/arch/sun68k/include/intr.h: revision 1.21
sys/arch/arm/include/mutex.h: revision 1.28
sys/sys/rwlock.h: revision 1.18
sys/arch/powerpc/include/mutex.h: revision 1.7
sys/arch/arm/include/mutex.h: revision 1.29
sys/arch/powerpc/include/mutex.h: revision 1.8
sys/uvm/uvm_param.h: revision 1.42
sys/sys/ksem.h: revision 1.16
sys/arch/x86/include/mutex.h: revision 1.10
sys/sys/proc.h: revision 1.372
sys/sys/ksem.h: revision 1.17
sys/arch/ia64/include/mutex.h: revision 1.8
sys/arch/evbarm/include/intr.h: revision 1.29
sys/sys/lua.h: revision 1.9
sys/arch/next68k/include/intr.h: revision 1.23
sys/arch/ia64/include/mutex.h: revision 1.9
sys/arch/hp300/include/intr.h: revision 1.35
sys/arch/hp300/include/intr.h: revision 1.36
sys/arch/sparc/include/cpu.h: revision 1.111
sys/arch/hppa/include/mutex.h: revision 1.16
sys/arch/vax/include/intr.h: revision 1.31
sys/arch/hppa/include/mutex.h: revision 1.17
sys/arch/news68k/include/intr.h: revision 1.28
sys/arch/hppa/include/mutex.h: revision 1.18
sys/arch/hppa/include/intr.h: revision 1.3
sys/arch/hppa/include/mutex.h: revision 1.19
sys/arch/hppa/include/intr.h: revision 1.4
sys/sys/sched.h: revision 1.92
sys/opencrypto/cryptodev.h: revision 1.51
sys/arch/vax/include/mutex.h: revision 1.20
sys/arch/sparc64/include/mutex.h: revision 1.10
sys/arch/ia64/include/sapicvar.h: revision 1.2
sys/arch/riscv/include/mutex.h: revision 1.5
sys/arch/amiga/dev/grfabs_cc.c: revision 1.39
sys/external/bsd/drm2/include/linux/idr.h: revision 1.11
sys/arch/riscv/include/mutex.h: revision 1.6
sys/ddb/files.ddb: revision 1.16
sys/arch/mac68k/include/intr.h: revision 1.32
share/man/man4/ddb.4: revision 1.203
sys/ddb/db_command.c: revision 1.183
sys/arch/mips/include/mutex.h: revision 1.10
sys/ddb/db_command.c: revision 1.184
sys/arch/x68k/include/intr.h: revision 1.22
sys/arch/sparc/include/psl.h: revision 1.51
sys/arch/or1k/include/mutex.h: revision 1.4
sys/arch/mips/include/mutex.h: revision 1.11
sys/arch/arm/xscale/pxa2x0_intr.h: revision 1.16
sys/arch/sparc64/include/cpu.h: revision 1.134
sys/arch/sparc/include/psl.h: revision 1.52
sys/arch/or1k/include/mutex.h: revision 1.5
sys/arch/mvme68k/include/intr.h: revision 1.22
sys/arch/luna68k/include/intr.h: revision 1.16
external/cddl/osnet/sys/sys/kcondvar.h: revision 1.6
sys/arch/sparc/include/mutex.h: revision 1.12
sys/arch/sparc/include/mutex.h: revision 1.13
sys/arch/usermode/include/mutex.h: revision 1.5
sys/arch/usermode/include/mutex.h: revision 1.6
sys/kern/kern_core.c: revision 1.38
usr.sbin/crash/Makefile: revision 1.49
sys/arch/amiga/include/intr.h: revision 1.23
sys/arch/alpha/include/mutex.h: revision 1.12
sys/arch/alpha/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.16
sys/ddb/ddb.h: revision 1.6
sys/arch/sparc64/include/mutex.h: revision 1.8
sys/arch/sh3/include/mutex.h: revision 1.12
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.17
sys/ddb/db_syncobj.c: revision 1.1
sys/arch/vax/include/mutex.h: revision 1.18
sys/arch/sparc64/include/psl.h: revision 1.63
sys/arch/sparc64/include/mutex.h: revision 1.9
sys/arch/sh3/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/obio.c: revision 1.13
sys/arch/atari/include/intr.h: revision 1.23
sys/ddb/db_syncobj.c: revision 1.2
sys/arch/vax/include/mutex.h: revision 1.19
sys/arch/evbarm/g42xxeb/obio.c: revision 1.14
sys/arch/evbarm/g42xxeb/obio.c: revision 1.15
sys/arch/cesfic/include/intr.h: revision 1.14
sys/ddb/db_syncobj.h: revision 1.1
sys/arch/x86/include/cpu.h: revision 1.134
sys/arch/evbarm/g42xxeb/obio.c: revision 1.16
sys/arch/cesfic/include/intr.h: revision 1.15
sys/arch/arm/xscale/pxa2x0_intr.c: revision 1.26
sys/sys/cpu_data.h: revision 1.54
sys/arch/m68k/include/mutex.h: revision 1.12
sys/arch/ia64/acpi/madt.c: revision 1.6

sys/rwlock.h: Make this more self-contained for bool.

machine/mutex.h: Sprinkle includes so this can be used by crash(8).

ddb: New `show all tstiles' command.
Shows who's waiting for which locks and what the owner is up to.

Include psl.h for ipl_cookie_t if __MUTEX_PRIVATE

sys: Rip <sys/resourcevar.h> out of <uvm/uvm_param.h>.

And thus out of <sys/param.h>, which is exceedingly overused and
fragile and delenda est.

Should fix (some) issues with the recent inclusion of machine/lock.h
in various machine/mutex.h files.

arm/mutex.h: Need machine/intr.h, machine/lock.h.

For ipl_cookie_t and __cpu_simple_lock_t.
evbarm/intr.h: Define ipl_cookie_t before including ARM_INTR_IMPL.

Otherwise arm/mutex.h doesn't work, due to a cyclic dependency which
should really be fixed.
opencrypto/cryptodev.h: Fix includes.
- Move sys/condvar.h under #ifdef _KERNEL.
- Add some other necessary includes and forward declarations.
- Sort.

hp300/intr.h: Fix missing includes.
linux/idr.h: Need <sys/mutex.h> for kmutex_t.
amiga/intr.h: Don't define spl*() functions if !_KERNEL.

This is used by crash(8) now, and what's important is ipl_cookie_t.
cesfic/intr.h: Expose ipl_cookie_t to userland for crash(8).
cesfic/intr.h: Expose ipl_cookie_t to userland only with _KMEMUSER.

Probably not necessary but let's be a little more cautious about
this.

atari/intr.h: Expose ipl_cookie_t with _KMEMUSER for crash(8).

arm/cpu.h: Need sys/param.h for COHERENCY_UNIT.

Nix machine/param.h -- not meant to be used directly, pulled in by
sys/param.h.

Move the definition of ipl_cookie_t out of the kernel-only sections,
some _KMEMUSER applications need it.

ddb: Cast pointer to uintptr_t first before db_expr_t.

hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

luna68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

mvme68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

news68k/intr.h: Fix includes. Put some definitions under _KERNEL.

next68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

sys/ksem.h: Hack around fstat(8) abuse of _KERNEL.

sun68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

vax/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

x68k/intr.h: Put functions under _KERNEL so crash(8) can use this.

Make ipl_cookie_t visible for _KMEMUSER userland applications.

fix editor mishap in previous

Explicitly include <sys/mutex.h> for kmutex_t.

Replace kmutex_t * (which may be undefined here) with struct kmutex *,
suggested by Taylor.

hp300/intr.h: Put most of this under #ifdef _KERNEL.
Only ipl_cookie_t really needs to be exposed now, for crash(8).

mac68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).
Make inclusion of sys/intr.h explicit for spl*.

fix hppa and vax builds.

machine/lock.h isn't necessary for __cpu_simple_lock_t, it's in
sys/types.h. avoids cpu_data.h vs sched.h include order issues.

move the hppa ipl_t typedef with the moved usage of it.
machine/mutex.h: Sprinkle sys/types.h, omit machine/lock.h.

Turns out machine/lock.h is not needed for __cpu_simple_lock_t, which
always comes from sys/types.h. And, really, sys/types.h (or at least
sys/stdint.h) is needed for uintN_t and uintptr_t.

ddb: Cast pointer to uintptr_t, then to db_expr_t.
Avoids warnings about conversion between pointer and integer of
different size on some architectures.

re-fix hppa builds.

this file uses __cpu_simple_lock(), not just the underlying type,
so it does need machine/lock.h.

Break cycle by using `struct kmutex *' instead of `kmutex_t *'.
sys/sched.h included sys/mutex.h
which includes sys/intr.h
which includes machine/intr.h
which on cats includes arm/footbridge/footbridge_intr.h
which includes arm/cpu.h
which includes sys/cpu_data.h
which includes sys/sched.h

But there was never any real need for sys/mutex.h in sys/sched.h,
because it only uses pointers to the opaque struct kmutex. Cycle
broken by using `struct kmutex *' instead of pulling in sys/mutex.h
for the definition of kmutex_t.

Side effect: This revealed that sys/cpu_data.h needed sys/intr.h
(which was pulled in accidentally by sys/mutex.h via sys/sched.h) for
SOFTINT_COUNT. Also revealed some other machine/cpu.h header files
were missing includes of sys/mutex.h for kmutex_t.

ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.

explicitly include no longer implicitly included sys/mutex.h.

arm/xscale: Use sys/bitops.h fls32 - 1 instead of 31 - __builtin_clz.
Sidesteps namespace collision with `#define bits ...' in net/zlib.c.

complete the previous - there were two calls to find_first_bit() to fix.

arm/xscale: Missed a spot with previous find_first_bit commit.

evbarm/g42xxeb: Fix off-by-one in previous.

The original find_first_bit(x) was 31 - __builtin_clz((uint32_t)x),
which is equivalent to fls32(x) - 1, not to fls32(x).

Note that fls32 is 1-based and returns 0 for x=0.
 1.1 01-Sep-2006  mrg branches: 1.1.2; 1.1.6; 1.1.12;
copy this from i386/compile/Makefile. it makes kernel builds work
properly with objdirs.
 1.1.12.2 30-Dec-2006  yamt sync with head.
 1.1.12.1 01-Sep-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-12-30 20:46:20 +0000
 1.1.6.2 09-Sep-2006  rpaulo sync with head
 1.1.6.1 01-Sep-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.1.2.2 03-Sep-2006  yamt sync with head.
 1.1.2.1 01-Sep-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-09-03 15:23:05 +0000
 1.15 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.14 09-Feb-2023  abs Adjust _all_ cinclude of *.local files

- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
"Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
 1.13 09-Feb-2023  abs Ensure GENERIC.local is always at the end of GENERIC

Where a GENERIC config had an existing inclusion of GENERIC.local,
ensure it is always at the end of the file, with a consistent
comment:

# Pull in optional local configuration
cinclude "arch/landisk/conf/GENERIC.local"

This allows GENERIC.local to correctly override all options

(This pass does not affect any GENERIC which did not already have
an include of GENERIC.local)
 1.12 29-Sep-2022  riastradh swwdog(4): Add to GENERIC kernels.

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

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

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

PR kern/29702
 1.11 07-Aug-2022  simonb UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
 1.10 23-Jul-2022  simonb Add some file system options present in GENERIC kernels.
 1.9 07-Apr-2017  scole Add more options, mainly want "options INET" and "pseudo-device loop" so context bug occurs
 1.8 21-Aug-2015  uebayasi branches: 1.8.2; 1.8.4;
Add `pseudo-device ksyms' where `options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
 1.7 07-Aug-2015  maxv Remove the KMEMSTATS option. It no longer exists.
 1.6 24-Mar-2014  szptvlfn branches: 1.6.6;
fix manual section numbering of sysctl.
thanks wiz@
 1.5 28-Apr-2012  rmind branches: 1.5.2; 1.5.4;
Remove MALLOC_DEBUG and MALLOCLOG, which is dead code after malloc(9) move
to kmem(9). Note: kmem(9) has debugging facilities under DEBUG/DIAGNOSTIC.
However, expensive kmguard and debug_freecheck have to be enabled manually.
 1.4 17-May-2010  kiyohara branches: 1.4.8; 1.4.12;
Indent.
s/mainbus0/mainbus?/.
 1.3 29-Apr-2010  chs enable TMPFS in all GENERICs that have MFS enabled.
 1.2 15-Apr-2010  kiyohara Add acpitz.
Enable MFS.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.4; 1.1.6;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.6.1 30-May-2010  rmind sync with head
 1.1.4.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.4.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.3 11-Aug-2010  yamt sync with head.
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file GENERIC was added on branch yamt-nfs-mp on 2009-08-19 18:46:20 +0000
 1.4.12.1 29-Apr-2012  mrg sync to latest -current.
 1.4.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.4.8.1 23-May-2012  yamt sync with head.
 1.5.4.1 18-May-2014  rmind sync with head
 1.5.2.2 03-Dec-2017  jdolecek update from HEAD
 1.5.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.6.2 28-Aug-2017  skrll Sync with HEAD
 1.6.6.1 22-Sep-2015  skrll Sync with HEAD
 1.8.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.8.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.22 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.21 09-Feb-2023  abs Adjust _all_ cinclude of *.local files

- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
"Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
 1.20 07-Aug-2022  simonb UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
 1.19 23-Jul-2022  simonb Add some file system options present in GENERIC kernels.
 1.18 27-Sep-2020  roy vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.17 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.16 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.15 14-Aug-2018  maxv branches: 1.15.6;
Replace references to etherip by l2tp. Etherip was already not enabled
anyway.
 1.14 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.13 07-Apr-2017  scole branches: 1.13.12; 1.13.14;
Add more options, mainly want "options INET" and "pseudo-device loop" so context bug occurs
 1.12 07-Aug-2015  maxv branches: 1.12.2; 1.12.4;
Remove the KMEMSTATS option. It no longer exists.
 1.11 24-Mar-2014  szptvlfn branches: 1.11.6;
fix manual section numbering of sysctl.
thanks wiz@
 1.10 27-Apr-2013  christos branches: 1.10.4;
more bogus number removal
 1.9 28-Dec-2012  martin Add acpi0 at mainbus - it is not realy optional.
 1.8 28-Apr-2012  rmind branches: 1.8.2;
Remove MALLOC_DEBUG and MALLOCLOG, which is dead code after malloc(9) move
to kmem(9). Note: kmem(9) has debugging facilities under DEBUG/DIAGNOSTIC.
However, expensive kmguard and debug_freecheck have to be enabled manually.
 1.7 23-Nov-2010  hannken branches: 1.7.8; 1.7.12;
Remove unused count from pseudo-device md.
 1.6 20-Jul-2009  kiyohara branches: 1.6.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 06-Feb-2009  jym Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

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

Reviewed by abs@ in private mail.
 1.4 29-Feb-2008  jmmv branches: 1.4.4; 1.4.12;
Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.3 10-Sep-2006  cherry branches: 1.3.30; 1.3.50; 1.3.54;
Root Memory disk nits
 1.2 02-Jul-2006  cherry branches: 1.2.4; 1.2.6;
trying MFS for ski FS
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.4 17-Mar-2008  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file GENERIC.SKI was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file GENERIC.SKI was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file GENERIC.SKI was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file GENERIC.SKI was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.4 14-Sep-2006  yamt sync with head.
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file GENERIC.SKI was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 02-Jul-2006  rpaulo file GENERIC.SKI was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.2.4.1 18-Nov-2006  ad Sync with head.
 1.3.54.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.50.1 24-Mar-2008  keiichi sync with head.
 1.3.30.1 23-Mar-2008  matt sync with HEAD
 1.4.12.1 03-Mar-2009  skrll Sync with HEAD.
 1.4.4.2 19-Aug-2009  yamt sync with head.
 1.4.4.1 04-May-2009  yamt sync with head.
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.7.12.1 29-Apr-2012  mrg sync to latest -current.
 1.7.8.3 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.8.2 23-Jan-2013  yamt sync with head
 1.7.8.1 23-May-2012  yamt sync with head.
 1.8.2.4 03-Dec-2017  jdolecek update from HEAD
 1.8.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.2.2 23-Jun-2013  tls resync from head
 1.8.2.1 25-Feb-2013  tls resync with head
 1.10.4.1 18-May-2014  rmind sync with head
 1.11.6.2 28-Aug-2017  skrll Sync with HEAD
 1.11.6.1 22-Sep-2015  skrll Sync with HEAD
 1.12.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.12.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.13.14.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.13.14.1 10-Jun-2019  christos Sync with HEAD
 1.13.12.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.15.6.1 25-Jan-2020  ad Sync with head.
 1.2 29-Feb-2008  jmmv Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file GENERIC.local was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.1.14.3 17-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file GENERIC.local was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file GENERIC.local was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file GENERIC.local was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file GENERIC.local was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file GENERIC.local was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.8 09-May-2019  scole Revert -O0 for pmap, avoid RAW dependency compilation warning
 1.7 04-May-2019  scole Disable optimization for pmap.c to prevent RAW assembler dependency
warnings.

If port ever becomes more stable, should revert this and figure out
exactly why only pmap seems to have this issue in the kernel.
 1.6 22-Sep-2018  rin - Determine KERN_AS automatically depending on whether OPT_MODULAR is
set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos
 1.5 24-Aug-2015  uebayasi branches: 1.5.16; 1.5.18;
Define ${LINKSCRIPT} in one place.
 1.4 18-Aug-2015  uebayasi ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT}
 1.3 15-Nov-2014  uebayasi branches: 1.3.2;
Use LINKSCRIPT.
 1.2 17-Jan-2008  lukem branches: 1.2.54;
Remove unnecessary references to config_time.h.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.56; 1.1.64;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.1.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.1.14.3 21-Jan-2008  yamt sync with head
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile.ia64 was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile.ia64 was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.54.1 03-Dec-2017  jdolecek update from HEAD
 1.3.2.1 22-Sep-2015  skrll Sync with HEAD
 1.5.18.1 10-Jun-2019  christos Sync with HEAD
 1.5.16.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.11 21-Oct-2020  christos make process_machdep.c included always since it provides register i/o used by
sys_process_getlwpstatus.c which is always included.
 1.10 20-Oct-2020  christos harmonize process_machdep.c inclusion.
 1.9 20-Nov-2019  pgoyette Move all non-emulation-specific coredump code into the coredump module,
and remove all #ifdef COREDUMP conditional compilation. Now, the
coredump module is completely separated from the emulation modules, and
they can all be independently loaded and unloaded.

Welcome to 9.99.18 !
 1.8 05-Aug-2016  scole branches: 1.8.16;
PR port-ia64/51261

Add pcibus so kernels will compile. Required for acpi now
 1.7 01-Oct-2011  chs branches: 1.7.12; 1.7.30; 1.7.34;
fix build errors with gcc 4.5.
 1.6 12-Jun-2011  rmind 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.5 20-Jul-2009  kiyohara branches: 1.5.4; 1.5.10;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 17-Oct-2007  garbled branches: 1.4.20;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 21-Jul-2007  tsutsui branches: 1.3.6;
- kern_kern_microtime.c is gone, so replace references of it
with new kern/kern_cctr.c in TODO comments
- also replace struct cc_microtime_state member in struct cpu_info
with struct cctr_state defined in <sys/cctr.h>, which is unused yet
in this port
 1.2 02-Jul-2006  cherry branches: 1.2.6; 1.2.16; 1.2.24; 1.2.28; 1.2.30;
trying MFS for ski FS
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.4 03-Sep-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file files.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file files.ia64 was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file files.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file files.ia64 was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file files.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.30.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.28.1 07-Aug-2007  matt Sync with HEAD.
 1.2.24.1 03-Oct-2007  garbled Sync with HEAD
 1.2.16.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 02-Jul-2006  rpaulo file files.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.4.20.1 19-Aug-2009  yamt sync with head.
 1.5.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.4.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.7.34.1 06-Aug-2016  pgoyette Sync with HEAD
 1.7.30.1 05-Oct-2016  skrll Sync with HEAD
 1.7.12.1 03-Dec-2017  jdolecek update from HEAD
 1.8.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.6 24-Aug-2015  uebayasi Don't mention stab and DWARF sections, because these (poorly mtaintained)
lists only help to make them harder to read.

If those sections are found in inputs, they simply appear in outputs as
orphaned sections, sorted by section types and attributes.
 1.5 22-Aug-2015  uebayasi .rel/.rela should not be generated in kernels.
 1.4 22-Aug-2015  uebayasi .init/.fini/.ctors/.dtors should be irrelevant to kernels.
 1.3 21-Aug-2015  uebayasi I bet setting search-directory for ld.so is useless in any kernel.
 1.2 20-Aug-2015  uebayasi Indent with 2 spaces.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.142.1 22-Sep-2015  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file kern.ldscript was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file kern.ldscript was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file kern.ldscript was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file kern.ldscript was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file kern.ldscript was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file kern.ldscript was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.20 29-Jun-2021  nia Remove uscanner(4) driver

This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
 1.19 04-Apr-2020  jdolecek branches: 1.19.8;
mark nsmb major obsolete
 1.18 29-Jan-2020  maya remove urio(4), a driver for the Rio500 MP3 player.

At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
 1.17 28-Jan-2019  dholland branches: 1.17.6;
Systematize handling of removed drivers.

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

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

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)
 1.16 27-Jan-2019  dholland Restore satlink's majors entries commented out and marked obsolete.
Otherwise they might accidentally get reused later and cause a
security problem.
 1.15 27-Jan-2019  maxv Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.
 1.14 19-Dec-2018  maxv Remove compat_svr4 and compat_svr4_32, as discussed on tech-kern@ recently,
but also as discussed several times in the past.
 1.13 23-Sep-2018  maxv Remove ISDN from the kernel. It has remained unmaintained for a long time,
is of poor quality, and is now an obstacle to MP-ification. It was removed
ten years ago from FreeBSD for the same reason.

This retires a big user of the mbuf API, and will ease maintenance of the
kernel.
 1.12 08-Dec-2016  nat branches: 1.12.14; 1.12.16;
Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.11 23-Apr-2015  pgoyette branches: 1.11.2;
Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components.
 1.10 09-Mar-2014  blymn branches: 1.10.6;
Removed MD veriexec entry this was changed to MI a long time ago.
Thanks to Maxime Villard for spotting this.
 1.9 25-Feb-2012  shattered branches: 1.9.2; 1.9.4;
Quoting sys/dev/vme/files.vme commit log: "vmegeneric never saw the
light of the source tree. After 7 years, I guess nobody missed it."

OK by wiz@
 1.8 30-Jun-2011  wiz branches: 1.8.2; 1.8.6;
dependant -> dependent
 1.7 06-Mar-2010  plunky use a MI major number for uhso(4) driver
(requested by mrg)
 1.6 06-Mar-2010  plunky add major device for usho(4) driver
 1.5 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.4 31-Dec-2007  ad branches: 1.4.6; 1.4.10; 1.4.16; 1.4.18;
Remove systrace. Ok core@.
 1.3 09-Jan-2007  cube branches: 1.3.24; 1.3.30; 1.3.36;
Remove traces of scd(4), which apparently never actually had a driver in
the tree.
 1.2 24-Nov-2006  wiz s/independant/independent/, from Zafer.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20; 1.1.22;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.22.1 10-Dec-2006  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file majors.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.1.18.1 12-Jan-2007  ad Sync with head.
 1.1.14.5 21-Jan-2008  yamt sync with head
 1.1.14.4 26-Feb-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file majors.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file majors.ia64 was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file majors.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file majors.ia64 was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file majors.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.36.1 02-Jan-2008  bouyer Sync with HEAD
 1.3.30.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.24.1 09-Jan-2008  matt sync with HEAD
 1.4.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.4.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.4.10.1 04-May-2009  yamt sync with head.
 1.4.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.8.6.1 04-Mar-2012  mrg sync to latest -current.
 1.8.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.8.2.1 17-Apr-2012  yamt sync with head
 1.9.4.1 18-May-2014  rmind sync with head
 1.9.2.2 03-Dec-2017  jdolecek update from HEAD
 1.9.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.6.2 05-Feb-2017  skrll Sync with HEAD
 1.10.6.1 06-Jun-2015  skrll Sync with HEAD
 1.11.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.12.16.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12.16.1 10-Jun-2019  christos Sync with HEAD
 1.12.14.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.12.14.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.17.6.1 29-Feb-2020  ad Sync with head.
 1.19.8.1 01-Aug-2021  thorpej Sync with HEAD.
 1.2 02-Jul-2006  cherry branches: 1.2.6;
trying MFS for ski FS
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file std.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file std.ia64 was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file std.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file std.ia64 was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file std.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 02-Jul-2006  rpaulo file std.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:22 +0000
 1.3 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.2 03-Apr-2014  martin branches: 1.2.6; 1.2.10;
Fix snprintf fallout
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.122; 1.1.128;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.128.1 18-May-2014  rmind sync with head
 1.1.122.2 03-Dec-2017  jdolecek update from HEAD
 1.1.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.112.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.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disasm.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disasm.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disasm.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disasm.h was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disasm.h was added on branch elad-kernelauth on 2006-04-19 02:32:50 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disasm.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.10.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.6.1 05-Oct-2016  skrll Sync with HEAD
 1.2 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142; 1.1.146;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.146.1 06-Aug-2016  pgoyette Sync with HEAD
 1.1.142.1 05-Oct-2016  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disasm_decode.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disasm_decode.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disasm_decode.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disasm_decode.c was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disasm_decode.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disasm_decode.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.2 17-Jul-2011  joerg branches: 1.2.12; 1.2.30; 1.2.34;
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 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disasm_extract.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disasm_extract.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disasm_extract.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disasm_extract.c was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disasm_extract.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disasm_extract.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.34.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.30.1 05-Oct-2016  skrll Sync with HEAD
 1.2.12.1 03-Dec-2017  jdolecek update from HEAD
 1.5 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.4 03-Apr-2014  martin branches: 1.4.6; 1.4.10;
Fix snprintf fallout
 1.3 27-Mar-2014  christos correct/add protection against snprintf overflow.
 1.2 25-Mar-2014  christos kill sprintf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.122; 1.1.128;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.128.1 18-May-2014  rmind sync with head
 1.1.122.2 03-Dec-2017  jdolecek update from HEAD
 1.1.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.112.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.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disasm_format.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disasm_format.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disasm_format.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disasm_format.c was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disasm_format.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disasm_format.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.4.10.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.6.1 05-Oct-2016  skrll Sync with HEAD
 1.2 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142; 1.1.146;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.146.1 06-Aug-2016  pgoyette Sync with HEAD
 1.1.142.1 05-Oct-2016  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disasm_int.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disasm_int.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:44 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disasm_int.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disasm_int.h was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disasm_int.h was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disasm_int.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.6 29-Jul-2012  mlelstv Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

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

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

Make cpu_rootconf(9) describe the calling order.
 1.5 20-Jul-2009  kiyohara branches: 1.5.12; 1.5.18;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.14;
Remove clause 3 and 4 from TNF licenses
 1.2 10-Sep-2006  cherry branches: 1.2.54; 1.2.56; 1.2.58;
Root Memory disk nits
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file autoconf.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.18.1 18-Nov-2006  ad Sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file autoconf.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file autoconf.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file autoconf.c was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file autoconf.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.3 14-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file autoconf.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.58.3 19-Aug-2009  yamt sync with head.
 1.2.58.2 04-May-2009  yamt sync with head.
 1.2.58.1 16-May-2008  yamt sync with head.
 1.2.56.1 18-May-2008  yamt sync with head.
 1.2.54.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.18.1 08-Aug-2012  martin Pull up following revision(s) (requested by mlelstv in ticket #466):
sys/arch/amiga/amiga/autoconf.c: revision 1.113
sys/arch/rs6000/rs6000/autoconf.c: revision 1.4
sys/arch/emips/emips/autoconf.c: revision 1.6
sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27
sys/arch/evbmips/alchemy/autoconf.c: revision 1.18
sys/arch/sgimips/sgimips/autoconf.c: revision 1.43
sys/arch/atari/atari/autoconf.c: revision 1.63
sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17
sys/arch/mmeye/mmeye/autoconf.c: revision 1.9
distrib/sets/lists/comp/mi: revision 1.1771
sys/arch/mipsco/mipsco/autoconf.c: revision 1.25
sys/arch/iyonix/iyonix/autoconf.c: revision 1.14
sys/arch/hp300/hp300/autoconf.c: revision 1.100
sys/kern/init_main.c: revision 1.445
sys/arch/pmax/pmax/autoconf.c: revision 1.79
sys/arch/netwinder/netwinder/autoconf.c: revision 1.11
sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10
sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12
sys/arch/evbppc/ev64260/autoconf.c: revision 1.17
sys/arch/evbmips/gdium/autoconf.c: revision 1.5
sys/arch/algor/algor/autoconf.c: revision 1.21
share/man/man9/Makefile: revision 1.367
sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9
sys/arch/amigappc/amigappc/autoconf.c: revision 1.5
sys/arch/x86/x86/x86_autoconf.c: revision 1.65
sys/arch/acorn26/acorn26/autoconf.c: revision 1.9
sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13
sys/arch/vax/vax/autoconf.c: revision 1.94
sys/arch/usermode/dev/cpu.c: revision 1.72
sys/arch/evbppc/virtex/autoconf.c: revision 1.5
sys/arch/next68k/next68k/autoconf.c: revision 1.26
sys/arch/mac68k/mac68k/autoconf.c: revision 1.73
sys/arch/ia64/ia64/autoconf.c: revision 1.6
sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6
share/man/man9/cpu_rootconf.9: revision 1.7
sys/arch/landisk/landisk/autoconf.c: revision 1.6
sys/arch/evbmips/malta/autoconf.c: revision 1.16
sys/arch/sun3/sun3/autoconf.c: revision 1.76
sys/arch/evbppc/explora/autoconf.c: revision 1.13
sys/arch/sun3/sun3/autoconf.c: revision 1.77
sys/arch/evbmips/loongson/autoconf.c: revision 1.3
sys/arch/evbmips/atheros/autoconf.c: revision 1.11
sys/arch/sparc64/sparc64/autoconf.c: revision 1.188
sys/arch/acorn32/acorn32/autoconf.c: revision 1.18
sys/arch/evbarm/evbarm/autoconf.c: revision 1.13
sys/arch/cobalt/cobalt/autoconf.c: revision 1.30
sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46
sys/arch/hp700/hp700/autoconf.c: revision 1.48
sys/arch/evbmips/adm5120/autoconf.c: revision 1.5
sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25
sys/arch/alpha/alpha/autoconf.c: revision 1.52
sys/arch/sparc/sparc/autoconf.c: revision 1.244
sys/arch/evbppc/pmppc/autoconf.c: revision 1.7
sys/arch/bebox/bebox/autoconf.c: revision 1.25
sys/arch/luna68k/luna68k/autoconf.c: revision 1.13
sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20
sys/arch/evbppc/walnut/autoconf.c: revision 1.21
sys/arch/cesfic/cesfic/autoconf.c: revision 1.26
sys/arch/cats/cats/autoconf.c: revision 1.17
sys/arch/x68k/x68k/autoconf.c: revision 1.67
sys/arch/news68k/news68k/autoconf.c: revision 1.21
sys/arch/arc/arc/autoconf.c: revision 1.34
sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11
sys/sys/conf.h: revision 1.143
sys/arch/evbmips/rasoc/autoconf.c: revision 1.3
sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26
sys/arch/sun68k/sun68k/autoconf.c: revision 1.29
sys/arch/evbmips/rmixl/autoconf.c: revision 1.6
sys/arch/zaurus/zaurus/autoconf.c: revision 1.12
sys/arch/xen/x86/autoconf.c: revision 1.15
sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6
sys/arch/shark/shark/autoconf.c: revision 1.18
sys/arch/prep/prep/autoconf.c: revision 1.25
sys/arch/newsmips/newsmips/autoconf.c: revision 1.36
sys/arch/sbmips/sbmips/autoconf.c: revision 1.8
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.
No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().
Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().
Make cpu_rootconf(9) describe the calling order.
add rootconf(9) as a link to cpu_rootconf(9)
make this compile again
 1.5.12.1 30-Oct-2012  yamt sync with head
 1.2 15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.66; 1.1.70;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.70.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.1.66.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file bus_space.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:21 +0000
 1.7 29-May-2020  rin For struct timecounter, use C99 initializers.
Compile tested. No functional changes intended.
 1.6 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.4 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.14;
Remove clause 3 and 4 from TNF licenses
 1.2 10-Sep-2006  gdamore branches: 1.2.54; 1.2.56; 1.2.58;
Removal of stub clock stuff and convert to use MI routines for timecounter
and todr support. ok cherry@.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file clock.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.18.1 18-Nov-2006  ad Sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file clock.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file clock.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file clock.c was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file clock.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.3 14-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file clock.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.58.3 19-Aug-2009  yamt sync with head.
 1.2.58.2 04-May-2009  yamt sync with head.
 1.2.58.1 16-May-2008  yamt sync with head.
 1.2.56.1 18-May-2008  yamt sync with head.
 1.2.54.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.5 02-Feb-2024  andvar fix typos, mainly s/unsupport/unsupported/ in log messages.
 1.4 03-Apr-2014  martin Make GENERIC compilable
 1.3 12-Mar-2014  martin ifdef variable like their use
 1.2 18-Jun-2012  kiyohara branches: 1.2.2; 1.2.4;
Fix build failed. s/consinit()/consinit(void)/.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.14;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.14.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.1.14.1 30-Oct-2012  yamt sync with head
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file consinit.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:21 +0000
 1.2.4.1 18-May-2014  rmind sync with head
 1.2.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9 06-Oct-2023  skrll Trailing whitespace.
 1.8 08-Apr-2017  scole Convert cpu_switchto() from assembly to C code. Remove comment about
possible cpu_switchto() bug. Actual issue appears to be new processes
using lwp0 instead of own memory, which is still not fixed.

Thanks to <chs> for figuring this out.
 1.7 26-Dec-2016  scole branches: 1.7.2;
Fix some comments and add new comment explaining probable bug in cpu_switchto(). Not sure of a fix for it yet
 1.6 05-Aug-2016  scole PR port-ia64/51261

Import later version from FreeBSD
 1.5 24-Mar-2013  kiyohara branches: 1.5.12; 1.5.16;
Remove some TABs.
 1.4 15-Jan-2013  kiyohara cpu_switchto() returns argument oldlwp. Not &ci->ci_curlwp.
 1.3 27-Nov-2009  rmind branches: 1.3.12; 1.3.22;
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.2 11-Mar-2010  yamt sync with head
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file context.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file context.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file context.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file context.S was added on branch simonb-timecounters on 2006-04-22 11:37:35 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file context.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file context.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.22.3 03-Dec-2017  jdolecek update from HEAD
 1.3.22.2 23-Jun-2013  tls resync from head
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.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.3.12.1 23-Jan-2013  yamt sync with head
 1.5.16.3 26-Apr-2017  pgoyette Sync with HEAD
 1.5.16.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.5.16.1 06-Aug-2016  pgoyette Sync with HEAD
 1.5.12.3 28-Aug-2017  skrll Sync with HEAD
 1.5.12.2 05-Feb-2017  skrll Sync with HEAD
 1.5.12.1 05-Oct-2016  skrll Sync with HEAD
 1.7.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.3 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.2 22-Nov-2016  scole branches: 1.2.14;
For ski, break into debugger instead of exiting
 1.1 05-Aug-2016  scole branches: 1.1.2; 1.1.4;
PR port-ia64/51261

Add cpu_coredump() stub
 1.1.4.3 05-Dec-2016  skrll Sync with HEAD
 1.1.4.2 05-Oct-2016  skrll Sync with HEAD
 1.1.4.1 05-Aug-2016  skrll file core_machdep.c was added on branch nick-nhusb on 2016-10-05 20:55:29 +0000
 1.1.2.3 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.1.2.2 06-Aug-2016  pgoyette Sync with HEAD
 1.1.2.1 05-Aug-2016  pgoyette file core_machdep.c was added on branch pgoyette-localcount on 2016-08-06 00:19:04 +0000
 1.2.14.2 03-Dec-2017  jdolecek update from HEAD
 1.2.14.1 22-Nov-2016  jdolecek file core_machdep.c was added on branch tls-maxphys on 2017-12-03 11:36:20 +0000
 1.17 31-Aug-2025  rillig sys/arch: fix typos in comments
 1.16 01-Oct-2019  chs in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP
and remove code to handle failures that can no longer happen.
 1.15 08-Apr-2017  scole branches: 1.15.14;
Add more cpus to identify, from FreeBSD
 1.14 03-Apr-2014  martin branches: 1.14.6; 1.14.10; 1.14.14;
Add missing include
 1.13 24-Mar-2014  christos use cpu_{g,s}etmodel
 1.12 10-Mar-2014  martin Remove unused variables
 1.11 17-Feb-2013  kiyohara branches: 1.11.2;
Call snprintb() for cpu features register.
 1.10 01-Oct-2011  chs branches: 1.10.2; 1.10.12;
fix build errors with gcc 4.5.
 1.9 28-Jun-2010  kiyohara Move identifycpu() into cpu.c. Our cpu* says:
cpu0 at mainbus0: ProcessorID 0, Id 0, Eid 0
cpu0: McKinley (1000.00-MHz Itanium 2)
cpu0: Origin "GenuineIntel", Revision 7
cpu0: Features 0x1
 1.8 17-May-2010  kiyohara Attach CPU only of the pretense.
 1.7 21-Nov-2009  rmind branches: 1.7.2; 1.7.4;
Use lwp_getpcb() on hppa and ia64, clean from struct user usage.
 1.6 20-Jul-2009  kiyohara s/struct device/device_t/.
s/struct cfdata/cfdata_t/.
Remove unused <sys/bus.h>
The macro CFATTACH_DECL_NEW() was call with size 0 temporarily.
 1.5 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.3 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.2 28-Apr-2008  martin branches: 1.2.8; 1.2.14;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.5 11-Aug-2010  yamt sync with head.
 1.1.78.4 11-Mar-2010  yamt sync with head
 1.1.78.3 19-Aug-2009  yamt sync with head.
 1.1.78.2 04-May-2009  yamt sync with head.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file cpu.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file cpu.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file cpu.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file cpu.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file cpu.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file cpu.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.4.2 03-Jul-2010  rmind sync with head
 1.7.4.1 30-May-2010  rmind sync with head
 1.7.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.10.12.3 03-Dec-2017  jdolecek update from HEAD
 1.10.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.12.1 25-Feb-2013  tls resync with head
 1.10.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.11.2.1 18-May-2014  rmind sync with head
 1.14.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.14.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.14.6.1 28-Aug-2017  skrll Sync with HEAD
 1.15.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10 26-Oct-2022  riastradh ddb/db_active.h: New home for extern db_active.

This can be included unconditionally, and db_active can then be
queried unconditionally; if DDB is not in the kernel, then db_active
is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.
 1.9 23-Feb-2021  mrg introduce DDB_END_CMD and replace more than 20 copies of the same
list of NULLs and 0. idea from rillig@.

all touched ports built, several booted.
 1.8 03-Apr-2014  martin branches: 1.8.42;
Fix snprintf fallout
 1.7 09-Jun-2010  mrg branches: 1.7.8; 1.7.18; 1.7.22;
document the acorn26, i386, ia64 and vax ddb commands in both the builtin
help and in ddb.4. fixes PR#38304, PR#38305, PR#38309 and PR#38313.
 1.6 20-Jul-2009  kiyohara branches: 1.6.2; 1.6.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.4 17-Oct-2007  garbled branches: 1.4.20; 1.4.28; 1.4.34;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 22-Sep-2007  martin Add a new option DDB_VERBOSE_HELP that adds online help to ddb.
From Adam Hamsik.
Minor modifications by me, all bugs are probably mine.
 1.2 21-Feb-2007  thorpej branches: 1.2.4; 1.2.12; 1.2.20; 1.2.22;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.26;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file db_interface.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.4 27-Oct-2007  yamt sync with head.
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file db_interface.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file db_interface.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file db_interface.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file db_interface.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file db_interface.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.22.1 06-Nov-2007  matt sync with HEAD
 1.2.20.1 02-Oct-2007  joerg Sync with HEAD.
 1.2.12.1 03-Oct-2007  garbled Sync with HEAD
 1.2.4.1 09-Oct-2007  ad Sync with head.
 1.4.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.20.3 11-Aug-2010  yamt sync with head.
 1.4.20.2 19-Aug-2009  yamt sync with head.
 1.4.20.1 04-May-2009  yamt sync with head.
 1.6.4.1 03-Jul-2010  rmind sync with head
 1.6.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.7.22.1 18-May-2014  rmind sync with head
 1.7.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.8.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.8.42.1 03-Apr-2021  thorpej Sync with HEAD.
 1.6 06-Oct-2023  skrll Trailing whitespace.
 1.5 31-Jul-2016  dholland Don't check for unsigned variables being less than 0 in
patchunwindframe(). Instead, check before subtracting, which in this
case means at the call site.

It would probably be better to change the call signature so the
subtraction happens inside patchunwindframe(), but since I don't
really know exactly what this code is trying to do I'm not comfortable
changing it.

Issue 1 in PR 51297 from David Binderman.
 1.4 28-Apr-2008  martin branches: 1.4.44; 1.4.64; 1.4.68;
Remove clause 3 and 4 from TNF licenses
 1.3 28-Feb-2007  thorpej branches: 1.3.40; 1.3.42; 1.3.44;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.26;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.26.2 12-Mar-2007  rmind Sync with HEAD.
 1.1.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file db_trace.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.4 03-Sep-2007  yamt sync with head.
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file db_trace.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file db_trace.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file db_trace.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file db_trace.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file db_trace.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.44.1 16-May-2008  yamt sync with head.
 1.3.42.1 18-May-2008  yamt sync with head.
 1.3.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.68.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.64.1 05-Oct-2016  skrll Sync with HEAD
 1.4.44.1 03-Dec-2017  jdolecek update from HEAD
 1.5 20-Aug-2022  riastradh ia64/efi.h: Make st_rt/st_cfgtbl pointers, not uint64_t, per spec.
 1.4 20-Aug-2022  riastradh ia64: Make ct_data void *, not uint64_t, as in spec.
 1.3 20-Aug-2022  riastradh ia64: Use uint64_t, not void *, for EFI virtual addresses, as in spec.
 1.2 30-Aug-2006  cherry branches: 1.2.4;
#include cleanups.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file efi.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file efi.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file efi.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efi.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.3 03-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efi.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.4.2 09-Sep-2006  rpaulo sync with head
 1.2.4.1 30-Aug-2006  rpaulo file efi.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.7 06-Oct-2023  skrll Trailing whitespace.
 1.6 08-Apr-2017  scole Updates from FreeBSD, mostly compile-tested
 1.5 01-Oct-2011  chs branches: 1.5.12; 1.5.30; 1.5.34; 1.5.38;
fix build errors with gcc 4.5.
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 20-Mar-2008  kochi branches: 1.3.4;
reorder includes, fix indentation.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.50; 1.2.70; 1.2.74;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.70.1 24-Mar-2008  keiichi sync with head.
 1.2.50.1 23-Mar-2008  matt sync with HEAD
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file exception.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.3 24-Mar-2008  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file exception.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file exception.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file exception.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file exception.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file exception.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.4.1 19-Aug-2009  yamt sync with head.
 1.5.38.1 21-Apr-2017  bouyer Sync with HEAD
 1.5.34.1 26-Apr-2017  pgoyette Sync with HEAD
 1.5.30.1 28-Aug-2017  skrll Sync with HEAD
 1.5.12.1 03-Dec-2017  jdolecek update from HEAD
 1.17 06-Oct-2023  skrll Trailing whitespace.
 1.16 02-May-2019  scole Restore UC_MCONTEXT, UC_MCONTEXT, and clean up some whitespace
 1.15 02-May-2019  scole Remove some unused assembly and other variables to reduce compile warnings
 1.14 20-Nov-2018  scole add IA64_DCR_DEFAULT, more changes from FreeBSD
 1.13 10-Aug-2017  maxv branches: 1.13.2; 1.13.4;
Don't include opt_compat_freebsd.h.
 1.12 01-Aug-2017  maxv Remove references to compat_freebsd when it is not supported.
 1.11 08-Apr-2017  scole Add more PTE and IA64 mem region variables
 1.10 01-Oct-2011  chs branches: 1.10.12; 1.10.30; 1.10.34; 1.10.38;
fix build errors with gcc 4.5.
 1.9 20-Dec-2010  matt Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.8 10-Dec-2009  rmind branches: 1.8.4;
Rename L_ADDR to L_PCB and amend some comments accordingly.
 1.7 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.6 20-Sep-2008  tsutsui Remove advertising clause for UCB in various genassym.cf files,
which were derived from genassym.c in 4.4BSD-Lite2 (or 386BSD).
Closes PR misc/39573. Approved by martin@.
 1.5 04-Jun-2008  ad branches: 1.5.4;
Remove ref to uvm.page_idle_zero
 1.4 28-Apr-2008  martin branches: 1.4.2;
Remove clause 3 and 4 from TNF licenses
 1.3 20-Mar-2008  kochi branches: 1.3.2; 1.3.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2 17-Feb-2007  pavel branches: 1.2.22; 1.2.38; 1.2.42;
Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.26;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file genassym.cf was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.4 24-Mar-2008  yamt sync with head.
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file genassym.cf was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file genassym.cf was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file genassym.cf was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file genassym.cf was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file genassym.cf was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.42.4 28-Sep-2008  mjf Sync with HEAD.
 1.2.42.3 05-Jun-2008  mjf Sync with HEAD.

Also fix build.
 1.2.42.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.42.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.38.1 24-Mar-2008  keiichi sync with head.
 1.2.22.1 23-Mar-2008  matt sync with HEAD
 1.3.4.3 11-Mar-2010  yamt sync with head
 1.3.4.2 04-May-2009  yamt sync with head.
 1.3.4.1 16-May-2008  yamt sync with head.
 1.3.2.2 17-Jun-2008  yamt sync with head.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.2.2 10-Oct-2008  skrll Sync with HEAD.
 1.4.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.5.4.1 19-Oct-2008  haad Sync with HEAD.
 1.8.4.1 05-Mar-2011  rmind sync with head
 1.10.38.1 21-Apr-2017  bouyer Sync with HEAD
 1.10.34.1 26-Apr-2017  pgoyette Sync with HEAD
 1.10.30.1 28-Aug-2017  skrll Sync with HEAD
 1.10.12.1 03-Dec-2017  jdolecek update from HEAD
 1.13.4.1 10-Jun-2019  christos Sync with HEAD
 1.13.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.12 06-Oct-2023  skrll Trailing whitespace.
 1.11 21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.10 10-Nov-2019  chs branches: 1.10.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.9 16-Nov-2018  jmcneill Add intr_establish_xname stub
 1.8 13-Dec-2017  scole branches: 1.8.2; 1.8.4;
add intr_string() stub for acpi_util.c:acpi_intr_string() so kernel will still compile
 1.7 08-Apr-2017  scole Add ia64_handle_intr() stub
 1.6 01-Oct-2011  chs branches: 1.6.12; 1.6.30; 1.6.34; 1.6.38;
fix build errors with gcc 4.5.
 1.5 20-Dec-2010  matt Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.4 20-Jul-2009  kiyohara branches: 1.4.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.74; 1.2.76; 1.2.78;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.78.2 19-Aug-2009  yamt sync with head.
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file interrupt.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file interrupt.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file interrupt.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file interrupt.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file interrupt.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file interrupt.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.6.38.1 21-Apr-2017  bouyer Sync with HEAD
 1.6.34.1 26-Apr-2017  pgoyette Sync with HEAD
 1.6.30.1 28-Aug-2017  skrll Sync with HEAD
 1.6.12.1 03-Dec-2017  jdolecek update from HEAD
 1.8.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.8.4.1 10-Jun-2019  christos Sync with HEAD
 1.8.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.10.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.10 06-Oct-2023  skrll Trailing whitespace.
 1.9 20-Nov-2018  scole add IA64_DCR_DEFAULT, more changes from FreeBSD
 1.8 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.7 08-Apr-2017  scole branches: 1.7.12; 1.7.14;
Add kstack_top variable
 1.6 20-Jun-2014  joerg branches: 1.6.4; 1.6.8; 1.6.12;
Don't provide intrnames or intrcnt, GC intrcnt.h. IA64 has evcnt(9)
support hooked up, so no need for the legacy interface.
 1.5 06-Jan-2013  kiyohara branches: 1.5.10;
Call main() in locore.S. like other arch.
 1.4 01-Oct-2011  chs branches: 1.4.2; 1.4.12;
fix build errors with gcc 4.5.
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 20-Mar-2008  kochi branches: 1.2.4;
reorder includes, fix indentation.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file locore.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.3 24-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file locore.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file locore.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file locore.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file locore.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file locore.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.4.1 19-Aug-2009  yamt sync with head.
 1.4.12.3 03-Dec-2017  jdolecek update from HEAD
 1.4.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.12.1 25-Feb-2013  tls resync with head
 1.4.2.1 23-Jan-2013  yamt sync with head
 1.5.10.1 10-Aug-2014  tls Rebase.
 1.6.12.1 21-Apr-2017  bouyer Sync with HEAD
 1.6.8.1 26-Apr-2017  pgoyette Sync with HEAD
 1.6.4.1 28-Aug-2017  skrll Sync with HEAD
 1.7.14.1 10-Jun-2019  christos Sync with HEAD
 1.7.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.46 16-Mar-2025  riastradh Clear trapframe on exec.

Do this for all architectures, even if the trapframe is fully
initialized -- makes it easier to audit and be confident it's
correct, and most likely (with the exception of sh3 which has an
intermediate call to ufetch_int in the middle) the compiler can
eliminate redundant stores in these routines.

PR kern/59084: exec/spawn leaks register content
 1.45 06-Oct-2023  skrll branches: 1.45.6;
Trailing whitespace.
 1.44 23-Feb-2023  riastradh ia64: Add missing barriers in cpu_switchto.

(ia64 has never really worked, so no pullups needed, right?)

PR kern/57240
 1.43 19-Apr-2019  scole branches: 1.43.4; 1.43.30;
In map_vhpt(), read pmap_vhpt_log2size before any memory translation
instructions to avoid "Data Nested TLB faults" with GCC 7.4.0
 1.42 06-Apr-2019  thorpej Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
 1.41 18-Jan-2019  scole Add DPRINTF function, use kstack variable for proc0 memory, reorder some functions so ci initialized before use
 1.40 15-Nov-2018  scole enable some incorrectly commented-out code
 1.39 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.38 08-Apr-2017  scole branches: 1.38.6; 1.38.12; 1.38.14;
Add more from FreeBSD
 1.37 23-Dec-2016  cherry branches: 1.37.2;
"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
 1.36 22-Dec-2016  cherry switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.35 14-Mar-2014  cherry branches: 1.35.6; 1.35.10;
Tweak the argument order passed to the elf executable entry point (usually "__start"),
so as to make call to the C function ___start() easier from assembler.
We setup the memory stack frame for ___start(), before calling it.
 1.34 06-Jan-2013  kiyohara branches: 1.34.2;
Call main() in locore.S. like other arch.
 1.33 05-Nov-2012  chs add a stub cpu_mcontext_validate().
 1.32 28-Jul-2012  matt branches: 1.32.2;
Remove declartions of physmem
 1.31 19-Feb-2012  rmind Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
 1.30 01-Oct-2011  chs branches: 1.30.2; 1.30.6;
fix build errors with gcc 4.5.
 1.29 12-Jun-2011  rmind 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.28 04-Mar-2011  joerg branches: 1.28.2;
Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
 1.27 13-Nov-2010  uebayasi branches: 1.27.2; 1.27.4;
Typon.
 1.26 13-Nov-2010  uebayasi Pull in uvm/uvm.h for vm_nphysseg.
 1.25 10-Nov-2010  uebayasi Use more VM_PHYSMEM_*() accessors. No functional changes.
 1.24 28-Jun-2010  kiyohara Move identifycpu() into cpu.c. Our cpu* says:
cpu0 at mainbus0: ProcessorID 0, Id 0, Eid 0
cpu0: McKinley (1000.00-MHz Itanium 2)
cpu0: Origin "GenuineIntel", Revision 7
cpu0: Features 0x1
 1.23 08-Feb-2010  joerg branches: 1.23.2;
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
 1.22 10-Dec-2009  matt branches: 1.22.2;
Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds). Should result in no code differences.
 1.21 29-Nov-2009  rmind Pass pcb_fpcpu_slock correctly, since pcb0 is a pointer.
Fixes ia64 build (hi matt@).
 1.20 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.19 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.18 21-Nov-2009  rmind Use lwp_getpcb() on hppa and ia64, clean from struct user usage.
 1.17 23-Aug-2009  ahoka Typo fix: Mhz -> MHz

No functional change intended.
 1.16 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
Also call banner().
 1.15 18-Mar-2009  cegger bzero -> memset
 1.14 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.13 13-Feb-2009  apb Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
 1.12 30-Nov-2008  martin branches: 1.12.4;
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.11 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.10 15-Oct-2008  wrstuden branches: 1.10.2;
Merge wrstuden-revivesa into HEAD.
 1.9 02-Jul-2008  ad branches: 1.9.2;
Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
 1.8 28-Apr-2008  martin branches: 1.8.2; 1.8.4;
Remove clause 3 and 4 from TNF licenses
 1.7 20-Mar-2008  kochi branches: 1.7.2; 1.7.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.6 04-Mar-2007  christos branches: 1.6.20; 1.6.36; 1.6.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.5 28-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.4 09-Feb-2007  ad branches: 1.4.2;
Merge newlock2 to head.
 1.3 06-Sep-2006  cherry branches: 1.3.2; 1.3.4;
fix unaligned vendor string array. showed up during a gcc4 compile.
 1.2 03-Jul-2006  cherry towards exec(): first round at fixing USPACE
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.6 24-Mar-2008  yamt sync with head.
 1.1.14.5 03-Sep-2007  yamt sync with head.
 1.1.14.4 26-Feb-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file machdep.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file machdep.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file machdep.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.4 14-Sep-2006  yamt sync with head.
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file machdep.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.4.2 09-Sep-2006  rpaulo sync with head
 1.3.4.1 06-Sep-2006  rpaulo file machdep.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.3.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.4.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.6.40.4 17-Jan-2009  mjf Sync with HEAD.
 1.6.40.3 02-Jul-2008  mjf Sync with HEAD.
 1.6.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.6.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.36.1 24-Mar-2008  keiichi sync with head.
 1.6.20.1 23-Mar-2008  matt sync with HEAD
 1.7.4.6 11-Aug-2010  yamt sync with head.
 1.7.4.5 11-Mar-2010  yamt sync with head
 1.7.4.4 16-Sep-2009  yamt sync with head
 1.7.4.3 19-Aug-2009  yamt sync with head.
 1.7.4.2 04-May-2009  yamt sync with head.
 1.7.4.1 16-May-2008  yamt sync with head.
 1.7.2.1 18-May-2008  yamt sync with head.
 1.8.4.1 03-Jul-2008  simonb Sync with head.
 1.8.2.3 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.8.2.2 22-Jun-2008  wrstuden Re-add cpu_upcall() and page fault code. i386 kernels now compile.
They don't boot, but that seems to be a consequence of current from the
day this branch was started.
 1.8.2.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.9.2.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.2.1 19-Oct-2008  haad Sync with HEAD.
 1.10.2.3 28-Apr-2009  skrll Sync with HEAD.
 1.10.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.10.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.12.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.22.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.22.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.22.2.1 28-Apr-2010  uebayasi Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.
 1.23.2.3 05-Mar-2011  rmind sync with head
 1.23.2.2 03-Jul-2010  rmind sync with head
 1.23.2.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.27.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.27.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.28.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.30.6.1 24-Feb-2012  mrg sync to -current.
 1.30.2.5 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.30.2.4 23-Jan-2013  yamt sync with head
 1.30.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.30.2.2 30-Oct-2012  yamt sync with head
 1.30.2.1 17-Apr-2012  yamt sync with head
 1.32.2.4 03-Dec-2017  jdolecek update from HEAD
 1.32.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.2.2 25-Feb-2013  tls resync with head
 1.32.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.2.1 18-May-2014  rmind sync with head
 1.35.10.2 26-Apr-2017  pgoyette Sync with HEAD
 1.35.10.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.35.6.2 28-Aug-2017  skrll Sync with HEAD
 1.35.6.1 05-Feb-2017  skrll Sync with HEAD
 1.37.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.38.14.1 10-Jun-2019  christos Sync with HEAD
 1.38.12.2 26-Jan-2019  pgoyette Sync with HEAD
 1.38.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.38.6.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1859):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
(applied also to sys/arch/arm/cortex/a9_mpsubr.S,
sys/arch/arm/cortex/a9_mpsubr.S,
sys/arch/arm/cortex/cortex_init.S)
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/alpha/include/asm.h: revision 1.45
(applied to sys/arch/alpha/alpha/multiproc.s)
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284
(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.43.30.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #264):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
sys/arch/alpha/include/asm.h: revision 1.45
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/riscv/riscv/cpu_switch.S: revision 1.3
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

riscv: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.43.4.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1676):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
sys/arch/alpha/include/asm.h: revision 1.45
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284
(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.45.6.1 02-Aug-2025  perseant Sync with HEAD
 1.14 12-Dec-2022  gutteridge madt.c & mainbus.c: fix build with acpica 20221020

AcpiTbChecksum() was renamed AcpiUtChecksum() during code consolidation.
 1.13 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12 24-Apr-2021  thorpej branches: 1.12.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.11 29-Apr-2019  scole branches: 1.11.12;
Rename ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE with acpica update, see
src/sys/external/bsd/acpica/dist/changes.txt
 1.10 21-Jun-2016  nonaka branches: 1.10.18;
Pass bus_dma(9) tag to allow for porting sdhc(4) at acpi.
 1.9 17-May-2011  dyoung branches: 1.9.14; 1.9.32;
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
 1.8 17-May-2010  kiyohara branches: 1.8.2;
Attach CPU only of the pretense.
 1.7 23-Jan-2010  kiyohara branches: 1.7.2; 1.7.4;
Switch to ACPICA 20090730, and update for API changes.
 1.6 20-Jul-2009  kiyohara s/struct device/device_t/.
s/struct cfdata/cfdata_t/.
Remove unused <sys/bus.h>
The macro CFATTACH_DECL_NEW() was call with size 0 temporarily.
 1.5 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
Also call banner().
 1.4 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.3 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.2 28-Apr-2008  martin branches: 1.2.8; 1.2.14;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.5 11-Aug-2010  yamt sync with head.
 1.1.78.4 11-Mar-2010  yamt sync with head
 1.1.78.3 19-Aug-2009  yamt sync with head.
 1.1.78.2 04-May-2009  yamt sync with head.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file mainbus.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file mainbus.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file mainbus.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file mainbus.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file mainbus.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file mainbus.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.4.2 31-May-2011  rmind sync with head
 1.7.4.1 30-May-2010  rmind sync with head
 1.7.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.8.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.32.1 09-Jul-2016  skrll Sync with HEAD
 1.9.14.1 03-Dec-2017  jdolecek update from HEAD
 1.10.18.1 10-Jun-2019  christos Sync with HEAD
 1.11.12.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.12.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 06-Jan-2013  kiyohara Remove unused a C-source.
 1.3 26-Oct-2009  cegger branches: 1.3.12; 1.3.22;
kill extra whitespaces
reviewed by tsutsui@
 1.2 18-Mar-2009  cegger bcopy -> memcpy
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.2 11-Mar-2010  yamt sync with head
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file mca.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file mca.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file mca.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file mca.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file mca.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file mca.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 23-Jan-2013  yamt sync with head
 1.4 12-Jun-2011  rmind 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.3 28-Apr-2008  martin branches: 1.3.22; 1.3.32;
Remove clause 3 and 4 from TNF licenses
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.74; 1.2.76; 1.2.78;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file mem.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file mem.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file mem.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file mem.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file mem.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file mem.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.32.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.22.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.2 06-Oct-2023  skrll Trailing whitespace.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file pal.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pal.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pal.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pal.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pal.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pal.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.44 31-Oct-2024  andvar s/orginally/originally/ in comment.
 1.43 06-Oct-2023  skrll branches: 1.43.6;
Trailing whitespace.
 1.42 09-Apr-2022  riastradh sys: Use membar_release/acquire around reference drop.

This just goes through my recent reference count membar audit and
changes membar_exit to membar_release and membar_enter to
membar_acquire -- this should make everything cheaper on most CPUs
without hurting correctness, because membar_acquire is generally
cheaper than membar_enter.
 1.41 12-Mar-2022  riastradh sys: Membar audit around reference count releases.

If two threads are using an object that is freed when the reference
count goes to zero, we need to ensure that all memory operations
related to the object happen before freeing the object.

Using an atomic_dec_uint_nv(&refcnt) == 0 ensures that only one
thread takes responsibility for freeing, but it's not enough to
ensure that the other thread's memory operations happen before the
freeing.

Consider:

Thread A Thread B
obj->foo = 42; obj->baz = 73;
mumble(&obj->bar); grumble(&obj->quux);
/* membar_exit(); */ /* membar_exit(); */
atomic_dec -- not last atomic_dec -- last
/* membar_enter(); */
KASSERT(invariant(obj->foo,
obj->bar));
free_stuff(obj);

The memory barriers ensure that

obj->foo = 42;
mumble(&obj->bar);

in thread A happens before

KASSERT(invariant(obj->foo, obj->bar));
free_stuff(obj);

in thread B. Without them, this ordering is not guaranteed.

So in general it is necessary to do

membar_exit();
if (atomic_dec_uint_nv(&obj->refcnt) != 0)
return;
membar_enter();

to release a reference, for the `last one out hit the lights' style
of reference counting. (This is in contrast to the style where one
thread blocks new references and then waits under a lock for existing
ones to drain with a condvar -- no membar needed thanks to mutex(9).)

I searched for atomic_dec to find all these. Obviously we ought to
have a better abstraction for this because there's so much copypasta.
This is a stop-gap measure to fix actual bugs until we have that. It
would be nice if an abstraction could gracefully handle the different
styles of reference counting in use -- some years ago I drafted an
API for this, but making it cover everything got a little out of hand
(particularly with struct vnode::v_usecount) and I ended up setting
it aside to work on psref/localcount instead for better scalability.

I got bored of adding #ifdef __HAVE_ATOMIC_AS_MEMBAR everywhere, so I
only put it on things that look performance-critical on 5sec review.
We should really adopt membar_enter_preatomic/membar_exit_postatomic
or something (except they are applicable only to atomic r/m/w, not to
atomic_load/store_*, making the naming annoying) and get rid of all
the ifdefs.
 1.40 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.39 30-Nov-2019  riastradh Need <sys/atomic.h> for atomic_inc_64.

Emptying out <machine/rwlock.h> had the side effect of removing an
implied #include <sys/atomic.h>.
 1.38 09-May-2019  scole Revert -O0 for pmap, avoid RAW dependency compilation warning
 1.37 25-May-2018  jdolecek branches: 1.37.2;
Don't use uvm_emap_size, emap was removed
 1.36 08-Apr-2017  scole branches: 1.36.12;
Fix a possible infinite loop in pmap_kremove()
 1.35 08-Apr-2017  scole Attempted port over from FreeBSD with suggestions from <chs>. Still
more work needed, but at least now the ski simulator and hardware die
at the same place.
 1.34 23-Dec-2016  scole branches: 1.34.2;
make kernel compilable after recent uvm changes
 1.33 23-Dec-2016  cherry "Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.
 1.32 10-Mar-2014  martin branches: 1.32.6; 1.32.10;
Remove unused variables
 1.31 24-Mar-2013  kiyohara branches: 1.31.4;
Remove null lines.
Remove TAB and white-space terminate.
s/^ /\t/.
 1.30 24-Mar-2013  kiyohara Remove size pages from va. Not a page.
 1.29 05-Nov-2012  chs remove pmap_track_modified() since it references kmem globals
that no longer exist. this check was a hold-over from freebsd,
kmem pages on netbsd are not managed and thus mod/ref state is
anyway not tracked. also remove commented-out assertions about
pageq locking, this was another freebsd hold-over since pmaps
do not use the pageq lock on netbsd.
 1.28 31-Aug-2012  chs branches: 1.28.2;
fix some confusion about PG_FAKE.
 1.27 12-Nov-2010  uebayasi branches: 1.27.8;
Put VM_PAGE_TO_MD() definition in one place. No functional changes.
 1.26 10-Nov-2010  uebayasi Use more VM_PHYSMEM_*() accessors. No functional changes.
 1.25 30-Oct-2010  uebayasi Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
 1.24 07-Nov-2009  cegger branches: 1.24.2; 1.24.4;
Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
 1.23 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.22 21-Oct-2009  rmind Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
 1.21 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.20 21-Apr-2009  cegger change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@
 1.19 18-Mar-2009  cegger bcopy -> memcpy
 1.18 18-Mar-2009  cegger bzero -> memset
 1.17 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.16 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.15 10-Dec-2008  pooka branches: 1.15.2;
Make kernel_pmap_ptr a const. Requested by steve_martin.
 1.14 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.13 28-Apr-2008  martin branches: 1.13.6; 1.13.8;
Remove clause 3 and 4 from TNF licenses
 1.12 20-Mar-2008  kochi branches: 1.12.2; 1.12.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.11 25-Oct-2007  yamt branches: 1.11.12; 1.11.16;
defparam PAGER_MAP_SIZE.
 1.10 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.9 16-Jul-2007  macallan branches: 1.9.8; 1.9.10; 1.9.14;
change pmap_phys_address()s parameter to paddr_t since that's what it gets
fed from mmap*() anyway
approved by gimpy
 1.8 12-Mar-2007  ad branches: 1.8.8;
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
 1.7 04-Mar-2007  christos branches: 1.7.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.6 28-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.5 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.4 15-Sep-2006  yamt branches: 1.4.6;
merge yamt-pdpolicy branch.
- separate page replacement policy from the rest of kernel
- implement an alternative replacement policy
 1.3 01-Sep-2006  mrg branches: 1.3.2; 1.3.4;
va = va += PAGE_SIZE is possibly undefined. remove the first "va = ".
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.14.7 24-Mar-2008  yamt sync with head.
 1.2.14.6 27-Oct-2007  yamt sync with head.
 1.2.14.5 03-Sep-2007  yamt sync with head.
 1.2.14.4 26-Feb-2007  yamt sync with head.
 1.2.14.3 30-Dec-2006  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file pmap.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:47 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file pmap.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file pmap.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file pmap.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.4 15-Sep-2006  yamt make UVM_KICK_PDAEMON() a real function and stop including
uvm_pdpolicy.h from uvm.h. this also fixes build of pmap(1).
 1.2.2.3 03-Sep-2006  yamt sync with head.
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file pmap.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.4.2 09-Sep-2006  rpaulo sync with head
 1.3.4.1 01-Sep-2006  rpaulo file pmap.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.3.2.1 18-Nov-2006  ad Sync with head.
 1.4.6.3 24-Mar-2007  yamt sync with head.
 1.4.6.2 12-Mar-2007  rmind Sync with HEAD.
 1.4.6.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.7.2.3 03-Dec-2007  ad Sync with HEAD.
 1.7.2.2 20-Aug-2007  ad Sync with HEAD.
 1.7.2.1 13-Mar-2007  ad Sync with head.
 1.8.8.1 03-Oct-2007  garbled Sync with HEAD
 1.9.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.9.10.2 23-Mar-2008  matt sync with HEAD
 1.9.10.1 06-Nov-2007  matt sync with HEAD
 1.9.8.1 28-Oct-2007  joerg Sync with HEAD.
 1.11.16.3 17-Jan-2009  mjf Sync with HEAD.
 1.11.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.11.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.11.12.1 24-Mar-2008  keiichi sync with head.
 1.12.4.4 11-Mar-2010  yamt sync with head
 1.12.4.3 19-Aug-2009  yamt sync with head.
 1.12.4.2 04-May-2009  yamt sync with head.
 1.12.4.1 16-May-2008  yamt sync with head.
 1.12.2.1 18-May-2008  yamt sync with head.
 1.13.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.13.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.13.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.15.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.24.4.1 05-Mar-2011  rmind sync with head
 1.24.2.8 10-Nov-2010  uebayasi Fix thinko; make vm_physseg ptr swap really work.
 1.24.2.7 10-Nov-2010  uebayasi opt_xip.h is no more here.
 1.24.2.6 10-Nov-2010  uebayasi Always use VM_PHYSMEM_PTR().
 1.24.2.5 06-Nov-2010  uebayasi Sync with HEAD.
 1.24.2.4 07-Jul-2010  uebayasi Clean up; merge options DIRECT_PAGE into options XIP.
 1.24.2.3 31-May-2010  uebayasi Re-define the definition of "device page"; device pages are pages of
device memory. Pages which don't have vm_page (== can't be used for
generic use), but whose PV are tracked, are called "direct pages" from
now.
 1.24.2.2 28-Apr-2010  uebayasi Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.
 1.24.2.1 25-Feb-2010  uebayasi Use VM_PAGE_TO_MD(). Only compile tested.
 1.27.8.3 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.8.2 16-Jan-2013  yamt sync with (a bit old) head
 1.27.8.1 30-Oct-2012  yamt sync with head
 1.28.2.4 03-Dec-2017  jdolecek update from HEAD
 1.28.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.2.2 23-Jun-2013  tls resync from head
 1.28.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.31.4.1 18-May-2014  rmind sync with head
 1.32.10.2 26-Apr-2017  pgoyette Sync with HEAD
 1.32.10.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.32.6.2 28-Aug-2017  skrll Sync with HEAD
 1.32.6.1 05-Feb-2017  skrll Sync with HEAD
 1.34.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.36.12.1 25-Jun-2018  pgoyette Sync with HEAD
 1.37.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.37.2.1 10-Jun-2019  christos Sync with HEAD
 1.43.6.1 02-Aug-2025  perseant Sync with HEAD
 1.7 06-Oct-2023  skrll Trailing whitespace.
 1.6 04-Jan-2014  dsl Remove __HAVE_PROCESS_XFPREGS and add the extra parameter for the size
of the fp save area to all the process_read_fpregs() and
process_write_fpregs() functions.
None of the functions have been modified to use the new parameters.
The size is set for all the writes, but some of the arch-specific reads
just pass NULL.
The amd64 (and i386) need variable sized fp register save areas in order
to support AVX and other enhanced register areas.
These functions are rarely called - so the extra argument won't matter.
 1.5 20-Jul-2009  kiyohara branches: 1.5.12; 1.5.22; 1.5.26;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 04-Mar-2007  christos branches: 1.3.40; 1.3.42; 1.3.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.26;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file process_machdep.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.3 03-Sep-2007  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file process_machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file process_machdep.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file process_machdep.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file process_machdep.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file process_machdep.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.44.2 19-Aug-2009  yamt sync with head.
 1.3.44.1 16-May-2008  yamt sync with head.
 1.3.42.1 18-May-2008  yamt sync with head.
 1.3.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.26.1 18-May-2014  rmind sync with head
 1.5.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 05-Aug-2016  scole branches: 1.1.2; 1.1.4; 1.1.18;
PR port-ia64/51261

Add procfs_getcpuinfstr()
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Aug-2016  jdolecek file procfs_machdep.c was added on branch tls-maxphys on 2017-12-03 11:36:20 +0000
 1.1.4.2 05-Oct-2016  skrll Sync with HEAD
 1.1.4.1 05-Aug-2016  skrll file procfs_machdep.c was added on branch nick-nhusb on 2016-10-05 20:55:29 +0000
 1.1.2.2 06-Aug-2016  pgoyette Sync with HEAD
 1.1.2.1 05-Aug-2016  pgoyette file procfs_machdep.c was added on branch pgoyette-localcount on 2016-08-06 00:19:04 +0000
 1.4 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.3 01-Oct-2011  chs fix build errors with gcc 4.5.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file sal.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file sal.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file sal.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file sal.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file sal.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file sal.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3 15-Oct-2019  chs convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.
 1.2 27-Oct-2012  chs branches: 1.2.38;
malloc -> kmem_zalloc. this also fixes a build error.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.14; 1.1.24;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.24.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.1.14.1 30-Oct-2012  yamt sync with head
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file sapic.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:21 +0000
 1.2.38.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2 06-Oct-2023  skrll Trailing whitespace.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file setjmp.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file setjmp.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file setjmp.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file setjmp.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file setjmp.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file setjmp.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.5 13-May-2016  christos From scole_mail:
So here is a patch to get basic ski console output working. The ski
simulator was decoding the wrong registers in ssccnputc() due to
automagically inlined ssc() which contains a "break" simulated system
call.

The ski loader "skiload" has almost exactly the same inline assembly
call for ssc(), but for whatever reason, (maybe ssc() and
ski_cons_putchar() are in different files?), the ssc() function didn't
get inlined and I/O worked fine.
 1.4 27-Oct-2012  chs branches: 1.4.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.78;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.78.1 19-Aug-2009  yamt sync with head.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file ssc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file ssc.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file ssc.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file ssc.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file ssc.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file ssc.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.22.2 03-Dec-2017  jdolecek update from HEAD
 1.3.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.12.1 30-Oct-2012  yamt sync with head
 1.4.14.1 29-May-2016  skrll Sync with HEAD
 1.11 18-Aug-2025  andvar Fix various typos, mainly in comments:
s/invaid/invalid/
s/instad/instead/
s/wich/with/
s/tranform/transform/
s/tranmist/transmit/
s/tranceiver/transceiver/
s/Tranparent/Transparent/
s/tranlated/translated/
s/tranfer/transfer/
s/tranmissions/transmissions/
s/condtions/conditions/
s/Recient/Recent/
 1.10 30-Jun-2020  maxv Make copystr() a MI C function, part of libkern and shared on all
architectures.

Notes:

- On alpha and ia64 the function is kept but gets renamed locally to avoid
symbol collision. This is because on these two arches, I am not sure
whether the ASM callers do not rely on fixed registers, so I prefer to
keep the ASM body for now.
- On Vax, only the symbol is removed, because the body is used from other
functions.
- On RISC-V, this change fixes a bug: copystr() was just a wrapper around
strlcpy(), but strlcpy() makes the operation less safe (strlen on the
source beyond its size).
- The kASan, kCSan and kMSan wrappers are removed, because now that
copystr() is in C, the compiler transformations are applied to it,
without the need for manual wrappers.

Could test on amd64 only, but should be fine.
 1.9 02-May-2019  scole Remove some unused assembly and other variables to reduce compile warnings
 1.8 06-Apr-2019  thorpej Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.
 1.7 05-Aug-2016  scole branches: 1.7.16;
PR port-ia64/51261

Use common/lib/libc/arch/ia64/string/bzero.S and other string functions
 1.6 08-Aug-2010  chs branches: 1.6.18; 1.6.36; 1.6.40;
fix copy{in,out}{,str}() to return the error returned by uvm_fault().
part of PR 41813 that I missed earlier.
 1.5 27-Nov-2009  rmind branches: 1.5.2; 1.5.4;
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 20-Mar-2008  kochi branches: 1.3.4;
reorder includes, fix indentation.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.50; 1.2.70; 1.2.74;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.70.1 24-Mar-2008  keiichi sync with head.
 1.2.50.1 23-Mar-2008  matt sync with HEAD
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file support.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.3 24-Mar-2008  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file support.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file support.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file support.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file support.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file support.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.4.3 11-Aug-2010  yamt sync with head.
 1.3.4.2 11-Mar-2010  yamt sync with head
 1.3.4.1 19-Aug-2009  yamt sync with head.
 1.5.4.1 05-Mar-2011  rmind sync with head
 1.5.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.6.40.1 06-Aug-2016  pgoyette Sync with HEAD
 1.6.36.1 05-Oct-2016  skrll Sync with HEAD
 1.6.18.1 03-Dec-2017  jdolecek update from HEAD
 1.7.16.1 10-Jun-2019  christos Sync with HEAD
 1.7 06-Oct-2023  skrll Trailing whitespace.
 1.6 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 28-Apr-2008  martin branches: 1.5.2;
Remove clause 3 and 4 from TNF licenses
 1.4 22-Dec-2007  dsl branches: 1.4.6; 1.4.8; 1.4.10;
Fix the remaining sys_sysarch() stub function.
 1.3 09-Feb-2007  ad branches: 1.3.24; 1.3.32; 1.3.36;
Merge newlock2 to head.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.18; 1.2.20;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file sys_machdep.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.18.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.2.14.4 21-Jan-2008  yamt sync with head
 1.2.14.3 26-Feb-2007  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file sys_machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file sys_machdep.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file sys_machdep.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file sys_machdep.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file sys_machdep.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.36.1 02-Jan-2008  bouyer Sync with HEAD
 1.3.32.1 26-Dec-2007  ad Sync with head.
 1.3.24.1 09-Jan-2008  matt sync with HEAD
 1.4.10.2 19-Aug-2009  yamt sync with head.
 1.4.10.1 16-May-2008  yamt sync with head.
 1.4.8.1 18-May-2008  yamt sync with head.
 1.4.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.2.2 14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.5.2.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.9 06-Apr-2019  kamil Centralized shared part of child_return() into MI part

Add a new function md_child_return() for MD specific bits only.

New child_return() is now part of MI and central code that handles
uniformly tracing code (KTR and ptrace(2)).

Synchronize value passed to ktrsysret() among ports to SYS_fork. This is
a traditional value and accessing p_lflag to check for PL_PPWAIT shall
use locking against proc_lock. Returning SYS_fork vs SYS_vfork still isn't
correct enough as there are more entry points to forking code. Instead of
making it too good, just settle with plain SYS_fork for all ports.
 1.8 03-Apr-2019  kamil Rework the fork(2)/vfork(2) event signalling under ptrace(2)

Remove the constraint of SIGTRAP event being maskable by a tracee.

Now all SIGTRAP TRAP_CHLD events are delivered to debugger.

This code touches MD specific logic and the child_return routine.
It's an intermediate step with a room for refactoring in future and
right now the least invasive approach. This allows to assert expected
behavior in already existing ATF tests and make the code prettier
in future keeping the same semantics. Probably there is a need for a MI
wrapper of child_return for shared functionality between ports.
 1.7 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.6 05-Nov-2012  chs branches: 1.6.36; 1.6.38;
add a cpu_spawn_return() that just calls userret().
 1.5 23-Jan-2010  kiyohara branches: 1.5.12; 1.5.22;
Initialize md_syscall in syscall_intern(). But the md_syscall of ia64 not
support yet.
And remove white-space.
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.74; 1.2.76; 1.2.78;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.78.3 11-Mar-2010  yamt sync with head
 1.2.78.2 19-Aug-2009  yamt sync with head.
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file syscall.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file syscall.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file syscall.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file syscall.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file syscall.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file syscall.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.5.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.12.1 16-Jan-2013  yamt sync with (a bit old) head
 1.6.38.1 10-Jun-2019  christos Sync with HEAD
 1.6.36.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.7 06-Oct-2023  skrll Trailing whitespace.
 1.6 02-May-2019  scole Add more code from FreeBSD, still needs work
 1.5 09-Jan-2019  scole whitespace cleanup
 1.4 08-Apr-2017  scole branches: 1.4.12; 1.4.14;
Add vmparam.h include
 1.3 20-Jul-2009  kiyohara branches: 1.3.22; 1.3.40; 1.3.44; 1.3.48;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14; 1.2.20; 1.2.78;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.78.1 19-Aug-2009  yamt sync with head.
 1.2.20.2 09-Sep-2006  rpaulo sync with head
 1.2.20.1 08-Apr-2006  rpaulo file syscall_stubs.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file syscall_stubs.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file syscall_stubs.S was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file syscall_stubs.S was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file syscall_stubs.S was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file syscall_stubs.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.3.48.1 21-Apr-2017  bouyer Sync with HEAD
 1.3.44.1 26-Apr-2017  pgoyette Sync with HEAD
 1.3.40.1 28-Aug-2017  skrll Sync with HEAD
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.4.14.1 10-Jun-2019  christos Sync with HEAD
 1.4.12.1 18-Jan-2019  pgoyette Synch with HEAD
 1.16 05-Oct-2023  ad Arrange to update cached LWP credentials in userret() rather than during
syscall/trap entry, eliminating a test+branch on every syscall/trap.

This wasn't possible in the 3.99.x timeframe when l->l_cred came about
because there wasn't a reliable/timely way to force an ONPROC LWP running on
a remote CPU into the kernel (which is just about the only new thing in
this scheme).
 1.15 24-Jul-2021  andvar Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
 1.14 08-Apr-2017  scole branches: 1.14.30;
Add include and panic in startlwp()
 1.13 10-Mar-2014  martin branches: 1.13.6; 1.13.10; 1.13.14;
Remove unused variables
 1.12 12-Jan-2013  kiyohara branches: 1.12.2;
Add some vector process from FreeBSD.
Remove and add null-line.
 1.11 06-Jan-2013  kiyohara Add IA64_VEC_SPECULATION into trap(). From FreeBSD.
 1.10 19-Feb-2012  rmind branches: 1.10.2;
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
 1.9 20-Jul-2009  kiyohara branches: 1.9.12; 1.9.16;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.8 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.7 15-Oct-2008  wrstuden branches: 1.7.2; 1.7.8;
Merge wrstuden-revivesa into HEAD.
 1.6 28-Apr-2008  martin branches: 1.6.2; 1.6.6;
Remove clause 3 and 4 from TNF licenses
 1.5 09-Feb-2007  ad branches: 1.5.44; 1.5.46; 1.5.48;
Merge newlock2 to head.
 1.4 01-Sep-2006  mrg branches: 1.4.2; 1.4.4;
fix a bug in userlevel trap() handling where struct proc *p was used
before it was assigned to.
 1.3 19-Jul-2006  ad - Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.10; 1.2.14;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.14.4 26-Feb-2007  yamt sync with head.
 1.2.14.3 30-Dec-2006  yamt sync with head.
 1.2.14.2 21-Jun-2006  yamt sync with head.
 1.2.14.1 08-Apr-2006  yamt file trap.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 08-Apr-2006  tron file trap.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 08-Apr-2006  simonb file trap.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file trap.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.2.2.4 03-Sep-2006  yamt sync with head.
 1.2.2.3 11-Aug-2006  yamt sync with head
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file trap.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.4.4.2 09-Sep-2006  rpaulo sync with head
 1.4.4.1 01-Sep-2006  rpaulo file trap.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.4.2.1 30-Jan-2007  ad Remove support for SA. Ok core@.
 1.5.48.3 19-Aug-2009  yamt sync with head.
 1.5.48.2 04-May-2009  yamt sync with head.
 1.5.48.1 16-May-2008  yamt sync with head.
 1.5.46.1 18-May-2008  yamt sync with head.
 1.5.44.2 17-Jan-2009  mjf Sync with HEAD.
 1.5.44.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.6.1 19-Oct-2008  haad Sync with HEAD.
 1.6.2.2 22-Jun-2008  wrstuden Re-add cpu_upcall() and page fault code. i386 kernels now compile.
They don't boot, but that seems to be a consequence of current from the
day this branch was started.
 1.6.2.1 10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.7.8.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.2.1 28-Apr-2009  skrll Sync with HEAD.
 1.9.16.1 24-Feb-2012  mrg sync to -current.
 1.9.12.3 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.12.2 23-Jan-2013  yamt sync with head
 1.9.12.1 17-Apr-2012  yamt sync with head
 1.10.2.3 03-Dec-2017  jdolecek update from HEAD
 1.10.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.2.1 25-Feb-2013  tls resync with head
 1.12.2.1 18-May-2014  rmind sync with head
 1.13.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.13.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.13.6.1 28-Aug-2017  skrll Sync with HEAD
 1.14.30.1 01-Aug-2021  thorpej Sync with HEAD.
 1.20 06-Oct-2023  skrll Convert the l2->l_md.md_astpending assignments into KASSERTs.

l_md is zeroised by lwp_create with

memset(&l2->l_startzero, 0, sizeof(*l2) -
offsetof(lwp_t, l_startzero));
 1.19 06-Oct-2023  skrll Trailing whitespace.
 1.18 23-Feb-2023  riastradh ia64: Add missing barriers in cpu_switchto.

(ia64 has never really worked, so no pullups needed, right?)

PR kern/57240
 1.17 01-Jan-2022  andvar branches: 1.17.4;
fix typos in comments, mainly basicly -> basically.
 1.16 18-Jan-2019  scole branches: 1.16.4;
hopefully fix deadlock issue in cpu_switchto. pointed out by <mrg> (Thanks!)
 1.15 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.14 14-Apr-2018  scole branches: 1.14.2;
Add XXX note regarding incomplete forking
 1.13 08-Apr-2017  scole branches: 1.13.6; 1.13.12;
Convert cpu_switchto() from assembly to C code. Remove comment about
possible cpu_switchto() bug. Actual issue appears to be new processes
using lwp0 instead of own memory, which is still not fixed.

Thanks to <chs> for figuring this out.
 1.12 12-Aug-2016  scole branches: 1.12.2;
Add volatile flag which might help with ski emulator and longjmp, ok'ed by <joerg>
 1.11 10-Feb-2011  pooka branches: 1.11.14; 1.11.32; 1.11.36;
Make vmapbuf() return success/error and make physio deal with a
failure.
 1.10 29-Nov-2009  rmind branches: 1.10.4; 1.10.6; 1.10.8;
Replace l_addr with uvm_lwp_getuarea() in various MD code, mostly cpu_lwp_fork().
 1.9 21-Nov-2009  rmind Use lwp_getpcb() on hppa and ia64, clean from struct user usage.
 1.8 22-Oct-2009  rmind Avoid #ifndef __NO_CPU_LWP_FREE, only ia64 is missing cpu_lwp_free
routines and it can/should provide stubs.
 1.7 21-Oct-2009  rmind Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code. Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
 1.6 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 16-Mar-2009  dsl ANSIfy functions with function-pointer arguments
 1.4 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.14;
Remove clause 3 and 4 from TNF licenses
 1.2 20-Mar-2008  kochi branches: 1.2.2; 1.2.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file vm_machdep.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:23 +0000
 1.1.14.3 24-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file vm_machdep.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file vm_machdep.c was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file vm_machdep.c was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file vm_machdep.c was added on branch elad-kernelauth on 2006-04-19 02:32:51 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file vm_machdep.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:27 +0000
 1.2.4.4 11-Mar-2010  yamt sync with head
 1.2.4.3 19-Aug-2009  yamt sync with head.
 1.2.4.2 04-May-2009  yamt sync with head.
 1.2.4.1 16-May-2008  yamt sync with head.
 1.2.2.1 18-May-2008  yamt sync with head.
 1.3.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.10.8.1 17-Feb-2011  bouyer Sync with HEAD
 1.10.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.4.1 05-Mar-2011  rmind sync with head
 1.11.36.1 26-Apr-2017  pgoyette Sync with HEAD
 1.11.32.2 28-Aug-2017  skrll Sync with HEAD
 1.11.32.1 05-Oct-2016  skrll Sync with HEAD
 1.11.14.1 03-Dec-2017  jdolecek update from HEAD
 1.12.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.13.12.3 26-Jan-2019  pgoyette Sync with HEAD
 1.13.12.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.13.12.1 16-Apr-2018  pgoyette Sync with HEAD, resolve some conflicts
 1.13.6.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1859):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
(applied also to sys/arch/arm/cortex/a9_mpsubr.S,
sys/arch/arm/cortex/a9_mpsubr.S,
sys/arch/arm/cortex/cortex_init.S)
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/alpha/include/asm.h: revision 1.45
(applied to sys/arch/alpha/alpha/multiproc.s)
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284
(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.14.2.1 10-Jun-2019  christos Sync with HEAD
 1.16.4.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #1676):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
sys/arch/alpha/include/asm.h: revision 1.45
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284
(all via patch)

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.17.4.1 31-Jul-2023  martin Pull up following revision(s) (requested by riastradh in ticket #264):

sys/arch/ia64/ia64/vm_machdep.c: revision 1.18
sys/arch/powerpc/powerpc/locore_subr.S: revision 1.67
sys/arch/aarch64/aarch64/locore.S: revision 1.91
sys/arch/mips/include/asm.h: revision 1.74
sys/arch/hppa/include/cpu.h: revision 1.13
sys/arch/arm/arm/armv6_start.S: revision 1.38
sys/arch/evbmips/ingenic/cpu_startup.S: revision 1.2
sys/arch/mips/mips/locore.S: revision 1.229
sys/arch/aarch64/aarch64/cpuswitch.S: revision 1.40
sys/arch/alpha/include/asm.h: revision 1.45
sys/arch/sparc64/sparc64/locore.s: revision 1.432
sys/arch/vax/vax/subr.S: revision 1.42
sys/arch/mips/mips/locore_mips3.S: revision 1.116
sys/arch/riscv/riscv/cpu_switch.S: revision 1.3
sys/arch/ia64/ia64/machdep.c: revision 1.44
sys/arch/arm/arm32/cpuswitch.S: revision 1.106
sys/arch/sparc/sparc/locore.s: revision 1.284

aarch64: Add missing barriers in cpu_switchto.
Details in comments.

Note: This is a conservative change that inserts a barrier where
there was a comment saying none is needed, which is probably correct.
The goal of this change is to systematically add barriers to be
confident in correctness; subsequent changes may remove some bariers,
as an optimization, with an explanation of why each barrier is not
needed.

PR kern/57240

alpha: Add missing barriers in cpu_switchto.
Details in comments.

arm32: Add missing barriers in cpu_switchto.
Details in comments.

hppa: Add missing barriers in cpu_switchto.
Not sure hppa has ever had working MULTIPROCESSOR, so maybe no
pullups needed?

ia64: Add missing barriers in cpu_switchto.
(ia64 has never really worked, so no pullups needed, right?)

mips: Add missing barriers in cpu_switchto.
Details in comments.

powerpc: Add missing barriers in cpu_switchto.
Details in comments.

riscv: Add missing barriers in cpu_switchto.
Details in comments.

sparc: Add missing barriers in cpu_switchto.

sparc64: Add missing barriers in cpu_switchto.
Details in comments.

vax: Note where cpu_switchto needs barriers.

Not sure vax has ever had working MULTIPROCESSOR, though, and I'm not
even sure how to spell store-before-load barriers on VAX, so no
functional change for now.
 1.11 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.10 04-Nov-2024  christos Undo previous lwp.h change.
 1.9 03-Nov-2024  christos Split __lwp_getprivate_fast and __lwp_*tcb from mcontext.h into a separate
lwp.h file.
 1.8 23-Feb-2017  scole branches: 1.8.50;
Add fenv.h for ia64, imported from FreeBSD, compile tested only.
 1.7 05-Aug-2016  scole branches: 1.7.2;
PR port-ia64/51261

Remove local acpi_func.h as common version exists
 1.6 20-Jun-2014  joerg branches: 1.6.4; 1.6.8;
Don't provide intrnames or intrcnt, GC intrcnt.h. IA64 has evcnt(9)
support hooked up, so no need for the legacy interface.
 1.5 26-Dec-2012  martin branches: 1.5.10;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.4 17-Jul-2011  joerg branches: 1.4.2; 1.4.12;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.3 24-Jul-2010  jruoho Remove acpica_machdep.h.
 1.2 26-Jul-2006  drochner branches: 1.2.6; 1.2.64; 1.2.84; 1.2.86;
don't install <machine/db_machdep.h>, this is kernel only
 1.1 20-Jun-2006  skrll branches: 1.1.2; 1.1.4; 1.1.6;
Enable installation of ia64 includes - mostly from cherry.
 1.1.6.2 13-Jul-2006  gdamore Merge from HEAD.
 1.1.6.1 20-Jun-2006  gdamore file Makefile was added on branch gdamore-uart on 2006-07-13 17:48:55 +0000
 1.1.4.3 11-Aug-2006  yamt sync with head
 1.1.4.2 26-Jun-2006  yamt sync with head.
 1.1.4.1 20-Jun-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-06-26 12:44:54 +0000
 1.1.2.3 30-Dec-2006  yamt sync with head.
 1.1.2.2 21-Jun-2006  yamt sync with head.
 1.1.2.1 20-Jun-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.86.1 05-Mar-2011  rmind sync with head
 1.2.84.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.2.64.1 11-Aug-2010  yamt sync with head.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 26-Jul-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.4.12.3 03-Dec-2017  jdolecek update from HEAD
 1.4.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.12.1 25-Feb-2013  tls resync with head
 1.4.2.1 23-Jan-2013  yamt sync with head
 1.5.10.1 10-Aug-2014  tls Rebase.
 1.6.8.2 20-Mar-2017  pgoyette Sync with HEAD
 1.6.8.1 06-Aug-2016  pgoyette Sync with HEAD
 1.6.4.2 28-Aug-2017  skrll Sync with HEAD
 1.6.4.1 05-Oct-2016  skrll Sync with HEAD
 1.7.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.8.50.1 02-Aug-2025  perseant Sync with HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file _regset.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file _regset.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file _regset.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file _regset.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file _regset.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file _regset.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.5 05-Aug-2016  scole PR port-ia64/51261

Remove local acpi_func.h as common version exists
 1.4 24-Jul-2010  jruoho branches: 1.4.18; 1.4.36; 1.4.40;
Revert the previous partially for the time being.
 1.3 24-Jul-2010  jruoho Move ACPI_FLUSH_CPU_CACHE() (a.k.a. WBINVD on x86) to MD headers where it
belongs to. Let IA-64 define its own function/instruction instead of
requiring a dummy wbinvd() to satisfy the definition in a MI header.
 1.2 14-May-2006  elad branches: 1.2.4; 1.2.8; 1.2.14; 1.2.72; 1.2.92; 1.2.94;
integrate kauth.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file acpi_func.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file acpi_func.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file acpi_func.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.94.1 05-Mar-2011  rmind sync with head
 1.2.92.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.2.72.1 11-Aug-2010  yamt sync with head.
 1.2.14.2 09-Sep-2006  rpaulo sync with head
 1.2.14.1 14-May-2006  rpaulo file acpi_func.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.2.8.2 21-Jun-2006  yamt sync with head.
 1.2.8.1 14-May-2006  yamt file acpi_func.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.4.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.4.1 14-May-2006  tron file acpi_func.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.4.40.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.36.1 05-Oct-2016  skrll Sync with HEAD
 1.4.18.1 03-Dec-2017  jdolecek update from HEAD
 1.9 22-Dec-2019  thorpej Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existing
ACPI software layering model, are wrappers around acpi_md_intr_mask() and
acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and
intr_unmask().

XXX ARM and IA64 implementations of acpi_md_intr_mask() and
acpi_md_intr_unmask() are just stubs for now.
 1.8 16-Nov-2018  jmcneill Add MD functions for establishing and disestablishing interrupt handlers.
 1.7 20-Mar-2018  bouyer branches: 1.7.2;
Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".

Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.

Proposed on tech-kern@ on Dec 29.
 1.6 23-Sep-2012  chs branches: 1.6.36;
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
 1.5 12-Jun-2011  jruoho branches: 1.5.2; 1.5.8; 1.5.12;
Follow IA-64 with the x86-specific ACPI MD functions and move these where
they belong to. Remove an unused function. Minor KNF. No functional change.
 1.4 12-Jun-2011  jruoho Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).
 1.3 13-Jan-2011  jruoho branches: 1.3.6;
Move the function that counts the CPUs from acpicpu(4) to the MD layer.
 1.2 20-Jul-2009  kiyohara branches: 1.2.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file acpi_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file acpi_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file acpi_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file acpi_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file acpi_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file acpi_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.8.1 22-Nov-2012  riz Pull up following revision(s) (requested by chs in ticket #683):
sys/arch/ia64/include/acpi_machdep.h: revision 1.6
sys/arch/x86/include/acpi_machdep.h: revision 1.11
sys/dev/acpi/acpi.c: revision 1.255
sys/arch/x86/acpi/acpi_machdep.c: revision 1.4
sys/arch/x86/x86/mpacpi.c: revision 1.95
sys/arch/x86/x86/mpacpi.c: revision 1.96
sys/arch/ia64/acpi/acpi_machdep.c: revision 1.6
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
as a workaround for PR 47016, call ioapic_reenable() at the end of
ACPI interrupt routing to fix the settings for the SCI interrupt.
the problem is that after my recent changes, the SCI handler is
installed before the MADT info is parsed, so we don't know what
polarity it should have. the real fix for this will be to rearrange
the ACPI initialization so that everything is done in a more sensible
order, but that will take some more time.
 1.5.2.1 30-Oct-2012  yamt sync with head
 1.6.36.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.6.36.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.7.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7.2.1 10-Jun-2019  christos Sync with HEAD
 1.2 24-Jul-2010  jruoho Remove empty file.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.92; 1.1.98; 1.1.100;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.100.1 05-Mar-2011  rmind sync with head
 1.1.98.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.98.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.92.1 24-Oct-2010  jym Sync with HEAD
 1.1.78.1 11-Aug-2010  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file acpica_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file acpica_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file acpica_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file acpica_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file acpica_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file acpica_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.8 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.7 27-Mar-2010  tnozaki 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
it may pass through compiler type check, it's harmful.
so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
 1.6 11-Jan-2009  christos branches: 1.6.4; 1.6.6;
merge christos-time_t
 1.5 17-Oct-2007  garbled branches: 1.5.16; 1.5.18; 1.5.22; 1.5.30;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 03-Sep-2007  drochner clean up some definitions around rune_t which are not needed anymore
 1.3 04-Oct-2006  tnozaki branches: 1.3.8; 1.3.16; 1.3.22; 1.3.26; 1.3.28;
fix gcc -Werror -Wmissing-braces problem
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
 1.2 07-Jul-2006  cherry branches: 1.2.4; 1.2.6; 1.2.8;
Towards building libc/arch/ia64
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.4 27-Oct-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file ansi.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file ansi.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file ansi.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ansi.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ansi.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.8.1 22-Oct-2006  yamt sync with head
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 07-Jul-2006  rpaulo file ansi.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.2.4.1 18-Nov-2006  ad Sync with head.
 1.3.28.1 06-Nov-2007  matt sync with HEAD
 1.3.26.1 02-Oct-2007  joerg Sync with HEAD.
 1.3.22.1 10-Sep-2007  skrll Sync with HEAD.
 1.3.16.1 03-Oct-2007  garbled Sync with HEAD
 1.3.8.1 09-Oct-2007  ad Sync with head.
 1.5.30.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.22.2 11-Aug-2010  yamt sync with head.
 1.5.22.1 04-May-2009  yamt sync with head.
 1.5.18.3 04-Jan-2009  christos always use __int64_t for time_t.
 1.5.18.2 30-Mar-2008  christos time_t is now __int64_t
 1.5.18.1 29-Mar-2008  christos Welcome to the time_t=long long dev_t=uint64_t branch.
 1.5.16.1 17-Jan-2009  mjf Sync with HEAD.
 1.6.6.1 30-May-2010  rmind sync with head
 1.6.4.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.2 03-Jul-2006  cherry branches: 1.2.6;
misc #define cleanups
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file aout_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file aout_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file aout_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file aout_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file aout_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 03-Jul-2006  rpaulo file aout_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.11 06-Jan-2025  martin PR 58960: fix misunderstanding in semantic and provide both the original
id string as well as _NETBSD_REVISIONID.
Do not rely on string concatenation in the inline assembler, use .ascii
and .asciz for individual string parts instead.
 1.10 04-Jan-2025  martin PR 58960: ia64/asm.h: Respect NETBSD_REVISIONID.
 1.9 06-Oct-2023  skrll branches: 1.9.6;
Trailing whitespace
 1.8 17-Apr-2020  joerg Mark the .ident section as mergable string section to avoid redundant
entries.
 1.7 14-Mar-2014  cherry branches: 1.7.30; 1.7.40;
Add RCSID() macro
 1.6 15-Jan-2013  kiyohara branches: 1.6.2;
Add macro _C_LABEL() for .S file.
 1.5 27-Dec-2012  martin Add support for WARN_REFERENCESE and __KERNEL_RCSID for assembler files.
 1.4 30-Aug-2006  cherry branches: 1.4.4; 1.4.96; 1.4.106;
remove redundant #defines
 1.3 07-Jul-2006  cherry Towards building libc/arch/ia64
 1.2 03-Jul-2006  cherry misc #define cleanups
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file asm.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file asm.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file asm.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file asm.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.4 03-Sep-2006  yamt sync with head.
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file asm.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.4.106.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.106.1 25-Feb-2013  tls resync with head
 1.4.96.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.4.96.1 23-Jan-2013  yamt sync with head
 1.4.4.2 09-Sep-2006  rpaulo sync with head
 1.4.4.1 30-Aug-2006  rpaulo file asm.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.6.2.1 18-May-2014  rmind sync with head
 1.7.40.1 20-Apr-2020  bouyer Sync with HEAD
 1.7.30.1 21-Apr-2020  martin Sync with HEAD
 1.9.6.1 02-Aug-2025  perseant Sync with HEAD
 1.3 09-Aug-2016  scole Rename some functions so any atomic ops from this file and/or <sys/atomic.h> can be used. May want to pare overlap in the future, but let's leave both options for now
 1.2 08-Aug-2016  scole Import later FreeBSD version, add note about atomic.S which contains similar functions.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.142.1 05-Oct-2016  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file atomic.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file atomic.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file atomic.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file atomic.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file atomic.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file atomic.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.3 06-Oct-2023  skrll Trailing whitespace
 1.2 26-Dec-2019  msaitoh s/lenght/length/
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.166;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.166.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file bootinfo.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file bootinfo.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file bootinfo.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file bootinfo.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bootinfo.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bootinfo.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file bswap.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file bswap.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file bswap.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file bswap.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bswap.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bswap.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.5 15-Nov-2021  skrll Sprinkle const (and fix build)
 1.4 15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.3 23-Sep-2019  skrll Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches
to follow arm and (generic) mips.

Reviewed by christos.
 1.2 15-Sep-2016  jdolecek branches: 1.2.16; 1.2.20;
remove last isolated islands using BUS_SPACE_BARRIER_SYNC and
BUS_SPACE_BARRIER_X_BEFORE_X - these were only ever defined for mips and ia64,
and never actually implemented even there
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.24; 1.1.42; 1.1.46;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.46.1 04-Nov-2016  pgoyette Sync with HEAD
 1.1.42.1 05-Oct-2016  skrll Sync with HEAD
 1.1.24.1 03-Dec-2017  jdolecek update from HEAD
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file bus.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:22 +0000
 1.2.20.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.16.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.4 15-Aug-2017  maya Remove fallback definition for __ELF__.

Failing to define it would've been a toolchain bug, not to be worked
around with a simple redefinition. fortunately, it doesn't appear to happen
 1.3 18-Mar-2014  christos branches: 1.3.6;
Make all __ALIGNBYTES macros return the same type (size_t)
 1.2 20-Jan-2012  joerg branches: 1.2.6; 1.2.10;
Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.116;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.116.1 18-Feb-2012  mrg merge to -current.
 1.1.112.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.1.112.1 17-Apr-2012  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file cdefs.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file cdefs.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file cdefs.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file cdefs.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file cdefs.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file cdefs.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.10.1 18-May-2014  rmind sync with head
 1.2.6.2 03-Dec-2017  jdolecek update from HEAD
 1.2.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.6.1 28-Aug-2017  skrll Sync with HEAD
 1.1 20-Jul-2009  kiyohara branches: 1.1.2;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file clock.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:22 +0000
 1.22 06-Oct-2023  skrll Trailing whitespace
 1.21 31-May-2022  andvar fix various typos in comments, documentation and messages.
 1.20 01-Dec-2019  ad Fix false sharing problems with cpu_info. Identified with tprof(8).
This was a very nice win in my tests on a 48 CPU box.

- Reorganise cpu_data slightly according to usage.
- Put cpu_onproc into struct cpu_info alongside ci_curlwp (now is ci_onproc).
- On x86, put some items in their own cache lines according to usage, like
the IPI bitmask and ci_want_resched.
 1.19 24-Nov-2019  ad Make ci_want_resched a u_int.
 1.18 23-Nov-2019  ad cpu_need_resched():

- Remove all code that should be MI, leaving the bare minimum under arch/.
- Make the required actions very explicit.
- Pass in LWP pointer for convenience.
- When a trap is required on another CPU, have the IPI set it locally.
- Expunge cpu_did_resched().
 1.17 10-Jan-2019  scole consolidate hint@pause in one place. remove mf.a from memory barriers
 1.16 08-Apr-2017  scole branches: 1.16.12; 1.16.14;
Add ci_vhpt to cpu_info
 1.15 08-Feb-2017  christos __empty -> __nothing
 1.14 08-Feb-2017  christos don't define __empty.
 1.13 14-Jan-2017  christos branches: 1.13.2;
define empty bodies for incomplete implementations
 1.12 10-Nov-2013  christos branches: 1.12.6; 1.12.10;
use __unused instead of __USE and void cast to mark iterator variable unused
where needed (from phone)
 1.11 19-Oct-2013  christos make cpu_need_resched() macros consistent; __USE flags
 1.10 01-Oct-2011  chs branches: 1.10.2; 1.10.12; 1.10.16;
fix build errors with gcc 4.5.
 1.9 22-Oct-2009  rmind Avoid #ifndef __NO_CPU_LWP_FREE, only ia64 is missing cpu_lwp_free
routines and it can/should provide stubs.
 1.8 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.7 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.6 28-Apr-2008  martin branches: 1.6.8; 1.6.14;
Remove clause 3 and 4 from TNF licenses
 1.5 20-Mar-2008  kochi branches: 1.5.2; 1.5.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.4 17-Oct-2007  garbled branches: 1.4.12; 1.4.16;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 21-Jul-2007  tsutsui branches: 1.3.6;
- kern_kern_microtime.c is gone, so replace references of it
with new kern/kern_cctr.c in TODO comments
- also replace struct cc_microtime_state member in struct cpu_info
with struct cctr_state defined in <sys/cctr.h>, which is unused yet
in this port
 1.2 16-Feb-2007  ad branches: 1.2.6; 1.2.14; 1.2.16; 1.2.18;
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file cpu.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.5 24-Mar-2008  yamt sync with head.
 1.1.14.4 03-Sep-2007  yamt sync with head.
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file cpu.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file cpu.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file cpu.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file cpu.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file cpu.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.18.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.16.1 07-Aug-2007  matt Sync with HEAD.
 1.2.14.1 03-Oct-2007  garbled Sync with HEAD
 1.2.6.1 20-Aug-2007  ad Sync with HEAD.
 1.3.6.2 23-Mar-2008  matt sync with HEAD
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.4.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.4.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.4.12.1 24-Mar-2008  keiichi sync with head.
 1.5.4.4 11-Mar-2010  yamt sync with head
 1.5.4.3 19-Aug-2009  yamt sync with head.
 1.5.4.2 04-May-2009  yamt sync with head.
 1.5.4.1 16-May-2008  yamt sync with head.
 1.5.2.1 18-May-2008  yamt sync with head.
 1.6.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.10.16.1 18-May-2014  rmind sync with head
 1.10.12.2 03-Dec-2017  jdolecek update from HEAD
 1.10.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.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.12.10.2 26-Apr-2017  pgoyette Sync with HEAD
 1.12.10.1 20-Mar-2017  pgoyette Sync with HEAD
 1.12.6.2 28-Aug-2017  skrll Sync with HEAD
 1.12.6.1 05-Feb-2017  skrll Sync with HEAD
 1.13.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.16.14.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.16.14.1 10-Jun-2019  christos Sync with HEAD
 1.16.12.1 18-Jan-2019  pgoyette Synch with HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 20-Sep-2006  kochi branches: 1.1.2; 1.1.4; 1.1.8; 1.1.58; 1.1.60; 1.1.62;
add cpu_counter.h to compile a kernel
 1.1.62.1 16-May-2008  yamt sync with head.
 1.1.60.1 18-May-2008  yamt sync with head.
 1.1.58.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 20-Sep-2006  yamt file cpu_counter.h was added on branch yamt-lazymbuf on 2006-12-30 20:46:20 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 20-Sep-2006  ad file cpu_counter.h was added on branch newlock2 on 2006-11-18 21:29:22 +0000
 1.1.2.2 22-Oct-2006  yamt sync with head
 1.1.2.1 20-Sep-2006  yamt file cpu_counter.h was added on branch yamt-splraiseipl on 2006-10-22 06:04:49 +0000
 1.4 24-Jul-2010  jruoho Move ACPI_FLUSH_CPU_CACHE() (a.k.a. WBINVD on x86) to MD headers where it
belongs to. Let IA-64 define its own function/instruction instead of
requiring a dummy wbinvd() to satisfy the definition in a MI header.
 1.3 20-Jul-2009  kiyohara branches: 1.3.2; 1.3.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 20-Mar-2008  kochi branches: 1.2.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file cpufunc.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.3 24-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file cpufunc.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file cpufunc.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file cpufunc.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file cpufunc.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file cpufunc.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.4.2 11-Aug-2010  yamt sync with head.
 1.2.4.1 19-Aug-2009  yamt sync with head.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.3.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.5 06-Oct-2023  skrll Trailing whitespace
 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 26-May-2011  joerg branches: 1.3.14;
Introduce DDB_EXPR_FMT and replace the logic around DB_EXPR_T_IS_QUAD.
 1.2 30-Aug-2006  cherry branches: 1.2.4; 1.2.84; 1.2.90;
#include cleanups.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file db_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file db_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file db_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file db_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.3 03-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file db_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.90.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.84.1 31-May-2011  rmind sync with head
 1.2.4.2 09-Sep-2006  rpaulo sync with head
 1.2.4.1 30-Aug-2006  rpaulo file db_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.3.14.1 03-Dec-2017  jdolecek update from HEAD
 1.4 21-Jul-2022  andvar s/Transration/Translation/
 1.3 21-Jul-2022  andvar fix typos in comments and log messages, mainly s/intrrupt/interrupt/.
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file dig64.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file dig64.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file dig64.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file dig64.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file dig64.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file dig64.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.3 30-Aug-2011  bouyer 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.2 23-Nov-2009  pooka 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.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 11-Mar-2010  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file disklabel.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file disklabel.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file disklabel.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file disklabel.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file disklabel.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file disklabel.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.7 20-Aug-2022  riastradh machine/efi.h: Migrate common definitions to dev/efi/efi.h.
 1.6 20-Aug-2022  riastradh ia64/efi.h: Make st_rt/st_cfgtbl pointers, not uint64_t, per spec.
 1.5 20-Aug-2022  riastradh ia64: Make ct_data void *, not uint64_t, as in spec.
 1.4 20-Aug-2022  riastradh ia64: Use uint64_t, not void *, for EFI virtual addresses, as in spec.
 1.3 20-Aug-2022  riastradh ia64/efi.h: Fix whitespace. No functional change intended.
 1.2 20-Aug-2022  riastradh machine/efi.h: Add more memory descriptor attributes.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file efi.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file efi.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file efi.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file efi.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efi.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efi.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 04-Aug-2016  scole branches: 1.1.2; 1.1.4; 1.1.18;
PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 04-Aug-2016  jdolecek file efilib.h was added on branch tls-maxphys on 2017-12-03 11:36:20 +0000
 1.1.4.2 05-Oct-2016  skrll Sync with HEAD
 1.1.4.1 04-Aug-2016  skrll file efilib.h was added on branch nick-nhusb on 2016-10-05 20:55:29 +0000
 1.1.2.2 06-Aug-2016  pgoyette Sync with HEAD
 1.1.2.1 04-Aug-2016  pgoyette file efilib.h was added on branch pgoyette-localcount on 2016-08-06 00:19:05 +0000
 1.5 03-Jun-2023  andvar fix various typos in comments and messages.
 1.4 11-Apr-2019  kamil Fix CVS Id usage
 1.3 06-Nov-2017  christos branches: 1.3.4;
Cleanup and clarify the ELFSIZE mess:

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

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

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

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.2 05-Aug-2016  scole PR port-ia64/51261

Add macro R_TYPE() stub
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142; 1.1.146;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.146.1 06-Aug-2016  pgoyette Sync with HEAD
 1.1.142.1 05-Oct-2016  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file elf_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file elf_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file elf_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file elf_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file elf_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file elf_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.3.4.1 10-Jun-2019  christos Sync with HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file endian.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file endian.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file endian.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file endian.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file endian.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file endian.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file endian_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file endian_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file endian_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file endian_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file endian_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file endian_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.4 30-Oct-2024  riastradh Sprinkle <sys/featuretest.h> where _*_SOURCE macros are consulted.

Otherwise, the feature tests might come out wrong. For example,
header files that check for _NETBSD_SOURCE won't get the default when
no other _*_SOURCE macros are defined; header files that check for
_POSIX_C_SOURCE might miss _XOPEN_SOURCE, which is supposed to imply
a corresponding _POSIX_C_SOURCE.

PR lib/58752: various header files test _*_SOURCE macros but don't
include sys/featuretest.h
 1.3 16-Nov-2019  mrg branches: 1.3.32;
do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version.
 1.2 23-Mar-2017  chs branches: 1.2.4; 1.2.12; 1.2.16; 1.2.20;
expose the BSD/linux fenv extensions in libm on ia64 too.
 1.1 23-Feb-2017  scole branches: 1.1.2;
Add fenv.h for ia64, imported from FreeBSD, compile tested only.
 1.1.2.3 26-Apr-2017  pgoyette Sync with HEAD
 1.1.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.1.2.1 23-Feb-2017  pgoyette file fenv.h was added on branch pgoyette-localcount on 2017-03-20 06:57:15 +0000
 1.2.20.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2.16.2 03-Dec-2017  jdolecek update from HEAD
 1.2.16.1 23-Mar-2017  jdolecek file fenv.h was added on branch tls-maxphys on 2017-12-03 11:36:20 +0000
 1.2.12.2 28-Aug-2017  skrll Sync with HEAD
 1.2.12.1 23-Mar-2017  skrll file fenv.h was added on branch nick-nhusb on 2017-08-28 17:51:42 +0000
 1.2.4.2 21-Apr-2017  bouyer Sync with HEAD
 1.2.4.1 23-Mar-2017  bouyer file fenv.h was added on branch bouyer-socketcan on 2017-04-21 16:53:29 +0000
 1.3.32.1 02-Aug-2025  perseant Sync with HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file float.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file float.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file float.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file float.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file float.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file float.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file fpu.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file fpu.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file fpu.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file fpu.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file fpu.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file fpu.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file frame.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file frame.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file frame.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file frame.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file frame.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file frame.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.4 06-Oct-2023  skrll Trailing whitespace
 1.3 08-Aug-2016  scole Import FreeBSD update
 1.2 20-Jul-2009  kiyohara branches: 1.2.22; 1.2.40;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file ia64_cpu.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file ia64_cpu.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file ia64_cpu.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file ia64_cpu.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ia64_cpu.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ia64_cpu.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.40.1 05-Oct-2016  skrll Sync with HEAD
 1.2.22.1 03-Dec-2017  jdolecek update from HEAD
 1.1 26-Dec-2012  martin branches: 1.1.2; 1.1.6;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 26-Dec-2012  tls file ieee.h was added on branch tls-maxphys on 2013-02-25 00:28:45 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 26-Dec-2012  yamt file ieee.h was added on branch yamt-pagecache on 2013-01-23 00:05:50 +0000
 1.2 23-Feb-2017  scole Add fenv.h for ia64, imported from FreeBSD, compile tested only.
 1.1 26-Dec-2012  martin branches: 1.1.2; 1.1.6; 1.1.18; 1.1.22; 1.1.26;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.1.26.1 21-Apr-2017  bouyer Sync with HEAD
 1.1.22.1 20-Mar-2017  pgoyette Sync with HEAD
 1.1.18.1 28-Aug-2017  skrll Sync with HEAD
 1.1.6.3 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 26-Dec-2012  tls file ieeefp.h was added on branch tls-maxphys on 2013-02-25 00:28:45 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 26-Dec-2012  yamt file ieeefp.h was added on branch yamt-pagecache on 2013-01-23 00:05:50 +0000
 1.4 13-Aug-2014  matt Include <sys/common_int_const.h> if __INTMAX_C_SUFFIX__ is defined.
 1.3 29-May-2010  tnozaki branches: 1.3.18;
fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.
 1.2 28-Apr-2008  martin branches: 1.2.20; 1.2.22;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.2 11-Aug-2010  yamt sync with head.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file int_const.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file int_const.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file int_const.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file int_const.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file int_const.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file int_const.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.22.1 30-May-2010  rmind sync with head
 1.2.20.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.3.18.1 03-Dec-2017  jdolecek update from HEAD
 1.3 13-Aug-2014  matt include <sys/common_int_fmtio.h> if __INTPTR_FMTd__ is defined
 1.2 28-Apr-2008  martin branches: 1.2.44;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file int_fmtio.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file int_fmtio.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file int_fmtio.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file int_fmtio.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file int_fmtio.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file int_fmtio.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.1 03-Dec-2017  jdolecek update from HEAD
 1.6 06-Oct-2023  skrll Trailing whitespace
 1.5 13-Aug-2014  matt Include <sys/common_init_limits.h> if __SIG_ATOMIC_MAX__ is defined.
 1.4 28-Apr-2008  martin branches: 1.4.44;
Remove clause 3 and 4 from TNF licenses
 1.3 17-Oct-2007  garbled branches: 1.3.16; 1.3.18; 1.3.20;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 31-Aug-2007  drochner Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.30; 1.1.38; 1.1.44; 1.1.48; 1.1.50;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.50.1 06-Nov-2007  matt sync with HEAD
 1.1.48.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.1.44.1 03-Sep-2007  skrll Sync with HEAD.
 1.1.38.1 03-Oct-2007  garbled Sync with HEAD
 1.1.30.1 09-Oct-2007  ad Sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file int_limits.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.3 03-Sep-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file int_limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file int_limits.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file int_limits.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file int_limits.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file int_limits.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.3.20.1 16-May-2008  yamt sync with head.
 1.3.18.1 18-May-2008  yamt sync with head.
 1.3.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.44.1 03-Dec-2017  jdolecek update from HEAD
 1.3 13-Aug-2014  matt include <sys/common_int_mwgwtypes.h> if __UINT_FAST64_TYPE__ is defined.
 1.2 28-Apr-2008  martin branches: 1.2.44;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file int_mwgwtypes.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file int_mwgwtypes.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file int_mwgwtypes.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file int_mwgwtypes.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file int_mwgwtypes.h was added on branch elad-kernelauth on 2006-04-19 02:32:59 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file int_mwgwtypes.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.1 03-Dec-2017  jdolecek update from HEAD
 1.2 13-Aug-2014  matt Include <sys/common_int_types.h> if __UINTPTR_TYPE__ is defined.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file int_types.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file int_types.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file int_types.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file int_types.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file int_types.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file int_types.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.9 20-May-2025  bouyer Provide splsoftbio()
 1.8 16-Nov-2018  jmcneill branches: 1.8.30; 1.8.36;
Add intr_establish_xname stub
 1.7 13-Dec-2017  scole branches: 1.7.2; 1.7.4;
add intr_string() stub for acpi_util.c:acpi_intr_string() so kernel will still compile
 1.6 08-Apr-2017  scole Add ia64_handle_intr() declaration
 1.5 20-Jul-2009  kiyohara branches: 1.5.22; 1.5.40; 1.5.44; 1.5.48;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 20-Mar-2008  kochi branches: 1.4.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.3 16-Feb-2007  ad branches: 1.3.24; 1.3.40; 1.3.44;
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
 1.2 21-Dec-2006  yamt merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20; 1.1.22;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.22.4 04-Nov-2006  yamt make makeiplcookie/splraiseipl inline.
 1.1.22.3 04-Nov-2006  yamt makeiplcookie: add a missing parameter name.
 1.1.22.2 04-Nov-2006  yamt define ipl_cookie_t correctly.
 1.1.22.1 04-Nov-2006  yamt add dummy implementations of splraiseipl/makeiplcookie.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file intr.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:29 +0000
 1.1.18.1 12-Jan-2007  ad Sync with head.
 1.1.14.5 24-Mar-2008  yamt sync with head.
 1.1.14.4 26-Feb-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file intr.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file intr.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file intr.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file intr.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file intr.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.3.44.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.40.1 24-Mar-2008  keiichi sync with head.
 1.3.24.1 23-Mar-2008  matt sync with HEAD
 1.4.4.1 19-Aug-2009  yamt sync with head.
 1.5.48.1 21-Apr-2017  bouyer Sync with HEAD
 1.5.44.1 26-Apr-2017  pgoyette Sync with HEAD
 1.5.40.1 28-Aug-2017  skrll Sync with HEAD
 1.5.22.1 03-Dec-2017  jdolecek update from HEAD
 1.7.4.1 10-Jun-2019  christos Sync with HEAD
 1.7.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.8.36.1 02-Aug-2025  perseant Sync with HEAD
 1.8.30.1 28-May-2025  martin Pull up following revision(s) (requested by bouyer in ticket #1121):

sys/arch/ia64/include/intr.h: revision 1.9
sys/uvm/uvm_pdpolicy_clock.c: revision 1.41
sys/sys/spl.h: revision 1.11
sys/uvm/uvm_pdpolicy_clock.c: revision 1.42
sys/arch/sparc64/include/psl.h: revision 1.66

uvmpdpol_pagerealize(): ucpu->pdqhead is used by a single CPU; but

kpreempt_disable() isn't enough to guard against concurent access;
interrupts also need to be disabled.

If my analysis is correct, the only place using ucpu->pdqhead which
can be called from interrupt context it uvmpdpol_pagerealize(), and only
from softbio().

So:
- introduce splsoftbio() in sys/spl.h
- protect all accesses to ucpu->pdqhead with splsoftbio()
fixes pr kern/59412: uvmpdpol_pagerealize() queue index out of bound

Provide splsoftbio()

Remove the redundant kpreempt_disable/kpreempt_enable now that we're
running at splsoftbio. Pointed out by thorpej@
 1.2 20-Jun-2014  joerg Don't provide intrnames or intrcnt, GC intrcnt.h. IA64 has evcnt(9)
support hooked up, so no need for the legacy interface.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.138;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.138.1 10-Aug-2014  tls Rebase.
 1.1.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file intrcnt.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file intrcnt.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file intrcnt.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file intrcnt.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file intrcnt.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file intrcnt.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.4 06-Oct-2023  skrll Trailing whitespace
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 20-Mar-2008  kochi branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12;
reorder includes, fix indentation.
 1.1 20-Mar-2008  kochi Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2.12.1 16-May-2008  yamt sync with head.
 1.2.10.1 18-May-2008  yamt sync with head.
 1.2.8.3 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 03-Apr-2008  mjf Sync with HEAD.
 1.2.8.1 20-Mar-2008  mjf file intrdefs.h was added on branch mjf-devfs2 on 2008-04-03 12:42:19 +0000
 1.2.6.2 24-Mar-2008  yamt sync with head.
 1.2.6.1 20-Mar-2008  yamt file intrdefs.h was added on branch yamt-lazymbuf on 2008-03-24 09:38:39 +0000
 1.2.4.2 24-Mar-2008  keiichi sync with head.
 1.2.4.1 20-Mar-2008  keiichi file intrdefs.h was added on branch keiichi-mipv6 on 2008-03-24 07:15:00 +0000
 1.2.2.2 23-Mar-2008  matt sync with HEAD
 1.2.2.1 20-Mar-2008  matt file intrdefs.h was added on branch matt-armv6 on 2008-03-23 02:04:08 +0000
 1.3 03-Apr-2017  scole com_isa uses isa_intr_establish_xname now, fixes GENERIC compilation
 1.2 18-Oct-2016  jdolecek branches: 1.2.2;
add isa_intr_establish_xname() to MD isa headers so that it can be used
by MI drivers
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.24; 1.1.42; 1.1.46;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.46.2 26-Apr-2017  pgoyette Sync with HEAD
 1.1.46.1 04-Nov-2016  pgoyette Sync with HEAD
 1.1.42.2 28-Aug-2017  skrll Sync with HEAD
 1.1.42.1 05-Dec-2016  skrll Sync with HEAD
 1.1.24.1 03-Dec-2017  jdolecek update from HEAD
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file isa_machdep.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +0000
 1.2.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.11 30-Oct-2024  riastradh Sprinkle <sys/featuretest.h> where _*_SOURCE macros are consulted.

Otherwise, the feature tests might come out wrong. For example,
header files that check for _NETBSD_SOURCE won't get the default when
no other _*_SOURCE macros are defined; header files that check for
_POSIX_C_SOURCE might miss _XOPEN_SOURCE, which is supposed to imply
a corresponding _POSIX_C_SOURCE.

PR lib/58752: various header files test _*_SOURCE macros but don't
include sys/featuretest.h
 1.10 16-Mar-2024  christos branches: 1.10.2;
make all QUAD constants look the same.
 1.9 21-Jan-2019  dholland Fix wrong scoping of {U,}LLONG_MAX. More cases, not just amd64.
PR 53298 from Roberto E. Vargas Caballero.
 1.8 21-Apr-2014  matt branches: 1.8.26; 1.8.28;
Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
 1.7 11-Apr-2013  christos branches: 1.7.4; 1.7.8;
add missing SSIZE_MIN
 1.6 28-Mar-2012  christos branches: 1.6.2;
- Normalize inclusion protection (remove)
- Move CHAR_{MIN,MAX} to a common file.
- Fix broken comments
 1.5 07-Jun-2010  tnozaki branches: 1.5.8; 1.5.12;
1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
prepareing for next libc major crunk.
4. bump libc minor version.
 1.4 17-Oct-2007  garbled branches: 1.4.20; 1.4.40; 1.4.42;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 31-Aug-2007  drochner Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
 1.2 14-May-2006  elad branches: 1.2.4; 1.2.8; 1.2.14; 1.2.24; 1.2.32; 1.2.38; 1.2.42; 1.2.44;
integrate kauth.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file limits.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file limits.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file limits.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.1 06-Nov-2007  matt sync with HEAD
 1.2.42.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.2.38.1 03-Sep-2007  skrll Sync with HEAD.
 1.2.32.1 03-Oct-2007  garbled Sync with HEAD
 1.2.24.1 09-Oct-2007  ad Sync with head.
 1.2.14.2 09-Sep-2006  rpaulo sync with head
 1.2.14.1 14-May-2006  rpaulo file limits.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.2.8.3 03-Sep-2007  yamt sync with head.
 1.2.8.2 21-Jun-2006  yamt sync with head.
 1.2.8.1 14-May-2006  yamt file limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.2.4.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.4.1 14-May-2006  tron file limits.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.4.42.1 03-Jul-2010  rmind sync with head
 1.4.40.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.4.20.1 11-Aug-2010  yamt sync with head.
 1.5.12.1 05-Apr-2012  mrg sync to latest -current.
 1.5.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.5.8.1 17-Apr-2012  yamt sync with head
 1.6.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.2.1 23-Jun-2013  tls resync from head
 1.7.8.1 10-Aug-2014  tls Rebase.
 1.7.4.1 18-May-2014  rmind sync with head
 1.8.28.1 10-Jun-2019  christos Sync with HEAD
 1.8.26.1 26-Jan-2019  pgoyette Sync with HEAD
 1.10.2.1 02-Aug-2025  perseant Sync with HEAD
 1.4 06-Oct-2023  skrll Trailing whitespace
 1.3 06-Aug-2014  joerg Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
 1.2 28-Apr-2008  martin branches: 1.2.44; 1.2.60;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file loadfile_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file loadfile_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file loadfile_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file loadfile_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file loadfile_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file loadfile_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.60.1 10-Aug-2014  tls Rebase.
 1.2.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10 06-Oct-2023  skrll Trailing whitespace
 1.9 12-Feb-2022  riastradh __cpu_simple_lock(9): Omit needless barriers in init.

It is, and always has been, the caller's responsibility to ensure the
lock is initialized before it can be used -- otherwise the memory
could hold garbage; it is nonsensical to even attempt locking
operations on it before initialization.

So there's no need to issue explicit barriers here. The barrier
seems to have been introduced in sys/arch/alpha/alpha/lock_machdep.c
rev. 1.1 (since moved to inline asm in alpha/include/lock.h) and then
copied & pasted into several other architectures.
 1.8 29-Nov-2019  riastradh Nix mb_* on ia64.
 1.7 10-Jan-2019  scole consolidate hint@pause in one place. remove mf.a from memory barriers
 1.6 17-Sep-2017  christos branches: 1.6.2; 1.6.4;
more const.
 1.5 05-Aug-2016  scole PR port-ia64/51261

Add mb_read mb_write mb_memory
 1.4 20-Jul-2009  kiyohara branches: 1.4.22; 1.4.40; 1.4.44;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 20-Mar-2008  kochi branches: 1.2.2; 1.2.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file lock.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.3 24-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file lock.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file lock.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file lock.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file lock.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file lock.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.4.2 19-Aug-2009  yamt sync with head.
 1.2.4.1 16-May-2008  yamt sync with head.
 1.2.2.1 18-May-2008  yamt sync with head.
 1.4.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.40.1 05-Oct-2016  skrll Sync with HEAD
 1.4.22.1 03-Dec-2017  jdolecek update from HEAD
 1.6.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.6.4.1 10-Jun-2019  christos Sync with HEAD
 1.6.2.1 18-Jan-2019  pgoyette Synch with HEAD
 1.2 04-Nov-2024  christos Undo previous lwp.h change.
 1.1 03-Nov-2024  christos Split __lwp_getprivate_fast and __lwp_*tcb from mcontext.h into a separate
lwp.h file.
 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:46 +0000
 1.1 26-Dec-2012  martin branches: 1.1.2; 1.1.6;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 26-Dec-2012  tls file math.h was added on branch tls-maxphys on 2013-02-25 00:28:45 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 26-Dec-2012  yamt file math.h was added on branch yamt-pagecache on 2013-01-23 00:05:50 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file mca_machdep.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file mca_machdep.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file mca_machdep.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file mca_machdep.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file mca_machdep.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file mca_machdep.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.16 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.15 04-Nov-2024  christos Undo previous lwp.h change.
 1.14 03-Nov-2024  christos Split __lwp_getprivate_fast and __lwp_*tcb from mcontext.h into a separate
lwp.h file.
 1.13 18-May-2024  christos branches: 1.13.2;
allow things to compile again
 1.12 29-Jun-2020  scole Fix for last checkin, don't try use non-existent register from a (currently) dummy struct
 1.11 29-Jun-2020  scole Allow kernel to compile by preventing "error: stack usage is ..."
too-large errors. What was there previously was not correct and this
will need to be revisited for debugger to ever become functional
anyway.
 1.10 27-Dec-2019  kamil Harmonize the namespace of fast TLS base pointer getter functions

Protect __lwp_getprivate_fast() with _RTLD_SOURCE, _LIBC_SOURCE and
__LIBPTHREAD_SOURCE__.

Include in this namespace <sys/tcl.h> and use __BEGIN_DECLS/__END_DECLS
for the sake of consistency.
 1.9 17-Jun-2019  kamil Enhance ia64/mcontext defines

Stop mapping _UC_MACHINE_FP() to a register as it is not supported by CPU.
There is need to use in code __builtin_frame_address() inlined in the code
to get the frame pointer.

Return a constant value 0 instead. New value does not pretend to return
a meaningful value.

While there, fix the definition of _UC_MACHINE_SET_PC as it didn't contain
the pc argument in the definition.
 1.8 26-Apr-2018  scole branches: 1.8.2;
Update some of the _UC_MACHINE* macros even though gregs[] aren't tied to anything yet
 1.7 27-Feb-2018  kamil branches: 1.7.2;
Add a dummy implementation of _UC_MACHINE_INTRV() for ia64

This fixes a build problem in src/tests/lib/libc/sys/t_ucontext.c.

This needs to be revisited once the port will get more mature.
 1.6 15-Feb-2018  kamil Introduce _UC_MACHINE_FP() as a macro

_UC_MACHINE_FP() is a helper macro to extract from mcontext a frame pointer.

Don't rely on this interface as a compiler might strip frame pointer or
optimize it making this interface unreliable.


For hppa assume a small frame context, for larger frames FP might be located
in a different register (4 instead of 3).

For ia64 there is no strict frame pointer, and registers might rotate.
Reuse 79 following:

./gcc/config/ia64/ia64.h:#define HARD_FRAME_POINTER_REGNUM LOC_REG (79)

Once ia64 will mature, this should be revisited.

A macro can encapsulate a real function for extracting Frame Pointer on
more complex CPUs / ABIs.


For the remaining CPUs, reuse standard register as defined in appropriate ABI.

The direct users of this macro are LLVM and GCC with Sanitizers.

Proposed on tech-userlevel@.

Sponsored by <The NetBSD Foundation>
 1.5 05-Aug-2016  scole branches: 1.5.8;
PR port-ia64/51261

Add __fpregset_t __gregset_t _UC_MACHINE_PC stubs
 1.4 30-Jun-2016  mrg branches: 1.4.2;
add a definition for _UC_MACHINE_PC which libasan wants.

XXX: i'm not 100% sure i picked the right register.
 1.3 26-Dec-2012  martin branches: 1.3.14;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.2 28-Apr-2008  martin branches: 1.2.34; 1.2.44;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file mcontext.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file mcontext.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file mcontext.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file mcontext.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file mcontext.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file mcontext.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.2 03-Dec-2017  jdolecek update from HEAD
 1.2.44.1 25-Feb-2013  tls resync with head
 1.2.34.1 23-Jan-2013  yamt sync with head
 1.3.14.2 05-Oct-2016  skrll Sync with HEAD
 1.3.14.1 09-Jul-2016  skrll Sync with HEAD
 1.4.2.1 06-Aug-2016  pgoyette Sync with HEAD
 1.5.8.3 21-Mar-2018  martin Pull up the following, requested by kamil in ticket #552:

external/gpl3/gcc{.old}/dist/libsanitizer/asan/asan_linux.cc 1.4
sys/arch/aarch64/include/mcontext.h 1.2
sys/arch/alpha/include/mcontext.h 1.9
sys/arch/amd64/include/mcontext.h 1.19
sys/arch/arm/include/mcontext.h 1.19
sys/arch/hppa/include/mcontext.h 1.9
sys/arch/i386/include/mcontext.h 1.14
sys/arch/ia64/include/mcontext.h 1.6
sys/arch/m68k/include/mcontext.h 1.10
sys/arch/mips/include/mcontext.h 1.22
sys/arch/or1k/include/mcontext.h 1.2
sys/arch/powerpc/include/mcontext.h 1.18
sys/arch/riscv/include/mcontext.h 1.5
sys/arch/sh3/include/mcontext.h 1.11
sys/arch/sparc/include/mcontext.h 1.14-1.17
sys/arch/sparc64/include/mcontext.h 1.10
sys/arch/vax/include/mcontext.h 1.9
tests/lib/libc/sys/Makefile 1.50
tests/lib/libc/sys/t_ucontext.c 1.2-1.5
sys/arch/hppa/include/mcontext.h 1.10
sys/arch/ia64/include/mcontext.h 1.7

- Introduce _UC_MACHINE_FP(). _UC_MACHINE_FP() is a helper
macro to extract from mcontext a frame pointer.
- Add new tests in lib/libc/sys/t_ucontext:
* ucontext_sp (testing _UC_MACHINE_SP)
* ucontext_fp (testing _UC_MACHINE_FP)
* ucontext_pc (testing _UC_MACHINE_PC)
* ucontext_intrv (testing _UC_MACHINE_INTRV)

Add a dummy implementation of _UC_MACHINE_INTRV() for ia64.

Implement _UC_MACHINE_INTRV() for hppa.

Make the t_ucontext.c test more portable.

We now have _UC_MACHINE_FP.
 1.5.8.2 26-Feb-2018  snj revert ticket 552, which broke the build
 1.5.8.1 25-Feb-2018  snj Pull up following revision(s) (requested by kamil in ticket #552):
sys/arch/aarch64/include/mcontext.h: 1.2
sys/arch/alpha/include/mcontext.h: 1.9
sys/arch/amd64/include/mcontext.h: 1.19
sys/arch/arm/include/mcontext.h: 1.19
sys/arch/hppa/include/mcontext.h: 1.9
sys/arch/i386/include/mcontext.h: 1.14
sys/arch/ia64/include/mcontext.h: 1.6
sys/arch/m68k/include/mcontext.h: 1.10
sys/arch/mips/include/mcontext.h: 1.22
sys/arch/or1k/include/mcontext.h: 1.2
sys/arch/powerpc/include/mcontext.h: 1.18
sys/arch/riscv/include/mcontext.h: 1.5
sys/arch/sh3/include/mcontext.h: 1.11
sys/arch/sparc/include/mcontext.h: 1.14-1.17
sys/arch/sparc64/include/mcontext.h: 1.10
sys/arch/vax/include/mcontext.h: 1.9
tests/lib/libc/sys/Makefile: 1.50
tests/lib/libc/sys/t_ucontext.c: 1.2
Introduce _UC_MACHINE_FP() as a macro
_UC_MACHINE_FP() is a helper macro to extract from mcontext a frame pointer.
Don't rely on this interface as a compiler might strip frame pointer or
optimize it making this interface unreliable.
For hppa assume a small frame context, for larger frames FP might be located
in a different register (4 instead of 3).
For ia64 there is no strict frame pointer, and registers might rotate.
Reuse 79 following:
./gcc/config/ia64/ia64.h:#define HARD_FRAME_POINTER_REGNUM LOC_REG (79)
Once ia64 will mature, this should be revisited.
A macro can encapsulate a real function for extracting Frame Pointer on
more complex CPUs / ABIs.
For the remaining CPUs, reuse standard register as defined in appropriate ABI.
The direct users of this macro are LLVM and GCC with Sanitizers.
Proposed on tech-userlevel@.
Sponsored by <The NetBSD Foundation>
--
Improve _UC_MACHINE_FP() for SPARC/SPARC64
Introduce a static inline function _uc_machine_fp() that contains improved
caluclation of a frame pointer.
Algorithm:
uptr *stk_ptr;
# if defined (__arch64__)
stk_ptr = (uptr *) (*sp + 2047);
# else
stk_ptr = (uptr *) *sp;
# endif
*bp = stk_ptr[15];
Noted by <mrg>
--
Make _UC_MACHINE_FP() compile again and fix it so that it does not add
the offset twice.
--
fix _UC_MACHINE32_FP() -- use 32 bit pointer value so that [15] is
the right offset. do this by using __greg32_t, which is only in
the sparc64 version, and these are only useful there, so move them.
--
Add new tests in lib/libc/sys/t_ucontext
New tests:
- ucontext_sp
- ucontext_fp
- ucontext_pc
- ucontext_intrv
They test respectively:
- _UC_MACHINE_SP
- _UC_MACHINE_FP
- _UC_MACHINE_PC
- _UC_MACHINE_INTRV
These tests attempt to access and print the values from ucontext, without
interpreting the values.
This is a follow up of the _UC_MACHINE_FP() introduction.
These tests use PRIxREGISTER, and require to be built with -D_KERNTYPES.
Sponsored by <The NetBSD Foundation>
 1.7.2.1 02-May-2018  pgoyette Synch with HEAD
 1.8.2.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.8.2.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.13.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.2 08-Apr-2017  scole branches: 1.2.12; 1.2.14;
Add more funcs from FreeBSD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.122; 1.1.142; 1.1.146; 1.1.150;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.150.1 21-Apr-2017  bouyer Sync with HEAD
 1.1.146.1 26-Apr-2017  pgoyette Sync with HEAD
 1.1.142.1 28-Aug-2017  skrll Sync with HEAD
 1.1.122.1 03-Dec-2017  jdolecek update from HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file md_var.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file md_var.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file md_var.h was added on branch peter-altq on 2006-05-24 15:47:59 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file md_var.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file md_var.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file md_var.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.14.1 10-Jun-2019  christos Sync with HEAD
 1.2.12.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.9 12-Jul-2023  riastradh machine/mutex.h: Sprinkle sys/types.h, omit machine/lock.h.

Turns out machine/lock.h is not needed for __cpu_simple_lock_t, which
always comes from sys/types.h. And, really, sys/types.h (or at least
sys/stdint.h) is needed for uintN_t and uintptr_t.
 1.8 09-Jul-2023  riastradh machine/mutex.h: Sprinkle includes so this can be used by crash(8).

XXX pullup-10
 1.7 06-Apr-2022  riastradh branches: 1.7.4;
Nix trailing whitespace in files of membars, atomics, and lock stubs.

Will be touching many of these files soon for functional changes.

No functional change intended.
 1.6 25-Aug-2021  thorpej - In kern_mutex.c, if MUTEX_CAS() is not defined, define it in terms of
atomic_cas_ulong().
- For arm, ia64, m68k, mips, or1k, riscv, vax: don't define our own
MUTEX_CAS(), as they either use atomic_cas_ulong() or equivalent
(atomic_cas_uint() on m68k).
- For alpha and sparc64, don't define MUTEX_CAS() in terms of their own
_lock_cas(), which has its own memory barriers; the call sites in
kern_mutex.c already have the appropriate memory barrier calls. Thus,
alpha and sparc64 can use default definition.
- For sh3, don't define MUTEX_CAS() in terms of its own _lock_cas();
atomic_cas_ulong() is strong-aliased to _lock_cas(), therefore defining
our own MUTEX_CAS() is redundant.

Per thread:
https://mail-index.netbsd.org/tech-kern/2021/07/25/msg027562.html
 1.5 29-Nov-2019  riastradh Nix now-unused definitions of MUTEX_GIVE/MUTEX_RECEIVE.
 1.4 20-Jul-2009  kiyohara branches: 1.4.64;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 20-Mar-2008  kochi branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12;
reorder includes, fix indentation.
 1.1 20-Mar-2008  kochi Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2.12.2 19-Aug-2009  yamt sync with head.
 1.2.12.1 16-May-2008  yamt sync with head.
 1.2.10.1 18-May-2008  yamt sync with head.
 1.2.8.3 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 03-Apr-2008  mjf Sync with HEAD.
 1.2.8.1 20-Mar-2008  mjf file mutex.h was added on branch mjf-devfs2 on 2008-04-03 12:42:19 +0000
 1.2.6.2 24-Mar-2008  yamt sync with head.
 1.2.6.1 20-Mar-2008  yamt file mutex.h was added on branch yamt-lazymbuf on 2008-03-24 09:38:39 +0000
 1.2.4.2 24-Mar-2008  keiichi sync with head.
 1.2.4.1 20-Mar-2008  keiichi file mutex.h was added on branch keiichi-mipv6 on 2008-03-24 07:15:00 +0000
 1.2.2.2 23-Mar-2008  matt sync with HEAD
 1.2.2.1 20-Mar-2008  matt file mutex.h was added on branch matt-armv6 on 2008-03-23 02:04:08 +0000
 1.4.64.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7.4.1 09-Aug-2023  martin Pull up following revision(s) (requested by maya in ticket #316):

sys/arch/m68k/include/mutex.h: revision 1.13
sys/arch/arm/include/cpu.h: revision 1.125
sys/arch/sun68k/include/intr.h: revision 1.21
sys/arch/arm/include/mutex.h: revision 1.28
sys/sys/rwlock.h: revision 1.18
sys/arch/powerpc/include/mutex.h: revision 1.7
sys/arch/arm/include/mutex.h: revision 1.29
sys/arch/powerpc/include/mutex.h: revision 1.8
sys/uvm/uvm_param.h: revision 1.42
sys/sys/ksem.h: revision 1.16
sys/arch/x86/include/mutex.h: revision 1.10
sys/sys/proc.h: revision 1.372
sys/sys/ksem.h: revision 1.17
sys/arch/ia64/include/mutex.h: revision 1.8
sys/arch/evbarm/include/intr.h: revision 1.29
sys/sys/lua.h: revision 1.9
sys/arch/next68k/include/intr.h: revision 1.23
sys/arch/ia64/include/mutex.h: revision 1.9
sys/arch/hp300/include/intr.h: revision 1.35
sys/arch/hp300/include/intr.h: revision 1.36
sys/arch/sparc/include/cpu.h: revision 1.111
sys/arch/hppa/include/mutex.h: revision 1.16
sys/arch/vax/include/intr.h: revision 1.31
sys/arch/hppa/include/mutex.h: revision 1.17
sys/arch/news68k/include/intr.h: revision 1.28
sys/arch/hppa/include/mutex.h: revision 1.18
sys/arch/hppa/include/intr.h: revision 1.3
sys/arch/hppa/include/mutex.h: revision 1.19
sys/arch/hppa/include/intr.h: revision 1.4
sys/sys/sched.h: revision 1.92
sys/opencrypto/cryptodev.h: revision 1.51
sys/arch/vax/include/mutex.h: revision 1.20
sys/arch/sparc64/include/mutex.h: revision 1.10
sys/arch/ia64/include/sapicvar.h: revision 1.2
sys/arch/riscv/include/mutex.h: revision 1.5
sys/arch/amiga/dev/grfabs_cc.c: revision 1.39
sys/external/bsd/drm2/include/linux/idr.h: revision 1.11
sys/arch/riscv/include/mutex.h: revision 1.6
sys/ddb/files.ddb: revision 1.16
sys/arch/mac68k/include/intr.h: revision 1.32
share/man/man4/ddb.4: revision 1.203
sys/ddb/db_command.c: revision 1.183
sys/arch/mips/include/mutex.h: revision 1.10
sys/ddb/db_command.c: revision 1.184
sys/arch/x68k/include/intr.h: revision 1.22
sys/arch/sparc/include/psl.h: revision 1.51
sys/arch/or1k/include/mutex.h: revision 1.4
sys/arch/mips/include/mutex.h: revision 1.11
sys/arch/arm/xscale/pxa2x0_intr.h: revision 1.16
sys/arch/sparc64/include/cpu.h: revision 1.134
sys/arch/sparc/include/psl.h: revision 1.52
sys/arch/or1k/include/mutex.h: revision 1.5
sys/arch/mvme68k/include/intr.h: revision 1.22
sys/arch/luna68k/include/intr.h: revision 1.16
external/cddl/osnet/sys/sys/kcondvar.h: revision 1.6
sys/arch/sparc/include/mutex.h: revision 1.12
sys/arch/sparc/include/mutex.h: revision 1.13
sys/arch/usermode/include/mutex.h: revision 1.5
sys/arch/usermode/include/mutex.h: revision 1.6
sys/kern/kern_core.c: revision 1.38
usr.sbin/crash/Makefile: revision 1.49
sys/arch/amiga/include/intr.h: revision 1.23
sys/arch/alpha/include/mutex.h: revision 1.12
sys/arch/alpha/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.16
sys/ddb/ddb.h: revision 1.6
sys/arch/sparc64/include/mutex.h: revision 1.8
sys/arch/sh3/include/mutex.h: revision 1.12
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.17
sys/ddb/db_syncobj.c: revision 1.1
sys/arch/vax/include/mutex.h: revision 1.18
sys/arch/sparc64/include/psl.h: revision 1.63
sys/arch/sparc64/include/mutex.h: revision 1.9
sys/arch/sh3/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/obio.c: revision 1.13
sys/arch/atari/include/intr.h: revision 1.23
sys/ddb/db_syncobj.c: revision 1.2
sys/arch/vax/include/mutex.h: revision 1.19
sys/arch/evbarm/g42xxeb/obio.c: revision 1.14
sys/arch/evbarm/g42xxeb/obio.c: revision 1.15
sys/arch/cesfic/include/intr.h: revision 1.14
sys/ddb/db_syncobj.h: revision 1.1
sys/arch/x86/include/cpu.h: revision 1.134
sys/arch/evbarm/g42xxeb/obio.c: revision 1.16
sys/arch/cesfic/include/intr.h: revision 1.15
sys/arch/arm/xscale/pxa2x0_intr.c: revision 1.26
sys/sys/cpu_data.h: revision 1.54
sys/arch/m68k/include/mutex.h: revision 1.12
sys/arch/ia64/acpi/madt.c: revision 1.6

sys/rwlock.h: Make this more self-contained for bool.

machine/mutex.h: Sprinkle includes so this can be used by crash(8).

ddb: New `show all tstiles' command.
Shows who's waiting for which locks and what the owner is up to.

Include psl.h for ipl_cookie_t if __MUTEX_PRIVATE

sys: Rip <sys/resourcevar.h> out of <uvm/uvm_param.h>.

And thus out of <sys/param.h>, which is exceedingly overused and
fragile and delenda est.

Should fix (some) issues with the recent inclusion of machine/lock.h
in various machine/mutex.h files.

arm/mutex.h: Need machine/intr.h, machine/lock.h.

For ipl_cookie_t and __cpu_simple_lock_t.
evbarm/intr.h: Define ipl_cookie_t before including ARM_INTR_IMPL.

Otherwise arm/mutex.h doesn't work, due to a cyclic dependency which
should really be fixed.
opencrypto/cryptodev.h: Fix includes.
- Move sys/condvar.h under #ifdef _KERNEL.
- Add some other necessary includes and forward declarations.
- Sort.

hp300/intr.h: Fix missing includes.
linux/idr.h: Need <sys/mutex.h> for kmutex_t.
amiga/intr.h: Don't define spl*() functions if !_KERNEL.

This is used by crash(8) now, and what's important is ipl_cookie_t.
cesfic/intr.h: Expose ipl_cookie_t to userland for crash(8).
cesfic/intr.h: Expose ipl_cookie_t to userland only with _KMEMUSER.

Probably not necessary but let's be a little more cautious about
this.

atari/intr.h: Expose ipl_cookie_t with _KMEMUSER for crash(8).

arm/cpu.h: Need sys/param.h for COHERENCY_UNIT.

Nix machine/param.h -- not meant to be used directly, pulled in by
sys/param.h.

Move the definition of ipl_cookie_t out of the kernel-only sections,
some _KMEMUSER applications need it.

ddb: Cast pointer to uintptr_t first before db_expr_t.

hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

luna68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

mvme68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

news68k/intr.h: Fix includes. Put some definitions under _KERNEL.

next68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

sys/ksem.h: Hack around fstat(8) abuse of _KERNEL.

sun68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

vax/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

x68k/intr.h: Put functions under _KERNEL so crash(8) can use this.

Make ipl_cookie_t visible for _KMEMUSER userland applications.

fix editor mishap in previous

Explicitly include <sys/mutex.h> for kmutex_t.

Replace kmutex_t * (which may be undefined here) with struct kmutex *,
suggested by Taylor.

hp300/intr.h: Put most of this under #ifdef _KERNEL.
Only ipl_cookie_t really needs to be exposed now, for crash(8).

mac68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).
Make inclusion of sys/intr.h explicit for spl*.

fix hppa and vax builds.

machine/lock.h isn't necessary for __cpu_simple_lock_t, it's in
sys/types.h. avoids cpu_data.h vs sched.h include order issues.

move the hppa ipl_t typedef with the moved usage of it.
machine/mutex.h: Sprinkle sys/types.h, omit machine/lock.h.

Turns out machine/lock.h is not needed for __cpu_simple_lock_t, which
always comes from sys/types.h. And, really, sys/types.h (or at least
sys/stdint.h) is needed for uintN_t and uintptr_t.

ddb: Cast pointer to uintptr_t, then to db_expr_t.
Avoids warnings about conversion between pointer and integer of
different size on some architectures.

re-fix hppa builds.

this file uses __cpu_simple_lock(), not just the underlying type,
so it does need machine/lock.h.

Break cycle by using `struct kmutex *' instead of `kmutex_t *'.
sys/sched.h included sys/mutex.h
which includes sys/intr.h
which includes machine/intr.h
which on cats includes arm/footbridge/footbridge_intr.h
which includes arm/cpu.h
which includes sys/cpu_data.h
which includes sys/sched.h

But there was never any real need for sys/mutex.h in sys/sched.h,
because it only uses pointers to the opaque struct kmutex. Cycle
broken by using `struct kmutex *' instead of pulling in sys/mutex.h
for the definition of kmutex_t.

Side effect: This revealed that sys/cpu_data.h needed sys/intr.h
(which was pulled in accidentally by sys/mutex.h via sys/sched.h) for
SOFTINT_COUNT. Also revealed some other machine/cpu.h header files
were missing includes of sys/mutex.h for kmutex_t.

ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.

explicitly include no longer implicitly included sys/mutex.h.

arm/xscale: Use sys/bitops.h fls32 - 1 instead of 31 - __builtin_clz.
Sidesteps namespace collision with `#define bits ...' in net/zlib.c.

complete the previous - there were two calls to find_first_bit() to fix.

arm/xscale: Missed a spot with previous find_first_bit commit.

evbarm/g42xxeb: Fix off-by-one in previous.

The original find_first_bit(x) was 31 - __builtin_clz((uint32_t)x),
which is equivalent to fls32(x) - 1, not to fls32(x).

Note that fls32 is 1-based and returns 0 for x=0.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file pal.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pal.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pal.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pal.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pal.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pal.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.12 06-Oct-2023  skrll Trailing whitespace
 1.11 31-May-2021  simonb Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE is
referenced since some sources include <machine/param.h>.
 1.10 07-Jan-2019  jdolecek branches: 1.10.16;
move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all ports

also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports
have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3
have lower MAXPHYS)
 1.9 08-Apr-2017  scole branches: 1.9.12; 1.9.14;
Add more defs from FreeBSD
 1.8 10-Feb-2012  para branches: 1.8.6; 1.8.24; 1.8.28; 1.8.32;
proper sizing of kmem_arena on different ports

PR port-i386/45946: Kernel locks up in VMEM system
 1.7 24-Jan-2012  christos Use and define ALIGN() ALIGN_POINTER() and STACK_ALIGN() consistently,
and avoid definining them in 10 different places if not needed.
 1.6 20-Jan-2012  joerg Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
 1.5 01-Oct-2011  chs branches: 1.5.2; 1.5.6;
fix build errors with gcc 4.5.
 1.4 08-Feb-2010  joerg 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.3 20-Jul-2009  kiyohara branches: 1.3.2;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 28-Aug-2006  yamt branches: 1.2.4; 1.2.62;
- remove unused bdbtofsb.
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file param.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file param.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file param.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file param.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.3 03-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file param.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.62.2 11-Mar-2010  yamt sync with head
 1.2.62.1 19-Aug-2009  yamt sync with head.
 1.2.4.2 09-Sep-2006  rpaulo sync with head
 1.2.4.1 28-Aug-2006  rpaulo file param.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.3.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.5.6.1 18-Feb-2012  mrg merge to -current.
 1.5.2.1 17-Apr-2012  yamt sync with head
 1.8.32.1 21-Apr-2017  bouyer Sync with HEAD
 1.8.28.1 26-Apr-2017  pgoyette Sync with HEAD
 1.8.24.1 28-Aug-2017  skrll Sync with HEAD
 1.8.6.1 03-Dec-2017  jdolecek update from HEAD
 1.9.14.1 10-Jun-2019  christos Sync with HEAD
 1.9.12.1 18-Jan-2019  pgoyette Synch with HEAD
 1.10.16.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.3 08-Apr-2017  scole Make restorectx() and swapctx() match original FreeBSD defs
 1.2 20-Mar-2008  kochi branches: 1.2.48; 1.2.68; 1.2.72; 1.2.76;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.70; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.70.1 24-Mar-2008  keiichi sync with head.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file pcb.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.3 24-Mar-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pcb.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pcb.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pcb.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pcb.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pcb.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.76.1 21-Apr-2017  bouyer Sync with HEAD
 1.2.72.1 26-Apr-2017  pgoyette Sync with HEAD
 1.2.68.1 28-Aug-2017  skrll Sync with HEAD
 1.2.48.1 03-Dec-2017  jdolecek update from HEAD
 1.4 01-Mar-2018  scole Remove empty pci_enumerate_bus() stub specific for ia64. I think it was originally added to allow acpi compilation with pci, which appears to no longer be an issue.

PCI will need to be revisited for ia64 at some point.
 1.3 05-Aug-2016  scole PR port-ia64/51261

Add pci_enumerate_bus
 1.2 28-Jun-2010  kiyohara branches: 1.2.18; 1.2.36; 1.2.40;
Implement pci_attach_hook/pci_bus_maxdevs/pci_make_tag/pci_decompose_tag/
pci_conf_read/pci_conf_write.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.4; 1.1.6;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.6.1 03-Jul-2010  rmind sync with head
 1.1.4.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.3 11-Aug-2010  yamt sync with head.
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file pci_machdep.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +0000
 1.2.40.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.36.1 05-Oct-2016  skrll Sync with HEAD
 1.2.18.1 03-Dec-2017  jdolecek update from HEAD
 1.10 07-Feb-2024  msaitoh s/strucutre/structure/ in comment.
 1.9 06-Oct-2023  skrll Trailing whitespace
 1.8 08-Apr-2017  scole Attempted port over from FreeBSD with suggestions from <chs>. Still
more work needed, but at least now the ski simulator and hardware die
at the same place.
 1.7 14-Nov-2010  uebayasi branches: 1.7.18; 1.7.36; 1.7.40; 1.7.44;
Move struct vm_page_md definition from vmparam.h to pmap.h, because
it's used only by pmap. vmparam.h has definitions for wider
audience.

All GENERIC kernels build tested, except ia64.

powerpc/include/booke/vmparam.h has one too, but it has no pmap.h,
so it's left as is.
 1.6 20-Jul-2009  kiyohara branches: 1.6.2; 1.6.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 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.4 28-Apr-2008  martin branches: 1.4.6; 1.4.8;
Remove clause 3 and 4 from TNF licenses
 1.3 20-Mar-2008  kochi branches: 1.3.2; 1.3.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2 30-Aug-2006  cherry branches: 1.2.4; 1.2.34; 1.2.54; 1.2.58;
#include cleanups.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.4 24-Mar-2008  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pmap.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pmap.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pmap.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pmap.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.3 03-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pmap.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.58.3 17-Jan-2009  mjf Sync with HEAD.
 1.2.58.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.58.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.54.1 24-Mar-2008  keiichi sync with head.
 1.2.34.1 23-Mar-2008  matt sync with HEAD
 1.2.4.2 09-Sep-2006  rpaulo sync with head
 1.2.4.1 30-Aug-2006  rpaulo file pmap.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.3.4.3 19-Aug-2009  yamt sync with head.
 1.3.4.2 04-May-2009  yamt sync with head.
 1.3.4.1 16-May-2008  yamt sync with head.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.4.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.6.2.2 16-Nov-2010  uebayasi Sync with HEAD.
 1.6.2.1 25-Feb-2010  uebayasi Use VM_PAGE_TO_MD(). Only compile tested.
 1.7.44.1 21-Apr-2017  bouyer Sync with HEAD
 1.7.40.1 26-Apr-2017  pgoyette Sync with HEAD
 1.7.36.1 28-Aug-2017  skrll Sync with HEAD
 1.7.18.1 03-Dec-2017  jdolecek update from HEAD
 1.11 06-Oct-2023  skrll Trailing whitespace
 1.10 29-Dec-2018  scole fix stack size calculation
 1.9 02-Dec-2018  scole fix SP offset
 1.8 15-Nov-2018  scole change "PCB" to "pcb"
 1.7 14-Nov-2018  scole - When forking, use own register stack for each thread
- For UAREA, arrange layout same as FreeBSD for now to hopefully
ease porting woes. add some related macros
locore.S is incorrectly assuming same layout and seems painful
to change bspstore in startup
- use ia64_init_return same as FreeBSD
- change some "printf" to "panic" for incompleted items

context switching is still broken but maybe less so
 1.6 14-Jan-2011  rmind branches: 1.6.58; 1.6.60;
Retire struct user, remove sys/user.h inclusions. Note sys/user.h header
as obsolete. Remove USER_TO_UAREA/UAREA_TO_USER macros.

Various #include fixes and review by matt@.
 1.5 17-Feb-2010  kiyohara branches: 1.5.2;
Fix type missmatch.
forgot to commit since change ia64/syscall.c,1.5.
 1.4 21-Nov-2009  rmind branches: 1.4.2;
Use lwp_getpcb() on hppa and ia64, clean from struct user usage.
 1.3 20-Mar-2008  kochi branches: 1.3.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2 16-Nov-2007  skrll branches: 1.2.10; 1.2.14;
s/proc/lwp/ in comment
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.30; 1.1.48; 1.1.50; 1.1.54; 1.1.56;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.56.1 19-Nov-2007  mjf Sync with HEAD.
 1.1.54.1 18-Nov-2007  bouyer Sync with HEAD
 1.1.50.2 23-Mar-2008  matt sync with HEAD
 1.1.50.1 09-Jan-2008  matt sync with HEAD
 1.1.48.1 21-Nov-2007  joerg Sync with HEAD.
 1.1.30.1 03-Dec-2007  ad Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file proc.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.4 24-Mar-2008  yamt sync with head.
 1.1.14.3 07-Dec-2007  yamt sync with head
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file proc.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file proc.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file proc.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file proc.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file proc.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.10.1 24-Mar-2008  keiichi sync with head.
 1.3.4.1 11-Mar-2010  yamt sync with head
 1.4.2.1 25-Feb-2010  uebayasi Fix build.
 1.5.2.1 05-Mar-2011  rmind sync with head
 1.6.60.1 10-Jun-2019  christos Sync with HEAD
 1.6.58.3 18-Jan-2019  pgoyette Synch with HEAD
 1.6.58.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.6.58.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.1 26-Dec-2012  martin branches: 1.1.2; 1.1.6;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 26-Dec-2012  tls file profile.h was added on branch tls-maxphys on 2013-02-25 00:28:45 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 26-Dec-2012  yamt file profile.h was added on branch yamt-pagecache on 2013-01-23 00:05:50 +0000
 1.4 08-Aug-2016  scole Remove unused functions pte_atomic_clear() and pte_atomic_set()
 1.3 05-Aug-2016  scole PR port-ia64/51261

Sync with FreeBSD, no functional changes
 1.2 27-Dec-2012  martin branches: 1.2.14; 1.2.18;
Hide inline functions from userland
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.122;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.122.2 03-Dec-2017  jdolecek update from HEAD
 1.1.122.1 25-Feb-2013  tls resync with head
 1.1.112.1 23-Jan-2013  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file pte.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pte.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pte.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pte.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pte.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pte.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.18.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.14.1 05-Oct-2016  skrll Sync with HEAD
 1.5 18-Jun-2019  kamil Introduce PTRACE_REG_FP() a helper macro to retrieve the frame pointer

The macro is dummy for ia64 (the FP register is unknown and can change
freely) and sparc/sparc64 (not stored in struct reg).
 1.4 08-Apr-2017  kamil branches: 1.4.14;
Add new ptrace(2) API: PT_SETSTEP & PT_CLEARSTEP

These operations allow to mark thread as a single-stepping one.

This allows to i.a.:
- single step and emit a signal (PT_SETSTEP & PT_CONTINUE)
- single step and trace syscall entry and exit (PT_SETSTEP & PT_SYSCALL)

The former is useful for debuggers like GDB or LLDB. The latter can be used
to singlestep a usermode kernel. These examples don't limit use-cases of
this interface.

Define PT_*STEP only for platforms defining PT_STEP.

Add new ATF tests setstep[1234].

These ptrace(2) operations first appeared in FreeBSD.

Sponsored by <The NetBSD Foundation>
 1.3 15-Sep-2015  christos branches: 1.3.2; 1.3.4;
Provide access to pc/sp/syscall-return registers like we have for mcontext
 1.2 25-Jan-2008  skrll branches: 1.2.54; 1.2.74;
Define PT_MACHDEP_STRINGS
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.50; 1.1.56;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.50.1 23-Mar-2008  matt sync with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file ptrace.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.3 04-Feb-2008  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file ptrace.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file ptrace.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file ptrace.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ptrace.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ptrace.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.74.2 28-Aug-2017  skrll Sync with HEAD
 1.2.74.1 22-Sep-2015  skrll Sync with HEAD
 1.2.54.1 03-Dec-2017  jdolecek update from HEAD
 1.3.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.3.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.4.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file reg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file reg.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file reg.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file reg.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file reg.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file reg.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.4 29-Nov-2019  riastradh Largely eliminate the MD rwlock.h header file.

This was full of definitions that have been obsolete for over a
decade. The file still remains for __HAVE_RW_STUBS but that's all.
Used only internally in kern_rwlock.c now, not by <sys/rwlock.h>.
 1.3 28-Apr-2008  martin branches: 1.3.88;
Remove clause 3 and 4 from TNF licenses
 1.2 20-Mar-2008  kochi branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12;
reorder includes, fix indentation.
 1.1 20-Mar-2008  kochi Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2.12.1 16-May-2008  yamt sync with head.
 1.2.10.1 18-May-2008  yamt sync with head.
 1.2.8.3 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 03-Apr-2008  mjf Sync with HEAD.
 1.2.8.1 20-Mar-2008  mjf file rwlock.h was added on branch mjf-devfs2 on 2008-04-03 12:42:19 +0000
 1.2.6.2 24-Mar-2008  yamt sync with head.
 1.2.6.1 20-Mar-2008  yamt file rwlock.h was added on branch yamt-lazymbuf on 2008-03-24 09:38:39 +0000
 1.2.4.2 24-Mar-2008  keiichi sync with head.
 1.2.4.1 20-Mar-2008  keiichi file rwlock.h was added on branch keiichi-mipv6 on 2008-03-24 07:15:00 +0000
 1.2.2.2 23-Mar-2008  matt sync with HEAD
 1.2.2.1 20-Mar-2008  matt file rwlock.h was added on branch matt-armv6 on 2008-03-23 02:04:08 +0000
 1.3.88.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file sal.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file sal.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file sal.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file sal.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file sal.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file sal.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 20-Jul-2009  kiyohara branches: 1.1.2;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file sapicreg.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +0000
 1.2 13-Jul-2023  riastradh ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.96;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.96.1 09-Aug-2023  martin Pull up following revision(s) (requested by maya in ticket #316):

sys/arch/m68k/include/mutex.h: revision 1.13
sys/arch/arm/include/cpu.h: revision 1.125
sys/arch/sun68k/include/intr.h: revision 1.21
sys/arch/arm/include/mutex.h: revision 1.28
sys/sys/rwlock.h: revision 1.18
sys/arch/powerpc/include/mutex.h: revision 1.7
sys/arch/arm/include/mutex.h: revision 1.29
sys/arch/powerpc/include/mutex.h: revision 1.8
sys/uvm/uvm_param.h: revision 1.42
sys/sys/ksem.h: revision 1.16
sys/arch/x86/include/mutex.h: revision 1.10
sys/sys/proc.h: revision 1.372
sys/sys/ksem.h: revision 1.17
sys/arch/ia64/include/mutex.h: revision 1.8
sys/arch/evbarm/include/intr.h: revision 1.29
sys/sys/lua.h: revision 1.9
sys/arch/next68k/include/intr.h: revision 1.23
sys/arch/ia64/include/mutex.h: revision 1.9
sys/arch/hp300/include/intr.h: revision 1.35
sys/arch/hp300/include/intr.h: revision 1.36
sys/arch/sparc/include/cpu.h: revision 1.111
sys/arch/hppa/include/mutex.h: revision 1.16
sys/arch/vax/include/intr.h: revision 1.31
sys/arch/hppa/include/mutex.h: revision 1.17
sys/arch/news68k/include/intr.h: revision 1.28
sys/arch/hppa/include/mutex.h: revision 1.18
sys/arch/hppa/include/intr.h: revision 1.3
sys/arch/hppa/include/mutex.h: revision 1.19
sys/arch/hppa/include/intr.h: revision 1.4
sys/sys/sched.h: revision 1.92
sys/opencrypto/cryptodev.h: revision 1.51
sys/arch/vax/include/mutex.h: revision 1.20
sys/arch/sparc64/include/mutex.h: revision 1.10
sys/arch/ia64/include/sapicvar.h: revision 1.2
sys/arch/riscv/include/mutex.h: revision 1.5
sys/arch/amiga/dev/grfabs_cc.c: revision 1.39
sys/external/bsd/drm2/include/linux/idr.h: revision 1.11
sys/arch/riscv/include/mutex.h: revision 1.6
sys/ddb/files.ddb: revision 1.16
sys/arch/mac68k/include/intr.h: revision 1.32
share/man/man4/ddb.4: revision 1.203
sys/ddb/db_command.c: revision 1.183
sys/arch/mips/include/mutex.h: revision 1.10
sys/ddb/db_command.c: revision 1.184
sys/arch/x68k/include/intr.h: revision 1.22
sys/arch/sparc/include/psl.h: revision 1.51
sys/arch/or1k/include/mutex.h: revision 1.4
sys/arch/mips/include/mutex.h: revision 1.11
sys/arch/arm/xscale/pxa2x0_intr.h: revision 1.16
sys/arch/sparc64/include/cpu.h: revision 1.134
sys/arch/sparc/include/psl.h: revision 1.52
sys/arch/or1k/include/mutex.h: revision 1.5
sys/arch/mvme68k/include/intr.h: revision 1.22
sys/arch/luna68k/include/intr.h: revision 1.16
external/cddl/osnet/sys/sys/kcondvar.h: revision 1.6
sys/arch/sparc/include/mutex.h: revision 1.12
sys/arch/sparc/include/mutex.h: revision 1.13
sys/arch/usermode/include/mutex.h: revision 1.5
sys/arch/usermode/include/mutex.h: revision 1.6
sys/kern/kern_core.c: revision 1.38
usr.sbin/crash/Makefile: revision 1.49
sys/arch/amiga/include/intr.h: revision 1.23
sys/arch/alpha/include/mutex.h: revision 1.12
sys/arch/alpha/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.16
sys/ddb/ddb.h: revision 1.6
sys/arch/sparc64/include/mutex.h: revision 1.8
sys/arch/sh3/include/mutex.h: revision 1.12
sys/arch/evbarm/lubbock/sacc_obio.c: revision 1.17
sys/ddb/db_syncobj.c: revision 1.1
sys/arch/vax/include/mutex.h: revision 1.18
sys/arch/sparc64/include/psl.h: revision 1.63
sys/arch/sparc64/include/mutex.h: revision 1.9
sys/arch/sh3/include/mutex.h: revision 1.13
sys/arch/evbarm/lubbock/obio.c: revision 1.13
sys/arch/atari/include/intr.h: revision 1.23
sys/ddb/db_syncobj.c: revision 1.2
sys/arch/vax/include/mutex.h: revision 1.19
sys/arch/evbarm/g42xxeb/obio.c: revision 1.14
sys/arch/evbarm/g42xxeb/obio.c: revision 1.15
sys/arch/cesfic/include/intr.h: revision 1.14
sys/ddb/db_syncobj.h: revision 1.1
sys/arch/x86/include/cpu.h: revision 1.134
sys/arch/evbarm/g42xxeb/obio.c: revision 1.16
sys/arch/cesfic/include/intr.h: revision 1.15
sys/arch/arm/xscale/pxa2x0_intr.c: revision 1.26
sys/sys/cpu_data.h: revision 1.54
sys/arch/m68k/include/mutex.h: revision 1.12
sys/arch/ia64/acpi/madt.c: revision 1.6

sys/rwlock.h: Make this more self-contained for bool.

machine/mutex.h: Sprinkle includes so this can be used by crash(8).

ddb: New `show all tstiles' command.
Shows who's waiting for which locks and what the owner is up to.

Include psl.h for ipl_cookie_t if __MUTEX_PRIVATE

sys: Rip <sys/resourcevar.h> out of <uvm/uvm_param.h>.

And thus out of <sys/param.h>, which is exceedingly overused and
fragile and delenda est.

Should fix (some) issues with the recent inclusion of machine/lock.h
in various machine/mutex.h files.

arm/mutex.h: Need machine/intr.h, machine/lock.h.

For ipl_cookie_t and __cpu_simple_lock_t.
evbarm/intr.h: Define ipl_cookie_t before including ARM_INTR_IMPL.

Otherwise arm/mutex.h doesn't work, due to a cyclic dependency which
should really be fixed.
opencrypto/cryptodev.h: Fix includes.
- Move sys/condvar.h under #ifdef _KERNEL.
- Add some other necessary includes and forward declarations.
- Sort.

hp300/intr.h: Fix missing includes.
linux/idr.h: Need <sys/mutex.h> for kmutex_t.
amiga/intr.h: Don't define spl*() functions if !_KERNEL.

This is used by crash(8) now, and what's important is ipl_cookie_t.
cesfic/intr.h: Expose ipl_cookie_t to userland for crash(8).
cesfic/intr.h: Expose ipl_cookie_t to userland only with _KMEMUSER.

Probably not necessary but let's be a little more cautious about
this.

atari/intr.h: Expose ipl_cookie_t with _KMEMUSER for crash(8).

arm/cpu.h: Need sys/param.h for COHERENCY_UNIT.

Nix machine/param.h -- not meant to be used directly, pulled in by
sys/param.h.

Move the definition of ipl_cookie_t out of the kernel-only sections,
some _KMEMUSER applications need it.

ddb: Cast pointer to uintptr_t first before db_expr_t.

hppa/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

luna68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

mvme68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

news68k/intr.h: Fix includes. Put some definitions under _KERNEL.

next68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

sys/ksem.h: Hack around fstat(8) abuse of _KERNEL.

sun68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

vax/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).

x68k/intr.h: Put functions under _KERNEL so crash(8) can use this.

Make ipl_cookie_t visible for _KMEMUSER userland applications.

fix editor mishap in previous

Explicitly include <sys/mutex.h> for kmutex_t.

Replace kmutex_t * (which may be undefined here) with struct kmutex *,
suggested by Taylor.

hp300/intr.h: Put most of this under #ifdef _KERNEL.
Only ipl_cookie_t really needs to be exposed now, for crash(8).

mac68k/intr.h: Expose ipl_cookie_t to _KMEMUSER for crash(8).
Make inclusion of sys/intr.h explicit for spl*.

fix hppa and vax builds.

machine/lock.h isn't necessary for __cpu_simple_lock_t, it's in
sys/types.h. avoids cpu_data.h vs sched.h include order issues.

move the hppa ipl_t typedef with the moved usage of it.
machine/mutex.h: Sprinkle sys/types.h, omit machine/lock.h.

Turns out machine/lock.h is not needed for __cpu_simple_lock_t, which
always comes from sys/types.h. And, really, sys/types.h (or at least
sys/stdint.h) is needed for uintN_t and uintptr_t.

ddb: Cast pointer to uintptr_t, then to db_expr_t.
Avoids warnings about conversion between pointer and integer of
different size on some architectures.

re-fix hppa builds.

this file uses __cpu_simple_lock(), not just the underlying type,
so it does need machine/lock.h.

Break cycle by using `struct kmutex *' instead of `kmutex_t *'.
sys/sched.h included sys/mutex.h
which includes sys/intr.h
which includes machine/intr.h
which on cats includes arm/footbridge/footbridge_intr.h
which includes arm/cpu.h
which includes sys/cpu_data.h
which includes sys/sched.h

But there was never any real need for sys/mutex.h in sys/sched.h,
because it only uses pointers to the opaque struct kmutex. Cycle
broken by using `struct kmutex *' instead of pulling in sys/mutex.h
for the definition of kmutex_t.

Side effect: This revealed that sys/cpu_data.h needed sys/intr.h
(which was pulled in accidentally by sys/mutex.h via sys/sched.h) for
SOFTINT_COUNT. Also revealed some other machine/cpu.h header files
were missing includes of sys/mutex.h for kmutex_t.

ia64: Need sys/types.h for u_int, vaddr_t; sys/mutex.h for kmutex_t.

explicitly include no longer implicitly included sys/mutex.h.

arm/xscale: Use sys/bitops.h fls32 - 1 instead of 31 - __builtin_clz.
Sidesteps namespace collision with `#define bits ...' in net/zlib.c.

complete the previous - there were two calls to find_first_bit() to fix.

arm/xscale: Missed a spot with previous find_first_bit commit.

evbarm/g42xxeb: Fix off-by-one in previous.

The original find_first_bit(x) was 31 - __builtin_clz((uint32_t)x),
which is equivalent to fls32(x) - 1, not to fls32(x).

Note that fls32 is 1-based and returns 0 for x=0.
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file sapicvar.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +0000
 1.5 06-Oct-2023  skrll Trailing whitespace
 1.4 29-Jun-2020  scole Allow kernel to compile by preventing "error: stack usage is ..."
too-large errors. What was there previously was not correct and this
will need to be revisited for debugger to ever become functional
anyway.
 1.3 02-May-2019  scole Remove some unused assembly and other variables to reduce compile warnings
 1.2 10-Sep-2006  cherry branches: 1.2.146;
Re-fit to NetBSD: Try #1
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file setjmp.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.18.1 18-Nov-2006  ad Sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file setjmp.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file setjmp.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file setjmp.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file setjmp.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.3 14-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file setjmp.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.146.1 10-Jun-2019  christos Sync with HEAD
 1.2 27-Dec-2012  martin Provide sig_atomic_t.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.122;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.122.1 25-Feb-2013  tls resync with head
 1.1.112.1 23-Jan-2013  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file signal.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file signal.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file signal.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file signal.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file signal.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file signal.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file smp.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file smp.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file smp.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file smp.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file smp.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file smp.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file ssc.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file ssc.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file ssc.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file ssc.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ssc.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ssc.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +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 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file stdarg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file stdarg.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file stdarg.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file stdarg.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file stdarg.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file stdarg.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.14 01-Apr-2021  simonb Whitespace: #define<tab>
 1.13 23-Jan-2021  christos branches: 1.13.2;
Document via __HAVE_BUS_SPACE_8 platforms that implement bus_space_*_8
 1.12 07-Sep-2020  mrg branches: 1.12.2;
define __HAVE___LWP_GETPRIVATE_FAST
 1.11 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.10 23-Jan-2016  christos branches: 1.10.16; 1.10.18;
expose the kernel types for standalone code.
 1.9 23-Jan-2016  christos Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
 1.8 27-Aug-2015  pooka Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like. To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2. Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
 1.7 26-Dec-2012  martin branches: 1.7.14;
Install headers needed for userland build.
Add missing accessors for pthread and TLS support - just dummies for now.
 1.6 01-Oct-2011  chs branches: 1.6.2; 1.6.12;
fix build errors with gcc 4.5.
 1.5 11-Dec-2009  matt Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge). These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.
 1.4 20-Mar-2008  kochi branches: 1.4.4;
Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.3 20-Jan-2008  joerg branches: 1.3.2; 1.3.6;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.2 10-Sep-2006  gdamore branches: 1.2.30; 1.2.36; 1.2.44;
Removal of stub clock stuff and convert to use MI routines for timecounter
and todr support. ok cherry@.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file types.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.18.1 18-Nov-2006  ad Sync with head.
 1.1.14.5 24-Mar-2008  yamt sync with head.
 1.1.14.4 21-Jan-2008  yamt sync with head
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file types.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file types.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file types.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file types.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.3 14-Sep-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file types.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.1 23-Jan-2008  bouyer Sync with HEAD.
 1.2.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.30.1 23-Mar-2008  matt sync with HEAD
 1.3.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.2.1 24-Mar-2008  keiichi sync with head.
 1.4.4.1 11-Mar-2010  yamt sync with head
 1.6.12.2 03-Dec-2017  jdolecek update from HEAD
 1.6.12.1 25-Feb-2013  tls resync with head
 1.6.2.1 23-Jan-2013  yamt sync with head
 1.7.14.2 19-Mar-2016  skrll Sync with HEAD
 1.7.14.1 22-Sep-2015  skrll Sync with HEAD
 1.10.18.1 10-Jun-2019  christos Sync with HEAD
 1.10.16.1 28-Jul-2018  pgoyette Sync with HEAD
 1.12.2.1 03-Apr-2021  thorpej Sync with HEAD.
 1.13.2.1 03-Apr-2021  thorpej Sync with HEAD.
 1.2 06-Oct-2023  skrll Trailing whitespace
 1.1 20-Jul-2009  kiyohara branches: 1.1.2;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file userret.h was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +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 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file varargs.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file varargs.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file varargs.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file varargs.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file varargs.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file varargs.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.12 06-Oct-2023  skrll Trailing whitespace
 1.11 29-Mar-2019  scole Remove SGROWSIZ parameter which looks like it was imported from FreeBSD and not use with NetBSD
 1.10 08-Apr-2017  scole branches: 1.10.14;
Add VM_INIT_KERNEL_ADDRESS from FreeBSD
 1.9 06-Aug-2016  martin branches: 1.9.2;
Remove unused include of sys/tree.h
 1.8 05-Aug-2016  scole PR port-ia64/51261

Import more variables from FreeBSD that will be needed later
 1.7 14-Nov-2010  uebayasi branches: 1.7.18; 1.7.36; 1.7.40;
Move struct vm_page_md definition from vmparam.h to pmap.h, because
it's used only by pmap. vmparam.h has definitions for wider
audience.

All GENERIC kernels build tested, except ia64.

powerpc/include/booke/vmparam.h has one too, but it has no pmap.h,
so it's left as is.
 1.6 06-Nov-2010  uebayasi Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.5 20-Jul-2009  kiyohara branches: 1.5.2; 1.5.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 20-Mar-2008  kochi branches: 1.4.4;
reorder includes, fix indentation.
 1.3 20-Mar-2008  kochi Make ia64 kernel of GENERIC.SKI config compile.
Only compile tested.
 1.2 03-Jul-2006  cherry branches: 1.2.6; 1.2.36; 1.2.56; 1.2.60;
misc #define cleanups
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.4 24-Mar-2008  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file vmparam.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file vmparam.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file vmparam.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file vmparam.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file vmparam.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.60.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.56.1 24-Mar-2008  keiichi sync with head.
 1.2.36.1 23-Mar-2008  matt sync with HEAD
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 03-Jul-2006  rpaulo file vmparam.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.4.4.1 19-Aug-2009  yamt sync with head.
 1.5.4.1 05-Mar-2011  rmind sync with head
 1.5.2.3 16-Nov-2010  uebayasi Sync with HEAD.
 1.5.2.2 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.5.2.1 23-Feb-2010  uebayasi Convert all VM_MDPAGE_INIT()'s to take struct vm_page_md * and paddr_t.
 1.7.40.2 26-Apr-2017  pgoyette Sync with HEAD
 1.7.40.1 06-Aug-2016  pgoyette Sync with HEAD
 1.7.36.2 28-Aug-2017  skrll Sync with HEAD
 1.7.36.1 05-Oct-2016  skrll Sync with HEAD
 1.7.18.1 03-Dec-2017  jdolecek update from HEAD
 1.9.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.10.14.1 10-Jun-2019  christos Sync with HEAD
 1.3 27-Dec-2012  martin Add WCHAR_MIN and WCHAR_MAX.
Why don't we use the compiler supplied __WCHAR_MIN__ and __WCHAR_MAX__ for
this?
 1.2 28-Apr-2008  martin branches: 1.2.34; 1.2.44;
Remove clause 3 and 4 from TNF licenses
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74; 1.1.76; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 16-May-2008  yamt sync with head.
 1.1.76.1 18-May-2008  yamt sync with head.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file wchar_limits.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:30 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file wchar_limits.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file wchar_limits.h was added on branch peter-altq on 2006-05-24 15:48:00 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file wchar_limits.h was added on branch simonb-timecounters on 2006-04-22 11:37:36 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file wchar_limits.h was added on branch elad-kernelauth on 2006-04-19 02:33:00 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file wchar_limits.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:35 +0000
 1.2.44.1 25-Feb-2013  tls resync with head
 1.2.34.1 23-Jan-2013  yamt sync with head
 1.6 01-Mar-2018  scole Remove empty pci_enumerate_bus() stub specific for ia64. I think it was originally added to allow acpi compilation with pci, which appears to no longer be an issue.

PCI will need to be revisited for ia64 at some point.
 1.5 05-Aug-2016  scole PR port-ia64/51261

Add pci_enumerate_bus stub so kernels will compile
 1.4 02-Oct-2015  msaitoh branches: 1.4.2;
PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
Currently the following extended capabilities are decoded:
- Advanced Error Reporting
- Virtual Channel
- Device Serial Number
- Power Budgeting
- Root Complex Link Declaration
- Root Complex Event Collector Association
- Access Control Services
- Alternative Routing-ID Interpretation
- Address Translation Services
- Single Root IO Virtualization
- Page Request
- TPH Requester
- Latency Tolerance Reporting
- Secondary PCI Express
- Process Address Space ID
- LN Requester
- L1 PM Substates
The following extended capabilities are not decoded yet:
- Root Complex Internal Link Control
- Multi-Function Virtual Channel
- RCRB Header
- Vendor Unique
- Configuration Access Correction
- Multiple Root IO Virtualization
- Multicast
- Resizable BAR
- Dynamic Power Allocation
- Protocol Multiplexing
- Downstream Port Containment
- Precision Time Management
- M-PCIe
- Function Reading Status Queueing
- Readiness Time Reporting
- Designated Vendor-Specific
 1.3 12-Jan-2013  kiyohara branches: 1.3.14;
Check return status from ia64_sal_entry().
 1.2 28-Jun-2010  kiyohara branches: 1.2.8; 1.2.18;
Implement pci_attach_hook/pci_bus_maxdevs/pci_make_tag/pci_decompose_tag/
pci_conf_read/pci_conf_write.
 1.1 20-Jul-2009  kiyohara branches: 1.1.2; 1.1.4; 1.1.6;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1.6.1 03-Jul-2010  rmind sync with head
 1.1.4.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.3 11-Aug-2010  yamt sync with head.
 1.1.2.2 19-Aug-2009  yamt sync with head.
 1.1.2.1 20-Jul-2009  yamt file pci_machdep.c was added on branch yamt-nfs-mp on 2009-08-19 18:46:23 +0000
 1.2.18.2 03-Dec-2017  jdolecek update from HEAD
 1.2.18.1 25-Feb-2013  tls resync with head
 1.2.8.1 23-Jan-2013  yamt sync with head
 1.3.14.2 05-Oct-2016  skrll Sync with HEAD
 1.3.14.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.4.2.1 06-Aug-2016  pgoyette Sync with HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.4 29-Jun-2024  rin ia64: stand: Switch to libsa/getopt, NFCI
 1.3 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.2 02-Jul-2006  cherry branches: 1.2.6; 1.2.108; 1.2.128; 1.2.132;
nits
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile.inc was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile.inc was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile.inc was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile.inc was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile.inc was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.132.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.128.1 05-Oct-2016  skrll Sync with HEAD
 1.2.108.1 03-Dec-2017  jdolecek update from HEAD
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 02-Jul-2006  rpaulo file Makefile.inc was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.5 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.4 18-Mar-2009  cegger bcopy -> memcpy
 1.3 04-Mar-2007  christos branches: 1.3.44; 1.3.52; 1.3.58;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.22;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bcache.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bcache.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.22.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file bcache.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.3 03-Sep-2007  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file bcache.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file bcache.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file bcache.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.44.2 11-Mar-2010  yamt sync with head
 1.3.44.1 04-May-2009  yamt sync with head.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bitstring.h was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bitstring.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file bitstring.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file bitstring.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file bitstring.h was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file bitstring.h was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.9 19-Aug-2020  msaitoh s/ be be / be /
 1.8 30-May-2016  dholland PR 51183 David Binderman: simplify redundant conditional
 1.7 08-Apr-2014  martin branches: 1.7.4;
Make it compile again - partly from PR 48727 by Henning Petersen.
 1.6 25-Mar-2014  christos branches: 1.6.2;
kill sprintf
 1.5 20-Jul-2009  kiyohara branches: 1.5.12; 1.5.22; 1.5.26;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.3 02-Jul-2006  cherry branches: 1.3.6; 1.3.64; 1.3.72; 1.3.78;
nits
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.8; 1.2.10;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file boot.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.4 11-Aug-2006  yamt sync with head
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file boot.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file boot.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.8.1 13-Jul-2006  gdamore Merge from HEAD.
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file boot.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file boot.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.78.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.72.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.64.2 19-Aug-2009  yamt sync with head.
 1.3.64.1 04-May-2009  yamt sync with head.
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 02-Jul-2006  rpaulo file boot.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.5.26.1 18-May-2014  rmind sync with head
 1.5.22.2 03-Dec-2017  jdolecek update from HEAD
 1.5.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6.2.1 10-Aug-2014  tls Rebase.
 1.7.4.1 09-Jul-2016  skrll Sync with HEAD
 1.11 29-Jun-2024  rin ia64: stand: Switch to libsa/getopt, NFCI
 1.10 10-Dec-2017  christos comment out unused hexdump
 1.9 25-Mar-2014  christos kill sprintf
 1.8 27-Dec-2012  martin branches: 1.8.2;
Make it all compile
 1.7 30-Jun-2011  wiz branches: 1.7.2; 1.7.12;
dependant -> dependent
 1.6 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 04-Mar-2007  christos branches: 1.5.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 02-Jul-2006  cherry branches: 1.4.6; 1.4.12;
nits
 1.3 14-May-2006  elad branches: 1.3.4; 1.3.6; 1.3.8;
integrate kauth.
 1.2 22-Apr-2006  cherry branches: 1.2.2;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bootstrap.h was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.4 11-Aug-2006  yamt sync with head
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bootstrap.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file bootstrap.h was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.8.4 03-Sep-2007  yamt sync with head.
 1.3.8.3 30-Dec-2006  yamt sync with head.
 1.3.8.2 21-Jun-2006  yamt sync with head.
 1.3.8.1 14-May-2006  yamt file bootstrap.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.3.6.1 13-Jul-2006  gdamore Merge from HEAD.
 1.3.4.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.4.1 14-May-2006  tron file bootstrap.h was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.4.12.1 12-Mar-2007  rmind Sync with HEAD.
 1.4.6.2 09-Sep-2006  rpaulo sync with head
 1.4.6.1 02-Jul-2006  rpaulo file bootstrap.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.5.44.1 19-Aug-2009  yamt sync with head.
 1.7.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.12.1 25-Feb-2013  tls resync with head
 1.7.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.7.2.1 23-Jan-2013  yamt sync with head
 1.8.2.1 18-May-2014  rmind sync with head
 1.2 18-Mar-2009  cegger bzero -> memset
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file calloc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file calloc.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file calloc.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file calloc.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file calloc.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file calloc.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.5 08-Apr-2014  martin Make it compile again - partly from PR 48727 by Henning Petersen.
 1.4 25-Mar-2014  christos branches: 1.4.2;
kill sprintf
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22; 1.3.26;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file commands.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file commands.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file commands.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file commands.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file commands.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file commands.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.26.1 18-May-2014  rmind sync with head
 1.3.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.2.1 10-Aug-2014  tls Rebase.
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file console.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file console.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file console.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file console.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file console.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file console.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.11 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.10 01-Feb-2016  christos branches: 1.10.2;
PR/50736: David Binderman: Check bounds before dereferencing.
 1.9 25-Mar-2014  christos branches: 1.9.6;
kill sprintf
 1.8 17-Jul-2011  joerg branches: 1.8.2; 1.8.12; 1.8.16;
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.7 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.6 18-Mar-2009  cegger bcopy -> memcpy
 1.5 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.4 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.14;
Remove clause 3 and 4 from TNF licenses
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.70; 1.2.72; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file dev_net.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file dev_net.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.3 11-Mar-2010  yamt sync with head
 1.2.74.2 04-May-2009  yamt sync with head.
 1.2.74.1 16-May-2008  yamt sync with head.
 1.2.72.1 18-May-2008  yamt sync with head.
 1.2.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file dev_net.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file dev_net.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file dev_net.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file dev_net.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.8.16.1 18-May-2014  rmind sync with head
 1.8.12.2 03-Dec-2017  jdolecek update from HEAD
 1.8.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.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.9.6.2 05-Oct-2016  skrll Sync with HEAD
 1.9.6.1 19-Mar-2016  skrll Sync with HEAD
 1.10.2.1 06-Aug-2016  pgoyette Sync with HEAD
 1.3 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.118; 1.2.138; 1.2.142;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file dev_net.h was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file dev_net.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.142.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.138.1 05-Oct-2016  skrll Sync with HEAD
 1.2.118.1 03-Dec-2017  jdolecek update from HEAD
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file dev_net.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file dev_net.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file dev_net.h was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file dev_net.h was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file devopen.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file devopen.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file devopen.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file devopen.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file devopen.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file devopen.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.4 18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.3 22-Nov-2009  mbalmer branches: 1.3.22;
more s/the the/the/
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.2 11-Mar-2010  yamt sync with head
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file environment.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file environment.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file environment.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file environment.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file environment.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file environment.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.5 25-Mar-2014  christos kill sprintf
 1.4 27-Jun-2013  christos branches: 1.4.2;
fix uninitialized variable
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
 1.3 27-Dec-2012  martin Make it all compile
 1.2 18-Mar-2009  cegger branches: 1.2.12; 1.2.22;
bzero -> memset
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file fileload.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file fileload.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file fileload.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file fileload.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file fileload.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file fileload.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.22.1 25-Feb-2013  tls resync with head
 1.2.12.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.2.12.1 23-Jan-2013  yamt sync with head
 1.4.2.1 18-May-2014  rmind sync with head
 1.3 29-Jun-2024  rin ia64: stand: Switch to libsa/getopt, NFCI
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file getopt.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file getopt.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file getopt.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file getopt.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file getopt.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file getopt.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file gets.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file gets.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file gets.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file gets.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file gets.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file gets.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2 08-Feb-2010  joerg 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.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.98;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.98.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.78.1 11-Mar-2010  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file help.common was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file help.common was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file help.common was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file help.common was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file help.common was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file help.common was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.6 25-Mar-2014  christos kill sprintf
 1.5 27-Dec-2012  martin branches: 1.5.2;
Make it all compile
 1.4 20-Jul-2009  kiyohara branches: 1.4.12; 1.4.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 02-Jul-2006  cherry branches: 1.3.6; 1.3.64;
nits
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.8; 1.2.10;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file interp.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.4 11-Aug-2006  yamt sync with head
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file interp.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file interp.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.8.1 13-Jul-2006  gdamore Merge from HEAD.
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file interp.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file interp.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.64.1 19-Aug-2009  yamt sync with head.
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 02-Jul-2006  rpaulo file interp.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.4.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.22.1 25-Feb-2013  tls resync with head
 1.4.12.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.4.12.1 23-Jan-2013  yamt sync with head
 1.5.2.1 18-May-2014  rmind sync with head
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file interp_backslash.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file interp_backslash.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file interp_backslash.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file interp_backslash.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file interp_backslash.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file interp_backslash.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.6 04-Sep-2018  riastradh Fix some min/max -> uimin/uimax stragglers.

Confirmed by the 2018-09-04T04:40Z autobuild.
 1.5 26-Oct-2009  cegger branches: 1.5.62; 1.5.64;
kill extra whitespaces
reviewed by tsutsui@
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 18-Mar-2009  cegger bcopy -> memcpy
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file interp_parse.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file interp_parse.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.3 11-Mar-2010  yamt sync with head
 1.2.74.2 19-Aug-2009  yamt sync with head.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file interp_parse.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file interp_parse.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file interp_parse.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file interp_parse.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.5.64.1 10-Jun-2019  christos Sync with HEAD
 1.5.62.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.4 15-Oct-2017  maya reorder to avoid null deref before null test
 1.3 15-Aug-2016  maxv Uninitialized var, found by brainy; not tested, but obvious enough
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.118; 1.2.138;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file load_elf64.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file load_elf64.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.138.1 05-Oct-2016  skrll Sync with HEAD
 1.2.118.1 03-Dec-2017  jdolecek update from HEAD
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file load_elf64.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file load_elf64.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file load_elf64.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file load_elf64.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.4 25-Mar-2014  christos kill sprintf
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22; 1.3.26;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ls.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ls.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file ls.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file ls.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file ls.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file ls.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.26.1 18-May-2014  rmind sync with head
 1.3.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file merge_help.awk was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file merge_help.awk was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file merge_help.awk was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file merge_help.awk was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file merge_help.awk was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file merge_help.awk was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.8 10-Dec-2017  christos comment out unused hexdump
 1.7 25-Mar-2014  christos kill sprintf
 1.6 27-Dec-2012  martin branches: 1.6.2;
Make it all compile
 1.5 20-Jul-2009  kiyohara branches: 1.5.12; 1.5.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.4 18-Mar-2009  cegger bzero -> memset
 1.3 04-Mar-2007  christos branches: 1.3.44; 1.3.52; 1.3.58;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.22;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file misc.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file misc.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.22.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file misc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.3 03-Sep-2007  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file misc.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file misc.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file misc.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.3.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.44.2 19-Aug-2009  yamt sync with head.
 1.3.44.1 04-May-2009  yamt sync with head.
 1.5.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.22.1 25-Feb-2013  tls resync with head
 1.5.12.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.5.12.1 23-Jan-2013  yamt sync with head
 1.6.2.1 18-May-2014  rmind sync with head
 1.3 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.96; 1.2.102; 1.2.104;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file newvers.sh was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file newvers.sh was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.104.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.102.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.96.1 05-Mar-2011  rmind sync with head
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file newvers.sh was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file newvers.sh was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file newvers.sh was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file newvers.sh was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.2 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file pager.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:39 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file pager.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file pager.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file pager.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pager.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pager.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.3 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.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file panic.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file panic.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file panic.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file panic.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file panic.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file panic.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.4 27-Dec-2012  martin Make it all compile
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 02-Jul-2006  cherry branches: 1.2.6; 1.2.64;
nits
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file readdir.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file readdir.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file readdir.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file readdir.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file readdir.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2.64.1 19-Aug-2009  yamt sync with head.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 02-Jul-2006  rpaulo file readdir.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 23-Jan-2013  yamt sync with head
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.2 19-Aug-2009  yamt sync with head.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file strdup.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file strdup.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file strdup.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file strdup.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file strdup.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file strdup.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.2 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file strspn.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file strspn.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file strspn.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file strspn.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file strspn.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file strspn.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.86; 1.1.92;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.78.2 19-Aug-2009  yamt sync with head.
 1.1.78.1 04-May-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file strtol.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file strtol.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file strtol.c was added on branch peter-altq on 2006-05-24 15:48:07 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file strtol.c was added on branch simonb-timecounters on 2006-04-22 11:37:38 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file strtol.c was added on branch elad-kernelauth on 2006-04-19 02:33:05 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file strtol.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:40 +0000
 1.6 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.5 22-Mar-2016  mrg branches: 1.5.2;
remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for. very few other targets claim they're done so just remove these.
 1.4 07-Sep-2015  uebayasi Order library object build.
 1.3 07-Sep-2015  uebayasi Sprinkle more done messages.
 1.2 20-Jul-2009  kiyohara branches: 1.2.22; 1.2.40;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.40.3 05-Oct-2016  skrll Sync with HEAD
 1.2.40.2 22-Apr-2016  skrll Sync with HEAD
 1.2.40.1 22-Sep-2015  skrll Sync with HEAD
 1.2.22.1 03-Dec-2017  jdolecek update from HEAD
 1.5.2.1 06-Aug-2016  pgoyette Sync with HEAD
 1.8 24-Sep-2025  rillig ia64: fix "Invalid internal option" warning from make
 1.7 13-Jun-2018  christos revert previous MAKEOBJDIRPREFIX massaging
 1.6 11-Jun-2018  christos switch from MAKEOBJDIRPREFIX to MAKEOBJDIR.
 1.5 27-May-2018  christos - Introduce :q modifier for make variables and make it double escape $'s so
that passing variables to recursive makes with :q works as expected.
- Revert :Q to work as before.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@
XXX: pullup 8
 1.4 22-Mar-2016  mrg branches: 1.4.10; 1.4.16;
remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for. very few other targets claim they're done so just remove these.
 1.3 06-Sep-2015  uebayasi In kernel lib build, print message when things not only start bug also end.
 1.2 20-Jul-2009  kiyohara branches: 1.2.40;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile.inc was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile.inc was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile.inc was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile.inc was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile.inc was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile.inc was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.40.2 22-Apr-2016  skrll Sync with HEAD
 1.2.40.1 22-Sep-2015  skrll Sync with HEAD
 1.4.16.1 25-Jun-2018  pgoyette Sync with HEAD
 1.4.10.1 09-Jun-2018  martin Pull up following revision(s) (requested by christos in ticket #870):

sys/lib/libgnuefi/Makefile.inc: revision 1.5
external/mit/xorg/xorg-pkg-ver.mk: revision 1.9
sys/arch/i386/stand/lib/Makefile.inc: revision 1.17
sys/compat/common/Makefile.inc: revision 1.25
usr.bin/make/unit-tests/varquote.exp: revision 1.1, 1.2
sys/lib/libsa/Makefile.inc: revision 1.24
usr.bin/make/var.c: revision 1.220
sys/arch/ia64/stand/efi/libefi/Makefile.inc: revision 1.5
sys/arch/hppa/spmath/Makefile.inc: revision 1.10
usr.bin/make/unit-tests/varquote.mk: revision 1.1, 1.2
usr.bin/make/unit-tests/Makefile: revision 1.53
sys/lib/libkern/Makefile.inc: revision 1.45
sys/arch/acorn32/stand/lib/Makefile.inc: revision 1.4
sys/arch/m68k/fpsp/Makefile.inc: revision 1.21
usr.bin/make/make.1: revision 1.273
sys/lib/libz/Makefile.inc: revision 1.17

- Introduce :q modifier for make variables and make it double escape $'s so
that passing variables to recursive makes with :q works as expected.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@

XXX: pullup 8
 1.5 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.4 27-Dec-2012  martin branches: 1.4.14; 1.4.18;
Make it all compile
 1.3 02-Jul-2006  cherry branches: 1.3.6; 1.3.98; 1.3.108;
nits
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.8; 1.2.10;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bootinfo.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.4 11-Aug-2006  yamt sync with head
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bootinfo.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file bootinfo.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.8.1 13-Jul-2006  gdamore Merge from HEAD.
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file bootinfo.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file bootinfo.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.108.2 03-Dec-2017  jdolecek update from HEAD
 1.3.108.1 25-Feb-2013  tls resync with head
 1.3.98.1 23-Jan-2013  yamt sync with head
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 02-Jul-2006  rpaulo file bootinfo.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.4.18.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.14.1 05-Oct-2016  skrll Sync with HEAD
 1.5 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.4 26-Oct-2009  cegger branches: 1.4.22; 1.4.40; 1.4.44;
kill extra whitespaces
reviewed by tsutsui@
 1.3 18-Mar-2009  cegger bcopy -> memcpy
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file copy.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file copy.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 11-Mar-2010  yamt sync with head
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file copy.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file copy.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file copy.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file copy.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.40.1 05-Oct-2016  skrll Sync with HEAD
 1.4.22.1 03-Dec-2017  jdolecek update from HEAD
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file delay.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file delay.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file delay.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file delay.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file delay.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file delay.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.9 15-Aug-2016  maxv Uninitialized var, found by brainy. I haven't tested this change, and it
may not be the perfect way to fix it. But it seems correct enough.
 1.8 08-Apr-2014  martin branches: 1.8.4;
Make it compile again - partly from PR 48727 by Henning Petersen.
 1.7 27-Mar-2014  christos branches: 1.7.2;
correct/add protection against snprintf overflow.
 1.6 25-Mar-2014  christos kill sprintf
 1.5 27-Dec-2012  martin branches: 1.5.2;
Make it all compile
 1.4 20-Jul-2009  kiyohara branches: 1.4.12; 1.4.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 24-Nov-2006  christos branches: 1.3.56;
fix capitalization of NetBSD; from Zapher
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.14; 1.2.16; 1.2.18;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file devicename.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file devicename.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.18.1 10-Dec-2006  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file devicename.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.14.1 12-Jan-2007  ad Sync with head.
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file devicename.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file devicename.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file devicename.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.56.1 19-Aug-2009  yamt sync with head.
 1.4.22.3 03-Dec-2017  jdolecek update from HEAD
 1.4.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.22.1 25-Feb-2013  tls resync with head
 1.4.12.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.4.12.1 23-Jan-2013  yamt sync with head
 1.5.2.1 18-May-2014  rmind sync with head
 1.7.2.1 10-Aug-2014  tls Rebase.
 1.8.4.1 05-Oct-2016  skrll Sync with HEAD
 1.5 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.4 27-Dec-2012  martin branches: 1.4.14; 1.4.18;
Make it all compile
 1.3 21-Sep-2006  kochi branches: 1.3.90; 1.3.100;
fix trivial typo in previous revision
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.14; 1.2.16; 1.2.18;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efi.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efi.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.18.1 22-Oct-2006  yamt sync with head
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efi.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.14.1 18-Nov-2006  ad Sync with head.
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efi.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efi.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efi.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.100.2 03-Dec-2017  jdolecek update from HEAD
 1.3.100.1 25-Feb-2013  tls resync with head
 1.3.90.1 23-Jan-2013  yamt sync with head
 1.4.18.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.14.1 05-Oct-2016  skrll Sync with HEAD
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efi_console.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efi_console.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 19-Aug-2009  yamt sync with head.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efi_console.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efi_console.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:53 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efi_console.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efi_console.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 26-Jan-2020  skrll Trailing whitespace
 1.3 04-Aug-2016  scole branches: 1.3.16; 1.3.22;
PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.118; 1.2.138; 1.2.142;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efiboot.h was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efiboot.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.142.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.138.1 05-Oct-2016  skrll Sync with HEAD
 1.2.118.1 03-Dec-2017  jdolecek update from HEAD
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efiboot.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efiboot.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efiboot.h was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efiboot.h was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.22.1 29-Feb-2020  ad Sync with head.
 1.3.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.5 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.4 17-Jul-2011  joerg branches: 1.4.12; 1.4.30; 1.4.34;
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.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efifpswa.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efifpswa.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efifpswa.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efifpswa.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efifpswa.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efifpswa.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4.34.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.30.1 05-Oct-2016  skrll Sync with HEAD
 1.4.12.1 03-Dec-2017  jdolecek update from HEAD
 1.6 25-Mar-2014  christos kill sprintf
 1.5 17-Jul-2011  joerg branches: 1.5.2; 1.5.12; 1.5.16;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 18-Mar-2009  cegger bzero -> memset
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efifs.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efifs.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 19-Aug-2009  yamt sync with head.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efifs.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efifs.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efifs.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efifs.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.5.16.1 18-May-2014  rmind sync with head
 1.5.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.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 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efifs_ls.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efifs_ls.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efifs_ls.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efifs_ls.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efifs_ls.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efifs_ls.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.2 27-Dec-2012  martin Make it all compile
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.112; 1.1.122;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.122.1 25-Feb-2013  tls resync with head
 1.1.112.1 23-Jan-2013  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file efifsdev.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file efifsdev.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file efifsdev.h was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file efifsdev.h was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efifsdev.h was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efifsdev.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.8 18-Aug-2018  kre More fallout from new gnu-efi ... EFI_SIMPLE_NETWORK_PROTOCOL
is now EFI_SIMPLE_NETWORK_PROTOCOL_GUID
 1.7 04-Aug-2016  scole branches: 1.7.14; 1.7.16;
PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.6 26-Oct-2009  cegger branches: 1.6.22; 1.6.40; 1.6.44;
kill extra whitespaces
reviewed by tsutsui@
 1.5 18-Mar-2009  cegger bcopy -> memcpy
 1.4 18-Mar-2009  cegger bzero -> memset
 1.3 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efinet.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efinet.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 11-Mar-2010  yamt sync with head
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efinet.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efinet.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efinet.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efinet.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.6.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.6.40.1 05-Oct-2016  skrll Sync with HEAD
 1.6.22.1 03-Dec-2017  jdolecek update from HEAD
 1.7.16.1 10-Jun-2019  christos Sync with HEAD
 1.7.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.8 07-May-2019  scole Avoid some RAW dependency compilation warnings
 1.7 04-Aug-2016  scole branches: 1.7.16;
PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.6 27-Dec-2012  martin branches: 1.6.14; 1.6.18;
Make it all compile
 1.5 18-Mar-2009  cegger branches: 1.5.12; 1.5.22;
bzero -> memset
 1.4 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.14;
Remove clause 3 and 4 from TNF licenses
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.70; 1.2.72; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file exec.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file exec.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.74.2 04-May-2009  yamt sync with head.
 1.2.74.1 16-May-2008  yamt sync with head.
 1.2.72.1 18-May-2008  yamt sync with head.
 1.2.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file exec.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file exec.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file exec.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file exec.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.22.2 03-Dec-2017  jdolecek update from HEAD
 1.5.22.1 25-Feb-2013  tls resync with head
 1.5.12.1 23-Jan-2013  yamt sync with head
 1.6.18.1 06-Aug-2016  pgoyette Sync with HEAD
 1.6.14.1 05-Oct-2016  skrll Sync with HEAD
 1.7.16.1 10-Jun-2019  christos Sync with HEAD
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file module.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file module.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file module.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file module.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file module.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file module.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.3 18-Mar-2009  cegger branches: 1.3.22; 1.3.40; 1.3.44;
Ansify function definitions w/o arguments. Generated with sed.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file time.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file time.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file time.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:40 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file time.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file time.c was added on branch peter-altq on 2006-05-24 15:48:08 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file time.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.3.40.1 05-Oct-2016  skrll Sync with HEAD
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.8 04-Aug-2016  scole PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.7 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.6 12-Jan-2014  tsutsui branches: 1.6.6; 1.6.10;
Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.5 21-Aug-2013  matt Use <bsd.klinks.mk>
 1.4 27-May-2010  dholland branches: 1.4.8; 1.4.18; 1.4.22;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.3 20-Jul-2009  kiyohara branches: 1.3.2; 1.3.4;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 06-Apr-2008  kochi branches: 1.2.4;
Make loader.efi compile again.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.74;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile.booters was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile.booters was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile.booters was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile.booters was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile.booters was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile.booters was added on branch yamt-pdpolicy on 2006-04-11 11:53:42 +0000
 1.2.4.2 11-Aug-2010  yamt sync with head.
 1.2.4.1 19-Aug-2009  yamt sync with head.
 1.3.4.1 30-May-2010  rmind sync with head
 1.3.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.4.22.2 18-May-2014  rmind sync with head
 1.4.22.1 28-Aug-2013  rmind sync with head
 1.4.18.2 03-Dec-2017  jdolecek update from HEAD
 1.4.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.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.6.10.1 06-Aug-2016  pgoyette Sync with HEAD
 1.6.6.1 05-Oct-2016  skrll Sync with HEAD
 1.7 02-Jul-2020  lukem loader.efi doesn't have source

(Untested fix)
 1.6 09-Apr-2017  christos move vers.c evaluation before we use ${SRCS}
 1.5 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.4 05-Aug-2016  scole branches: 1.4.2;
PR port-ia64/51261

Put skiload loader.efi loader.sym in /usr/mdec
 1.3 22-Jan-2011  joerg branches: 1.3.14; 1.3.32; 1.3.36;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.2 20-Jul-2009  kiyohara branches: 1.2.4; 1.2.6; 1.2.8;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.36.2 26-Apr-2017  pgoyette Sync with HEAD
 1.3.36.1 06-Aug-2016  pgoyette Sync with HEAD
 1.3.32.2 28-Aug-2017  skrll Sync with HEAD
 1.3.32.1 05-Oct-2016  skrll Sync with HEAD
 1.3.14.1 03-Dec-2017  jdolecek update from HEAD
 1.4.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.4 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.3 20-Jul-2009  kiyohara branches: 1.3.22; 1.3.40; 1.3.44;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file conf.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file conf.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file conf.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file conf.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file conf.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file conf.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.3.40.1 05-Oct-2016  skrll Sync with HEAD
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file efimd.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file efimd.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file efimd.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file efimd.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efimd.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efimd.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.4 06-Apr-2008  kochi Make loader.efi compile again.
 1.3 22-Apr-2006  cherry branches: 1.3.2; 1.3.6; 1.3.10; 1.3.16; 1.3.70;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.4.3 11-May-2006  elad sync with head
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file ldscript.ia64 was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.2.2.3 24-May-2006  yamt sync with head.
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file ldscript.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.16.2 09-Sep-2006  rpaulo sync with head
 1.3.16.1 22-Apr-2006  rpaulo file ldscript.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.3.10.2 21-Jun-2006  yamt sync with head.
 1.3.10.1 22-Apr-2006  yamt file ldscript.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.3.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.6.1 22-Apr-2006  tron file ldscript.ia64 was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.3.2.3 01-Jun-2006  kardel Sync with head.
 1.3.2.2 22-Apr-2006  simonb Sync with head.
 1.3.2.1 22-Apr-2006  simonb file ldscript.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.12 18-Aug-2018  kre More gnu-efi update fallout ... the symbol EFI_SIMPLE_NETWORK_PROTOCOL
has been replaced with EFI_SIMPLE_NETWORK_PROTOCOL_GUID and the old
one (EFI_SIMPLE_NETWORK_PROTOCOL) is now something completely different.

Adapt... (should help the ia64 build)
 1.11 04-Aug-2016  scole branches: 1.11.14; 1.11.16;
PR port-ia64/50719

Remove duplicate EFI files for ia64
 1.10 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.9 25-Mar-2014  christos branches: 1.9.6; 1.9.10;
kill sprintf
 1.8 27-Dec-2012  martin branches: 1.8.2;
Make it all compile
 1.7 22-Jan-2011  joerg branches: 1.7.4; 1.7.14;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.6 20-Jul-2009  kiyohara branches: 1.6.4; 1.6.6; 1.6.8;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.5 18-Mar-2009  cegger bzero -> memset
 1.4 06-Apr-2008  kochi branches: 1.4.4; 1.4.12; 1.4.18;
Make loader.efi compile again.
 1.3 22-Sep-2006  kochi branches: 1.3.52;
fixed typo in previous commit
 1.2 21-Sep-2006  kochi use an appropriate specifier for u_long (%lx) in printf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20; 1.1.22;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.22.1 22-Oct-2006  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file main.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.18.1 18-Nov-2006  ad Sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file main.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file main.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file main.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file main.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file main.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.4.2 19-Aug-2009  yamt sync with head.
 1.4.4.1 04-May-2009  yamt sync with head.
 1.6.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.6.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.7.14.3 03-Dec-2017  jdolecek update from HEAD
 1.7.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.14.1 25-Feb-2013  tls resync with head
 1.7.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.4.1 23-Jan-2013  yamt sync with head
 1.8.2.1 18-May-2014  rmind sync with head
 1.9.10.1 06-Aug-2016  pgoyette Sync with HEAD
 1.9.6.1 05-Oct-2016  skrll Sync with HEAD
 1.11.16.1 10-Jun-2019  christos Sync with HEAD
 1.11.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.4 05-Jun-2023  martin Fix previous comment fix, which broke a comment.
 1.3 03-Jun-2023  andvar fix various typos in comments and messages.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file start.S was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file start.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file start.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file start.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file start.S was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file start.S was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3 22-Apr-2006  cherry branches: 1.3.2; 1.3.6; 1.3.10; 1.3.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.2 08-Apr-2006  cherry branches: 1.2.2; 1.2.4;
Copyright audit and CVS header sweep.
 1.1 07-Apr-2006  cherry Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.2.4.3 11-May-2006  elad sync with head
 1.2.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.4.1 08-Apr-2006  elad file version was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.2.2.3 24-May-2006  yamt sync with head.
 1.2.2.2 11-Apr-2006  yamt sync with head
 1.2.2.1 08-Apr-2006  yamt file version was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3.16.2 09-Sep-2006  rpaulo sync with head
 1.3.16.1 22-Apr-2006  rpaulo file version was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.3.10.2 21-Jun-2006  yamt sync with head.
 1.3.10.1 22-Apr-2006  yamt file version was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.3.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.6.1 22-Apr-2006  tron file version was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.3.2.3 01-Jun-2006  kardel Sync with head.
 1.3.2.2 22-Apr-2006  simonb Sync with head.
 1.3.2.1 22-Apr-2006  simonb file version was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.7 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.6 17-Dec-2016  christos branches: 1.6.2;
XXX: Can't do PIE yet because of gp relocation in start.S
 1.5 05-Aug-2016  scole PR port-ia64/51261

Put skiload loader.efi loader.sym in /usr/mdec
 1.4 22-Jan-2011  joerg branches: 1.4.14; 1.4.32; 1.4.36;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.3 20-Jul-2009  kiyohara branches: 1.3.4; 1.3.6; 1.3.8;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 03-Jul-2006  cherry branches: 1.2.6; 1.2.64;
fix nbmake-ia64 to clean include links
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.64.1 19-Aug-2009  yamt sync with head.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 03-Jul-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.3.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 05-Mar-2011  rmind sync with head
 1.4.36.3 26-Apr-2017  pgoyette Sync with HEAD
 1.4.36.2 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.4.36.1 06-Aug-2016  pgoyette Sync with HEAD
 1.4.32.3 28-Aug-2017  skrll Sync with HEAD
 1.4.32.2 05-Feb-2017  skrll Sync with HEAD
 1.4.32.1 05-Oct-2016  skrll Sync with HEAD
 1.4.14.1 03-Dec-2017  jdolecek update from HEAD
 1.6.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.7 27-Dec-2012  martin Make it all compile
 1.6 11-Nov-2009  kiyohara branches: 1.6.12; 1.6.22;
Include <dev/acpi/acpica.h> instead of <external/intel-public/acpica/ ... >.
Thanks cegger@
 1.5 10-Nov-2009  kiyohara Fix build failure.
acpi.h moves to external/intel-public/acpica/dist/include/.
 1.4 30-Jul-2008  cherry Catchup with acpica
 1.3 30-Aug-2006  cherry branches: 1.3.4; 1.3.58; 1.3.62; 1.3.64; 1.3.66; 1.3.68;
#include cleanups.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file acpi_stub.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.4 03-Sep-2006  yamt sync with head.
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file acpi_stub.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file acpi_stub.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file acpi_stub.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file acpi_stub.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.68.1 19-Oct-2008  haad Sync with HEAD.
 1.3.66.1 31-Jul-2008  simonb Sync with head.
 1.3.64.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.3.62.2 11-Mar-2010  yamt sync with head
 1.3.62.1 04-May-2009  yamt sync with head.
 1.3.58.1 28-Sep-2008  mjf Sync with HEAD.
 1.3.4.2 09-Sep-2006  rpaulo sync with head
 1.3.4.1 30-Aug-2006  rpaulo file acpi_stub.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.6.22.1 25-Feb-2013  tls resync with head
 1.6.12.1 23-Jan-2013  yamt sync with head
 1.4 27-Dec-2012  martin Make it all compile
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file bootinfo.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file bootinfo.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file bootinfo.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file bootinfo.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file bootinfo.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file bootinfo.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 23-Jan-2013  yamt sync with head
 1.3 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.2 20-Jul-2009  kiyohara branches: 1.2.22; 1.2.40; 1.2.44;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file conf.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file conf.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file conf.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file conf.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file conf.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file conf.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.40.1 05-Oct-2016  skrll Sync with HEAD
 1.2.22.1 03-Dec-2017  jdolecek update from HEAD
 1.4 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.3 18-Mar-2009  cegger bcopy -> memcpy
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file copy.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file copy.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 11-Mar-2010  yamt sync with head
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file copy.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file copy.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file copy.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file copy.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file delay.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file delay.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file delay.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file delay.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file delay.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file delay.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.9 25-Jun-2017  maxv uninitialized variable, found by Mootja
 1.8 15-Aug-2016  maxv Two uninitialized vars, found by brainy. The former is similar to the one
I fixed in ia64/stand/efi/libefi/devicename.c. I don't know how to fix the
latter, so just add a comment. I will probably file a PR for this one.
 1.7 08-Apr-2014  martin branches: 1.7.4;
Make it compile again - partly from PR 48727 by Henning Petersen.
 1.6 27-Mar-2014  christos branches: 1.6.2;
correct/add protection against snprintf overflow.
 1.5 25-Mar-2014  christos kill sprintf
 1.4 27-Dec-2012  martin branches: 1.4.2;
Make it all compile
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file devicename.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file devicename.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file devicename.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file devicename.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file devicename.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file devicename.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.22.3 03-Dec-2017  jdolecek update from HEAD
 1.3.22.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.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.3.12.1 23-Jan-2013  yamt sync with head
 1.4.2.1 18-May-2014  rmind sync with head
 1.6.2.1 10-Aug-2014  tls Rebase.
 1.7.4.2 28-Aug-2017  skrll Sync with HEAD
 1.7.4.1 05-Oct-2016  skrll Sync with HEAD
 1.7 21-Aug-2022  riastradh ia64: Use designated initializers for ski efi tables.
 1.6 21-Aug-2022  riastradh ia64: Fix fallout from uint64 -> void * changes in efi.h.
 1.5 20-Aug-2022  riastradh ia64: Use uint64_t, not void *, for EFI virtual addresses, as in spec.
 1.4 27-Dec-2012  martin Make it all compile
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file efi_stub.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file efi_stub.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file efi_stub.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file efi_stub.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file efi_stub.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file efi_stub.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 23-Jan-2013  yamt sync with head
 1.6 27-Dec-2012  martin Make it all compile
 1.5 18-Mar-2009  cegger branches: 1.5.12; 1.5.22;
bzero -> memset
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.14;
Remove clause 3 and 4 from TNF licenses
 1.3 21-Sep-2006  kochi branches: 1.3.52; 1.3.54; 1.3.56;
make bootinfo extern from static.
it's declared in arch/ia64/include/bootinfo.h as extern.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.14; 1.2.16; 1.2.18;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file exec.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file exec.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.18.1 22-Oct-2006  yamt sync with head
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file exec.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.14.1 18-Nov-2006  ad Sync with head.
 1.2.10.3 30-Dec-2006  yamt sync with head.
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file exec.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file exec.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file exec.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.56.2 04-May-2009  yamt sync with head.
 1.3.56.1 16-May-2008  yamt sync with head.
 1.3.54.1 18-May-2008  yamt sync with head.
 1.3.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.22.1 25-Feb-2013  tls resync with head
 1.5.12.1 23-Jan-2013  yamt sync with head
 1.3 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file exit.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file exit.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file exit.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file exit.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file exit.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file exit.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file ldscript.ia64 was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file ldscript.ia64 was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file ldscript.ia64 was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file ldscript.ia64 was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ldscript.ia64 was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ldscript.ia64 was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3 27-Dec-2012  martin Make it all compile
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.108; 1.2.118;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file libski.h was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file libski.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.118.1 25-Feb-2013  tls resync with head
 1.2.108.1 23-Jan-2013  yamt sync with head
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file libski.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file libski.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file libski.h was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file libski.h was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 27-Dec-2012  martin Make it all compile
 1.3 22-Jan-2011  joerg branches: 1.3.4; 1.3.14;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.2 20-Jul-2009  kiyohara branches: 1.2.4; 1.2.6; 1.2.8;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.78.1 19-Aug-2009  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file main.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file main.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file main.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file main.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file main.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file main.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.3.14.1 25-Feb-2013  tls resync with head
 1.3.4.1 23-Jan-2013  yamt sync with head
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file pal_stub.S was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file pal_stub.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file pal_stub.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file pal_stub.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file pal_stub.S was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file pal_stub.S was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 27-Dec-2012  martin Make it all compile
 1.3 20-Jul-2009  kiyohara branches: 1.3.12; 1.3.22;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file sal_stub.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file sal_stub.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file sal_stub.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file sal_stub.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file sal_stub.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file sal_stub.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 23-Jan-2013  yamt sync with head
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file skiconsole.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file skiconsole.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 19-Aug-2009  yamt sync with head.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file skiconsole.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file skiconsole.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file skiconsole.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file skiconsole.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 20-Jul-2009  kiyohara Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.3 18-Mar-2009  cegger bzero -> memset
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74; 1.2.82; 1.2.88;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file skifs.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file skifs.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.88.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.82.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.74.2 19-Aug-2009  yamt sync with head.
 1.2.74.1 04-May-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file skifs.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file skifs.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file skifs.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file skifs.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 14-Jan-2020  scole add noinline attribute
 1.3 20-Jul-2009  kiyohara branches: 1.3.64; 1.3.70;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file ssc.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file ssc.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file ssc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file ssc.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file ssc.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file ssc.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.70.1 17-Jan-2020  ad Sync with head.
 1.3.64.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file start.S was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file start.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file start.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file start.S was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file start.S was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file start.S was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.4 04-Aug-2016  scole PR port-ia64/49717

Minimal changes needed to add nfs netboot support
 1.3 20-Jul-2009  kiyohara branches: 1.3.22; 1.3.40; 1.3.44;
Fix little bit, and add a few files.
current status is to see following thread.
http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16; 1.2.74;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file time.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file time.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.74.1 19-Aug-2009  yamt sync with head.
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file time.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file time.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file time.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file time.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.3.44.1 06-Aug-2016  pgoyette Sync with HEAD
 1.3.40.1 05-Oct-2016  skrll Sync with HEAD
 1.3.22.1 03-Dec-2017  jdolecek update from HEAD
 1.2 22-Apr-2006  cherry branches: 1.2.2; 1.2.6; 1.2.10; 1.2.16;
FreeBSD RCS id tags.
Pointed out by Hubertf
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.4.3 11-May-2006  elad sync with head
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file version was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.3 24-May-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file version was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.16.2 09-Sep-2006  rpaulo sync with head
 1.2.16.1 22-Apr-2006  rpaulo file version was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:42 +0000
 1.2.10.2 21-Jun-2006  yamt sync with head.
 1.2.10.1 22-Apr-2006  yamt file version was added on branch yamt-lazymbuf on 2006-06-21 14:52:54 +0000
 1.2.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.6.1 22-Apr-2006  tron file version was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.2.2.3 01-Jun-2006  kardel Sync with head.
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 22-Apr-2006  simonb file version was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file TODO was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:43 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file TODO was added on branch yamt-lazymbuf on 2006-06-21 14:52:58 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file TODO was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file TODO was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file TODO was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file TODO was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2 24-Nov-2006  wiz s/heirarchy/hierarchy/, from Zafer.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20; 1.1.22;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.22.1 10-Dec-2006  yamt sync with head.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file decode.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:43 +0000
 1.1.18.1 12-Jan-2007  ad Sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file decode.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:58 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file decode.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file decode.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file decode.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file decode.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3 28-Feb-2010  snj Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.
 1.2 21-Feb-2007  thorpej branches: 1.2.46; 1.2.66;
Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.26;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file decode.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:43 +0000
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file decode.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:58 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file decode.h was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file decode.h was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file decode.h was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file decode.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.66.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.2.46.1 11-Mar-2010  yamt sync with head
 1.9 31-Jul-2016  dholland Speed limit 80.
 1.8 31-Jul-2016  dholland KNF
 1.7 31-Jul-2016  dholland Instead of testing for unsigned < 0, compare before subtracting.
Reset of PR 51297 from David Binderman.
 1.6 31-Jul-2016  dholland Don't check for unsigned variables being less than 0 in
patchunwindframe(). Instead, check before subtracting, which in this
case means at the call site.

It would probably be better to change the call signature so the
subtraction happens inside patchunwindframe(), but since I don't
really know exactly what this code is trying to do I'm not comfortable
changing it.

Issue 1 in PR 51297 from David Binderman.
 1.5 10-Mar-2014  martin branches: 1.5.6; 1.5.10;
Remove unused variable
 1.4 18-Mar-2009  cegger branches: 1.4.12; 1.4.22; 1.4.26;
bzero -> memset
 1.3 28-Feb-2007  thorpej branches: 1.3.44; 1.3.52; 1.3.58;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.26;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.26.2 12-Mar-2007  rmind Sync with HEAD.
 1.1.26.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file stackframe.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:43 +0000
 1.1.14.4 03-Sep-2007  yamt sync with head.
 1.1.14.3 26-Feb-2007  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file stackframe.c was added on branch yamt-lazymbuf on 2006-06-21 14:52:58 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file stackframe.c was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file stackframe.c was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file stackframe.c was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file stackframe.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.3.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.44.1 04-May-2009  yamt sync with head.
 1.4.26.1 18-May-2014  rmind sync with head
 1.4.22.2 03-Dec-2017  jdolecek update from HEAD
 1.4.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.5.10.1 06-Aug-2016  pgoyette Sync with HEAD
 1.5.6.1 05-Oct-2016  skrll Sync with HEAD
 1.4 31-Jul-2016  dholland Speed limit 80.
 1.3 31-Jul-2016  dholland KNF
 1.2 28-Feb-2010  snj branches: 1.2.20; 1.2.38; 1.2.42;
Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.
 1.1 07-Apr-2006  cherry branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20; 1.1.78; 1.1.98;
Initial import of arch/ia64 sources.
These sources are ported from FreeBSD/ia64 code.
See individual source files for credits.
In addition, code from NetBSD/alpha NetBSD/sparc64,
NetBSD/i386 and NetBSD/amd64 were used as templates,
along with my own additions.
 1.1.98.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.78.1 11-Mar-2010  yamt sync with head
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 07-Apr-2006  rpaulo file stackframe.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:40:43 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 07-Apr-2006  yamt file stackframe.h was added on branch yamt-lazymbuf on 2006-06-21 14:52:58 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 07-Apr-2006  tron file stackframe.h was added on branch peter-altq on 2006-05-24 15:48:09 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 07-Apr-2006  simonb file stackframe.h was added on branch simonb-timecounters on 2006-04-22 11:37:39 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 07-Apr-2006  elad file stackframe.h was added on branch elad-kernelauth on 2006-04-19 02:33:08 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 07-Apr-2006  yamt file stackframe.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:43 +0000
 1.2.42.1 06-Aug-2016  pgoyette Sync with HEAD
 1.2.38.1 05-Oct-2016  skrll Sync with HEAD
 1.2.20.1 03-Dec-2017  jdolecek update from HEAD

RSS XML Feed