Home | History | Annotate | only in /src/sys/arch/ia64/include
History log of /src/sys/arch/ia64/include
RevisionDateAuthorComments
 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

RSS XML Feed