Home | History | Annotate | only in /src/sys/arch/alpha/stand
History log of /src/sys/arch/alpha/stand
RevisionDateAuthorComments
 1.17 11-Dec-2005  christos merge ktrace-lwp.
 1.16 20-Aug-2005  abs Support booting from ffsv2 filesystems - thanks Simon Burge
 1.15 08-May-2002  lukem branches: 1.15.10; 1.15.24; 1.15.26;
nuke MD installboot (ok-ed by thorpej)
 1.14 03-May-2002  lukem nuke installboot.old / bootxx combo (the old "primary bootstrap with
hardcoded blocks of secondary bootstrap"); it was only used by the
distrib ustarfs stuff, and that now uses usr/sbin/installboot and ustarboot
 1.13 18-Aug-1999  cgd branches: 1.13.14; 1.13.16;
add bootxx_lfs
 1.12 05-Apr-1999  cgd branches: 1.12.2;
reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.11 02-Apr-1999  cgd add ustarboot, a ustar-capable unified bootstrap intended to be
mkbootimage'd and slapped on the front of a tar file.
 1.10 02-Apr-1999  cgd add mkbootimage, a program to make a bootable image (i.e. prepend a boot
block, pad to a block boundary) from a console program (i.e. a boot
block, firmware upgrade executable, etc.)
 1.9 02-Apr-1999  cgd build the filesystem-specific primaries
 1.8 05-Sep-1997  thorpej installbood_cd9660 no longer exists.
 1.7 10-Apr-1997  cgd branches: 1.7.4; 1.7.6;
add installboot_cd9660, which is installboot(8) modified to place a boot
block (and faked-up disklabel) into an ISO-9660 file system image.
 1.6 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.5 18-Jan-1997  cgd branches: 1.5.2;
add setnetbootinfo to list of subdirs
 1.4 23-Sep-1996  cgd add netboot
 1.3 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 27-Feb-1995  cgd fill up device switches, clean up a couple of mistakes.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.5.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.7.6.2 10-Apr-1997  cgd add installboot_cd9660, which is installboot(8) modified to place a boot
block (and faked-up disklabel) into an ISO-9660 file system image.
 1.7.6.1 10-Apr-1997  cgd file Makefile was added on branch alpha-nwscons on 1997-04-10 23:03:39 +0000
 1.7.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12.2.2 05-Apr-1999  cgd reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.12.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 03:35:25 +0000
 1.13.16.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.13.14.1 20-Jun-2002  nathanw Catch up to -current.
 1.15.26.1 21-Jun-2006  yamt sync with head.
 1.15.24.1 05-Feb-2006  tron Pull up following revision(s) (requested by abs in ticket #738):
sys/arch/alpha/stand/Makefile: revision 1.16
distrib/sets/lists/base/md.alpha: revision 1.35
sys/arch/alpha/stand/bootxx_ffsv2/Makefile: revision 1.1
Support booting from ffsv2 filesystems - thanks Simon Burge
 1.15.10.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.37 28-May-2022  andvar fix various typos in comments.
 1.36 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.35 20-Jan-2016  jklos branches: 1.35.2; 1.35.4;
Change base address to account for later Alpha models with later firmware
which require more space for SRM.
 1.34 16-Jan-2014  christos branches: 1.34.6;
eliminate use of bsd.sys.mk from Makefiles
 1.33 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.32 23-Jan-2011  joerg branches: 1.32.4; 1.32.14; 1.32.18;
Define NOMAN earlier
 1.31 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.30 20-Apr-2009  tsutsui branches: 1.30.4; 1.30.6; 1.30.8;
Set STRIPFLAG= after ${MAKECONF} is included by <bsd.own.mk> via <bsd.prog.mk>.
Fixes PR install/40492.
 1.29 13-Apr-2009  tsutsui Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks.
 1.28 12-Jan-2009  tsutsui branches: 1.28.2;
WARNSfy
 1.27 11-Dec-2005  christos branches: 1.27.74; 1.27.78; 1.27.86; 1.27.88;
merge ktrace-lwp.
 1.26 05-Jan-2005  simonb Revert previous method of stripping out the .eh_frame sections from
objects as they're built now that we strip them all out at final link
time.
 1.25 28-Dec-2004  jmc Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that
are too large w. binutils 2.15
 1.24 26-Oct-2003  lukem Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.23 08-Oct-2003  simonb Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
 1.22 09-Nov-2002  thorpej branches: 1.22.6;
Make the bootblocks build with warnings.
 1.21 05-Jan-2002  thorpej Add -ffreestanding to CFLAGS. Remove the GCC 2.8 check around
-Wno-main (always include -Wno-main).
 1.20 30-Dec-2001  lukem add -Os to COPTS after <bsd.prog.mk> is pulled in rather than adding
it in CFLAGS beforehand, as a user's mk.conf COPTS+=-O2 results in
boot files that are too large.
 1.19 31-Oct-2001  thorpej Split elf32 vs. elf64 handling in loadfile(), including support for
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
 1.18 21-Jul-2000  jdolecek branches: 1.18.2; 1.18.4; 1.18.8;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.17 01-Feb-2000  tsutsui Revert STRIPPROG -> STRIP
 1.16 23-Jan-2000  mycroft Clean up the machine symlink stuff ever so slightly. Needs to be
standardized between files.
 1.15 19-Jan-2000  tsutsui STRIP -> STRIPPROG
 1.14 10-Sep-1999  ross branches: 1.14.2;
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.13 11-Apr-1999  cgd add support for 'standalone programs', like kernels but not the kernel.
 1.12 05-Apr-1999  cgd branches: 1.12.2; 1.12.4;
always -D NETBSD_VERS
 1.11 05-Apr-1999  cgd i was fooling myself to believe that these would build with all warnings
 1.10 05-Apr-1999  cgd reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.9 02-Apr-1999  ross Fix typo in FILE_FORMAT_CPPFLAGS.
 1.8 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.7 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.6 31-Mar-1999  cgd separate defns for primary and unified boot blocks
 1.5 31-Mar-1999  cgd Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
max load size, and max total size for as many boot block types as we can.
(types = unified, primary, secondary). We can't always define all
values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
 1.4 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 28-Sep-1998  thorpej Fix for some EGCS warnings.
 1.2 28-Mar-1998  cgd GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
 1.1 28-Mar-1998  thorpej Much more sane boot block builds, from Chris Demetriou.
 1.12.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.12.2.2 05-Apr-1999  cgd always -D NETBSD_VERS
 1.12.2.1 05-Apr-1999  cgd file Makefile.bootprogs was added on branch netbsd-1-4 on 1999-04-05 22:03:49 +0000
 1.14.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.18.8.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.18.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.5 11-Nov-2002  nathanw Catch up to -current
 1.18.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.18.2.3 11-Jan-2002  nathanw More catchup.
 1.18.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.18.2.1 14-Nov-2001  nathanw Catch up to -current.
 1.22.6.4 17-Jan-2005  skrll Sync with HEAD.
 1.22.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.22.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.22.6.1 03-Aug-2004  skrll Sync with HEAD
 1.27.88.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #418):
sys/arch/alpha/stand/Makefile.bootprogs: revision 1.28
sys/arch/alpha/stand/common/boot.c: revision 1.29
WARNSfy
 1.27.86.2 28-Apr-2009  skrll Sync with HEAD.
 1.27.86.1 19-Jan-2009  skrll Sync with HEAD.
 1.27.78.1 04-May-2009  yamt sync with head.
 1.27.74.1 17-Jan-2009  mjf Sync with HEAD.
 1.28.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.30.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.30.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.30.4.1 05-Mar-2011  rmind sync with head
 1.32.18.1 18-May-2014  rmind sync with head
 1.32.14.2 03-Dec-2017  jdolecek update from HEAD
 1.32.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.4.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.34.6.2 28-Aug-2017  skrll Sync with HEAD
 1.34.6.1 19-Mar-2016  skrll Sync with HEAD
 1.35.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.35.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.11 24-Aug-2014  apb Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>. Use multiple -e options instead.
 1.10 20-Jul-2012  matt branches: 1.10.2;
Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE}
 1.9 03-Apr-2009  tsutsui branches: 1.9.12;
Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
 1.8 25-Oct-2008  apb branches: 1.8.2; 1.8.8;
Use ${TOOL_SED} instead if plain sed in Makefiles.
 1.7 11-Dec-2005  christos branches: 1.7.74; 1.7.78; 1.7.84;
merge ktrace-lwp.
 1.6 05-Jan-2005  simonb Discard any .eh_frame sections at link time by asking ${LD} to dump the
current linker script, change references for any .eh_frame sections so
that they go in to the special "DISCARD" section so that they are not
included in the final object, and use the resultant linker script when
actually linking the bootblocks.

Idea (and most of the sed expression) from Jakub Jelinek.
 1.5 29-Aug-2003  dsl Create linker map file so it is possible to see which library members
are included and why.
 1.4 22-Sep-2001  tv branches: 1.4.18;
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
 1.3 18-Aug-1999  cgd branches: 1.3.14; 1.3.16; 1.3.18;
add a gross putulong() function which can be useful for debugging.
It's not normally included.
 1.2 05-Apr-1999  cgd branches: 1.2.2;
always -D NETBSD_VERS
 1.1 02-Apr-1999  cgd a makefile template for filesystem-using primary boot blocks
 1.2.2.2 05-Apr-1999  cgd always -D NETBSD_VERS
 1.2.2.1 05-Apr-1999  cgd file Makefile.bootxx was added on branch netbsd-1-4 on 1999-04-05 22:03:49 +0000
 1.3.18.1 01-Oct-2001  fvdl Catch up with -current.
 1.3.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.14.1 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.4.18.4 17-Jan-2005  skrll Sync with HEAD.
 1.4.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.18.1 03-Aug-2004  skrll Sync with HEAD
 1.7.84.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.7.78.1 04-May-2009  yamt sync with head.
 1.7.74.1 17-Jan-2009  mjf Sync with HEAD.
 1.8.8.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.2.1 28-Apr-2009  skrll Sync with HEAD.
 1.9.12.1 30-Oct-2012  yamt sync with head
 1.10.2.1 03-Dec-2017  jdolecek update from HEAD
 1.23 23-Jan-2011  joerg Define NOMAN earlier
 1.22 11-Dec-2005  christos branches: 1.22.106; 1.22.108;
merge ktrace-lwp.
 1.21 05-Jan-2005  simonb Revert previous method of stripping out the .eh_frame sections from
objects as they're built now that we strip them all out at final link
time.
 1.20 28-Dec-2004  jmc Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that
are too large w. binutils 2.15
 1.19 27-Aug-2002  lukem branches: 1.19.6;
arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
 1.18 12-Dec-2001  lukem branches: 1.18.8;
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.17 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.16 11-Apr-1999  cgd branches: 1.16.14; 1.16.16;
only conditionally set BINDIR to /usr/mdec
 1.15 05-Apr-1999  cgd branches: 1.15.2; 1.15.4;
-I goes in CPPFLAGS, not CFLAGS
 1.14 05-Apr-1999  cgd reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.13 28-Sep-1998  thorpej Fix for some EGCS warnings.
 1.12 27-Aug-1998  tv Nuke egcs warns: void main(), implicit int
 1.11 28-Mar-1998  thorpej Much more sane boot block builds, from Chris Demetriou.
 1.10 06-Sep-1997  drochner Oops, last change made "make depend" work incompletely. Don't define
a "depend" rule here.
 1.9 06-Sep-1997  drochner Make sure the <machine/*.h> includes come from current kernel sources,
not from installed userland.
 1.8 06-Apr-1997  cgd branches: 1.8.4; 1.8.6;
clean up NetBSD RCS ID strings
 1.7 23-Feb-1997  cgd turn Alpha's ELF_TOOLCHAIN checks to ECOFF_TOOLCHAIN checks
 1.6 16-Feb-1997  cgd protect against multiple inclusion, make HEAP_LIMIT define libsa-specific
 1.5 24-Jan-1997  cgd branches: 1.5.2; 1.5.6;
kill unnecessary newline
 1.4 16-Jan-1997  cgd move the secondary bootstrap down (to 0x20004000), and add a HEAP_LIMIT
so that we don't exhaust our bootstrap address space (when using the new,
not yet checked in, memory allocator).
 1.3 06-Oct-1996  cgd key on ELF_TOOLCHAIN being defined (presumably in /etc/mk.conf)
to signal that the build is happening on a machine with an ELF
toolchain. This is temporary, until a better toolchain-recognition
scheme is worked out.
 1.2 23-Sep-1996  cgd add -DECOFF_COMPAT to CPPFLAGS if ELF_TOOLCHAIN not defined.
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.5.6.1 11-Mar-1997  is Merge in latest Trunk.
 1.5.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.8.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.8.6.1 06-Apr-1997  cgd file Makefile.inc was added on branch alpha-nwscons on 1997-04-06 08:39:39 +0000
 1.8.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.15.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.15.2.2 05-Apr-1999  cgd -I goes in CPPFLAGS, not CFLAGS
 1.15.2.1 05-Apr-1999  cgd file Makefile.inc was added on branch netbsd-1-4 on 1999-04-05 03:42:51 +0000
 1.16.16.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.16.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.16.14.2 27-Aug-2002  nathanw Catch up to -current.
 1.16.14.1 08-Jan-2002  nathanw Catch up to -current.
 1.18.8.1 30-Aug-2002  gehenna catch up with -current.
 1.19.6.1 17-Jan-2005  skrll Sync with HEAD.
 1.22.108.1 08-Feb-2011  bouyer Sync with HEAD
 1.22.106.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.4 13-Oct-1996  christos branches: 1.4.2;
backout previous kprintf change
 1.3 10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2 12-Apr-1996  cgd clean up copyrights and RCS IDs
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.4.2.1 24-Jan-1997  cgd sync with trunk
 1.4 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.3 18-Jan-1997  cgd add padding to structures for future expansion. add a netbbinfo
structure to allow netboot information to be hard-coded in network
boot blocks, so that they can be made to work even on systems with
firmware which doesn't support the new "ethernet address in boot device"
convention.
 1.2 12-Apr-1996  cgd branches: 1.2.2;
clean up copyrights and RCS IDs
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2.2.1 24-Jan-1997  cgd sync with trunk
 1.5 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.4 18-Jan-1997  cgd update for bbinfo padding changes
 1.3 14-Jun-1996  cgd branches: 1.3.2;
clean up entry printf
 1.2 12-Apr-1996  cgd clean up copyrights and RCS IDs
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.3.2.1 24-Jan-1997  cgd sync with trunk
 1.6 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.5 23-Sep-1996  cgd branches: 1.5.2;
update for ELF toolchain support
 1.4 13-Jun-1996  cgd clean up copyright notices
 1.3 10-May-1996  cgd branches: 1.3.4;
a few more minor ecoff-header-related tweaks.
 1.2 09-May-1996  cgd update to include <sys/exec_ecoff.h>, rather than the alpha-specific
(and redundant) coff.h file (which has now been removed).
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.3.4.1 13-Jun-1996  cgd pull up from trunk:
>clean up copyright notices
 1.5.2.1 24-Jan-1997  cgd sync with trunk
 1.4 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.3 20-Jan-1997  cgd update date to date of last real modification
 1.2 16-Jan-1997  cgd clean up, deal with secondary bootstrap programs not on 'a' partition
'a' partition not starting at 0.
 1.1 06-Nov-1996  cgd branches: 1.1.2;
NetBSD/alpha installboot manual page. Copied from the sparc and lightly
tweaked by Curt Sampson <cjs@portal.ca>, then largely redone by me.
 1.1.2.1 24-Jan-1997  cgd sync with trunk
 1.7 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.6 18-Jan-1997  cgd kill bogux printf
 1.5 18-Jan-1997  cgd move the sync() calls to the correct place...
 1.4 16-Jan-1997  cgd update copyright
 1.3 16-Jan-1997  cgd clean up, deal with secondary bootstrap programs not on 'a' partition
'a' partition not starting at 0.
 1.2 20-Dec-1995  cgd branches: 1.2.2;
deal with ufs -> ffs transition.
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2.2.1 24-Jan-1997  cgd sync with trunk
 1.5 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.4 18-Jan-1997  cgd if a file name is given (i.e. BOOTED_FILE) is set, boot only that file,
but if not then try to boot "netbsd", "netbsd.bak", "netbsd.old", and
"onetbsd" (in that order) until one is found or until the list of names
is exhausted.
 1.3 23-Sep-1996  cgd branches: 1.3.2;
define ELFSIZE to 64, for exec_elf.h
 1.2 18-Sep-1996  cgd fix for elf loading, from Matt Thomas
 1.1 17-Sep-1996  cgd (1) split load-file functionality out from the 'main program' of the
boot block, since it will be shared with the network boot block.
(2) Kill a.out support, since it never worked was never used, and will
never be.
(3) Add support for booting of ELF kernels, from Matt Thomas. (Currently
untested, but it compiles.)
 1.3.2.1 24-Jan-1997  cgd sync with trunk
 1.3 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.2 25-Nov-1996  cgd branches: 1.2.2;
fix up field names for recent rpb.h changes
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2.2.1 24-Jan-1997  cgd sync with trunk
 1.6 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.5 17-Oct-1996  cgd branches: 1.5.2;
update for changes in asm.h
 1.4 23-Sep-1996  cgd update for ELF toolchain support
 1.3 12-Apr-1996  cgd clean up copyrights and RCS IDs
 1.2 01-Feb-1996  mycroft LOCORE -> _LOCORE
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.5.2.1 24-Jan-1997  cgd sync with trunk
 1.2 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1 23-Nov-1995  cgd branches: 1.1.2;
wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.1.2.1 24-Jan-1997  cgd sync with trunk
 1.5 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.4 17-Oct-1996  cgd branches: 1.4.2;
update for changes in asm.h
 1.3 23-Sep-1996  cgd update for ELF toolchain support
 1.2 17-Sep-1996  cgd add _rtt as an XLEAF into start which (like 'halt') just halts
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.4.2.1 24-Jan-1997  cgd sync with trunk
 1.32 20-Jul-2012  matt Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE}
 1.31 22-Sep-2001  tv branches: 1.31.158;
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
 1.30 26-Sep-2000  simonb branches: 1.30.2; 1.30.4; 1.30.6;
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.29 21-Jul-2000  jdolecek switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.28 10-Sep-1999  ross branches: 1.28.2; 1.28.12;
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.27 18-Aug-1999  cgd mention that putstr.c and putulong.c might want to be included when debugging
 1.26 05-Apr-1999  cgd branches: 1.26.2;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.25 05-Apr-1999  cgd don't get the name from newvers, get it from a bootstrap-specific -D
in the Makefile. also, print the banner before we do things that
might cause us to print error messages.
 1.24 02-Apr-1999  cgd update for booted_dev and disk->blkdev changes.
 1.23 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.22 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.21 31-Mar-1999  cgd Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
max load size, and max total size for as many boot block types as we can.
(types = unified, primary, secondary). We can't always define all
values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
 1.20 28-Mar-1998  thorpej Much more sane boot block builds, from Chris Demetriou.
 1.19 06-Sep-1997  drochner enable -Wall
 1.18 09-May-1997  mycroft branches: 1.18.4; 1.18.6;
Eliminate bogus redefinitions of standard targets.
 1.17 17-Apr-1997  thorpej STRIP -> STRIPFLAG
 1.16 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.15 24-Jan-1997  cgd branches: 1.15.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.14 23-Jan-1997  cgd add support for reading gzipped kernels.
 1.13 23-Jan-1997  cgd update for new kernel library build process
 1.12 17-Jan-1997  cgd clean up a bit. include libraries more carefully, so that when compressed
read code is integrated into libsa things will work properly.
 1.11 16-Jan-1997  cgd seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
 1.10 18-Oct-1996  thorpej Use ${INSTALL}.
 1.9 23-Sep-1996  cgd update for ELF toolchain support
 1.8 17-Sep-1996  cgd (1) split load-file functionality out from the 'main program' of the
boot block, since it will be shared with the network boot block.
(2) Kill a.out support, since it never worked was never used, and will
never be.
(3) Add support for booting of ELF kernels, from Matt Thomas. (Currently
untested, but it compiles.)
 1.7 14-Jun-1996  cgd Don't pass arguments to the kernel, trim unnecessary environment
calls, kill 'ask' loop (i.e. if boot fails, halt), seperate
ECOFF and a.out support into seperate options.
 1.6 12-Apr-1996  cgd don't forget dkcksum.c, now that it's seperate
 1.5 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.4 28-Jun-1995  cgd make boot blocks work on AlphaStation systems
 1.3 27-Feb-1995  cgd fill up device switches, clean up a couple of mistakes.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.15.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.18.6.2 09-May-1997  mycroft Eliminate bogus redefinitions of standard targets.
 1.18.6.1 09-May-1997  mycroft file Makefile was added on branch alpha-nwscons on 1997-05-09 07:50:27 +0000
 1.18.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.26.2.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.26.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 06:56:24 +0000
 1.28.12.1 26-Sep-2000  simonb Pull up rev 1.30 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.28.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.30.6.1 01-Oct-2001  fvdl Catch up with -current.
 1.30.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.30.2.1 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.31.158.1 30-Oct-2012  yamt sync with head
 1.3 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.12 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.11 23-Jan-1997  cgd add support for reading gzipped kernels.
 1.10 18-Jan-1997  cgd if a file name is given (i.e. BOOTED_FILE) is set, boot only that file,
but if not then try to boot "netbsd", "netbsd.bak", "netbsd.old", and
"onetbsd" (in that order) until one is found or until the list of names
is exhausted.
 1.9 18-Jan-1997  cgd move an 'int debug;' into boot.c (it was the only diff between boot.c and
netboot.c), and nuke netboot.c (using boot.c instead for network boot blocks).
 1.8 17-Sep-1996  cgd branches: 1.8.2;
(1) split load-file functionality out from the 'main program' of the
boot block, since it will be shared with the network boot block.
(2) Kill a.out support, since it never worked was never used, and will
never be.
(3) Add support for booting of ELF kernels, from Matt Thomas. (Currently
untested, but it compiles.)
 1.7 14-Jun-1996  cgd Don't pass arguments to the kernel, trim unnecessary environment
calls, kill 'ask' loop (i.e. if boot fails, halt), seperate
ECOFF and a.out support into seperate options.
 1.6 10-May-1996  cgd a few more minor ecoff-header-related tweaks.
 1.5 09-May-1996  cgd update to include <sys/exec_ecoff.h>, rather than the alpha-specific
(and redundant) coff.h file (which has now been removed).
 1.4 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.3 28-Jun-1995  cgd make boot blocks work on AlphaStation systems
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.8.2.1 24-Jan-1997  cgd sync with trunk
 1.5 02-Apr-1999  cgd this should have been gc'd with the disk->blkdev changes
 1.4 06-Apr-1997  cgd branches: 1.4.6;
clean up NetBSD RCS ID strings
 1.3 23-Nov-1995  cgd branches: 1.3.8;
wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.3.8.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.4.6.1 06-Apr-1997  cgd file conf.c was added on branch alpha-nwscons on 1997-04-06 08:40:32 +0000
 1.4 02-Apr-1999  cgd this should have been gc'd with the disk->blkdev changes
 1.3 06-Sep-1997  drochner -Wall fixes
 1.2 06-Apr-1997  cgd branches: 1.2.4; 1.2.6;
clean up NetBSD RCS ID strings
 1.1 23-Nov-1995  cgd branches: 1.1.8;
wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.1.8.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file devopen.c was added on branch alpha-nwscons on 1997-04-06 08:40:33 +0000
 1.2.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12 02-Apr-1999  cgd move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.11 27-Mar-1999  ross Bug fix for the bug fix. Be sure to prom_close() in bootxx and boot, but not
in netboot, and not in diskclose(), but after trying all kernelnames[].
 1.10 26-Mar-1999  ross Fix bug found by Bernd "Veego" Ernesti: close the console disk channel.
 1.9 28-Dec-1998  ross We don't call prom_open() here anymore, so don't call prom_close() either!
 1.8 15-Oct-1998  ross Don't actually do the raw prom open here.
 1.7 06-Sep-1997  drochner -Wall fixes
 1.6 06-Apr-1997  cgd branches: 1.6.4; 1.6.6;
clean up NetBSD RCS ID strings
 1.5 01-Apr-1997  cgd hack to fake up disklabel
 1.4 18-Jan-1997  cgd branches: 1.4.2;
remove a kludge which was breaking multiple opens/closes of the disk
 1.3 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.4.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.6.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.6.6.1 06-Apr-1997  cgd file disk.c was added on branch alpha-nwscons on 1997-04-06 08:40:34 +0000
 1.6.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.4 02-Apr-1999  cgd move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.3 15-Oct-1998  ross Extern def for raw prom disk file descriptor.
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 23-Nov-1995  cgd branches: 1.1.8;
wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.1.8.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file disk.h was added on branch alpha-nwscons on 1997-04-06 08:40:35 +0000
 1.12 11-Dec-2005  christos merge ktrace-lwp.
 1.11 20-Aug-2005  abs Include the ffsv2 filesystem ops. Necessary but not sufficient for booting
from an FFSv2 filesystem. Similar change tested on NetBSD-3
 1.10 23-Jun-2005  junyoung branches: 1.10.2;
Use FS_OPS() macro.
 1.9 23-Jun-2005  junyoung Drop trailing spaces.
 1.8 23-Feb-2003  simonb branches: 1.8.2; 1.8.16;
Update for LFSv2 support. Ports that have "bootxx_lfs"-style
bootblocks currently only support LFSv2, but the second level
"boot" program supports both LFS versions.
 1.7 18-Aug-1999  cgd add lfs support
 1.6 15-Oct-1998  ross Try the ustarfs open first...it's the only one that can't necessarily
seek. We might be reading a tape and the extra superblock reads will
eat up tape records.
 1.5 24-Sep-1998  ross Track tfs -> ustarfs change.
 1.4 22-Sep-1998  ross Add fs_ops to file_system[] for the ustar-format `tfs'.
 1.3 06-Apr-1997  cgd branches: 1.3.6;
clean up NetBSD RCS ID strings
 1.2 18-Jan-1997  cgd branches: 1.2.2;
add cd9660 file system ops to the file system ops table
 1.1 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.3.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3.6.1 06-Apr-1997  cgd file filesystem.c was added on branch alpha-nwscons on 1997-04-06 08:40:36 +0000
 1.8.16.1 05-Feb-2006  tron Pull up following revision(s) (requested by abs in ticket #738):
sys/arch/alpha/stand/boot/filesystem.c: revision 1.11 via patch
Include the ffsv2 filesystem ops. Necessary but not sufficient for booting
from an FFSv2 filesystem. Similar change tested on NetBSD-3
 1.8.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.10.2.1 21-Jun-2006  yamt sync with head.
 1.5 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.4 06-Apr-1997  cgd branches: 1.4.6;
clean up NetBSD RCS ID strings
 1.3 14-Jun-1996  cgd branches: 1.3.6;
Don't pass arguments to the kernel, trim unnecessary environment
calls, kill 'ask' loop (i.e. if boot fails, halt), seperate
ECOFF and a.out support into seperate options.
 1.2 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.3.6.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.4.6.1 06-Apr-1997  cgd file newvers.sh was added on branch alpha-nwscons on 1997-04-06 08:40:36 +0000
 1.4 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.3 28-Jun-1995  cgd make boot blocks work on AlphaStation systems
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.3 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.5 24-Jan-1997  cgd reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.4 17-Oct-1996  cgd branches: 1.4.2;
update for changes in asm.h
 1.3 23-Sep-1996  cgd update for ELF toolchain support
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.4.2.1 24-Jan-1997  cgd sync with trunk
 1.3 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.4 31-Mar-1999  cgd GC; unused
 1.3 06-Apr-1997  cgd branches: 1.3.6;
clean up NetBSD RCS ID strings
 1.2 16-Feb-1995  cgd branches: 1.2.10;
RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.2.10.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.3.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3.6.1 06-Apr-1997  cgd file test.c was added on branch alpha-nwscons on 1997-04-06 08:40:37 +0000
 1.15 09-Nov-2001  scw Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.14 02-Aug-2001  bjh21 branches: 1.14.2; 1.14.6;
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
 1.13 22-Jul-2001  wiz seperate -> separate
 1.12 26-Sep-2000  simonb branches: 1.12.4;
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.11 21-Jul-2000  jdolecek switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.10 05-Apr-1999  cgd branches: 1.10.2; 1.10.8; 1.10.18;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.9 23-Jan-1997  cgd branches: 1.9.12;
add support for reading gzipped kernels.
 1.8 18-Jan-1997  cgd bump version
 1.7 16-Jan-1997  cgd seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
 1.6 14-Jun-1996  cgd Don't pass arguments to the kernel, trim unnecessary environment
calls, kill 'ask' loop (i.e. if boot fails, halt), seperate
ECOFF and a.out support into seperate options.
 1.5 09-May-1996  cgd update to include <sys/exec_ecoff.h>, rather than the alpha-specific
(and redundant) coff.h file (which has now been removed).
 1.4 23-Nov-1995  cgd wholesale update from my NetBSD/Alpha source tree. Includes:
Support for AXPpci CPUs,
Support for AlphaStation 600 CPUs,
new boot block structure, which requires an 'installboot'
program and works a lot like the NetBSD/sparc boot blocks.
 1.3 28-Jun-1995  cgd make boot blocks work on AlphaStation systems
 1.2 16-Feb-1995  cgd RCS ids, some missing copyrights.
 1.1 13-Feb-1995  cgd preliminary Alpha support. note that NOT ALL OF THE MODIFICATIONS TO
THE REST OF THE KERNEL ARE IN THE TREE YET. Also, some of this is
_incredibly_ hack-ish, etc., but it works.
 1.9.12.2 23-Jan-1997  cgd add support for reading gzipped kernels.
 1.9.12.1 23-Jan-1997  cgd file version was added on branch alpha-nwscons on 1997-01-23 23:10:39 +0000
 1.10.18.1 26-Sep-2000  simonb Pull up rev 1.12 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.10.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.10.2.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.10.2.1 05-Apr-1999  cgd file version was added on branch netbsd-1-4 on 1999-04-05 06:56:24 +0000
 1.12.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.4.1 03-Aug-2001  lukem update to -current
 1.14.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.14.2.2 14-Nov-2001  nathanw Catch up to -current.
 1.14.2.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2001-11-14 19:12:41 +0000
 1.3 26-Sep-2000  simonb Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.2 05-Apr-1999  cgd branches: 1.2.2; 1.2.8; 1.2.18;
install bootxx_cd9660 and bootxx_ffs
 1.1 02-Apr-1999  cgd makefiles for some filesystem-using primary boot blocks. much as
i hate to say it, these still contain bugs that can't easily be
addressed yet.
 1.2.18.1 26-Sep-2000  simonb Pull up rev 1.3 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.2.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.2.2 05-Apr-1999  cgd install bootxx_cd9660 and bootxx_ffs
 1.2.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 03:37:29 +0000
 1.4 01-Feb-2003  simonb Use a 32-bit daddr_t so that lib/libsa/{ufs,lfs}.c don't pull in 64
bit divide and modulus library routines that break the tight space
constraints on bootblocks on these platforms.

May not be the final solution, but gets bootblocks building again.
 1.3 26-Sep-2000  simonb Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.2 05-Apr-1999  cgd branches: 1.2.2; 1.2.8; 1.2.18;
install bootxx_cd9660 and bootxx_ffs
 1.1 02-Apr-1999  cgd makefiles for some filesystem-using primary boot blocks. much as
i hate to say it, these still contain bugs that can't easily be
addressed yet.
 1.2.18.1 26-Sep-2000  simonb Pull up rev 1.3 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.2.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.2.2 05-Apr-1999  cgd install bootxx_cd9660 and bootxx_ffs
 1.2.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 03:37:30 +0000
 1.2 11-Dec-2005  christos branches: 1.2.8; 1.2.20;
merge ktrace-lwp.
 1.1 20-Aug-2005  abs branches: 1.1.6;
Support booting from ffsv2 filesystems - thanks Simon Burge
 1.1.6.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.6.1 20-Aug-2005  skrll file Makefile was added on branch ktrace-lwp on 2005-11-10 13:50:24 +0000
 1.2.20.2 21-Jun-2006  yamt sync with head.
 1.2.20.1 11-Dec-2005  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:48:16 +0000
 1.2.8.2 05-Feb-2006  tron Pull up following revision(s) (requested by abs in ticket #738):
sys/arch/alpha/stand/Makefile: revision 1.16
distrib/sets/lists/base/md.alpha: revision 1.35
sys/arch/alpha/stand/bootxx_ffsv2/Makefile: revision 1.1
Support booting from ffsv2 filesystems - thanks Simon Burge
 1.2.8.1 11-Dec-2005  tron file Makefile was added on branch netbsd-3 on 2006-02-05 18:47:13 +0000
 1.4 23-Feb-2003  simonb Update for LFSv2 support. Ports that have "bootxx_lfs"-style
bootblocks currently only support LFSv2, but the second level
"boot" program supports both LFS versions.
 1.3 01-Feb-2003  simonb Use a 32-bit daddr_t so that lib/libsa/{ufs,lfs}.c don't pull in 64
bit divide and modulus library routines that break the tight space
constraints on bootblocks on these platforms.

May not be the final solution, but gets bootblocks building again.
 1.2 26-Sep-2000  simonb Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.1 18-Aug-1999  cgd branches: 1.1.2; 1.1.12;
add a makefile for an LFS primary
 1.1.12.1 26-Sep-2000  simonb Pull up rev 1.2 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.10 12-Apr-2021  mrg avoid common symbols.
 1.9 18-Mar-2009  cegger branches: 1.9.78;
Ansify function definitions w/o arguments. Generated with sed.
 1.8 22-Jul-2001  wiz branches: 1.8.2; 1.8.128; 1.8.136; 1.8.142;
bcopy -> memcpy, bzero -> memset
 1.7 28-Sep-1998  thorpej branches: 1.7.26;
Set the primary CPU's PAL revision to the OSF/1 PAL revision after switching
to it, per the Green Book (pointed out by Chris Demetriou).
 1.6 14-Aug-1998  thorpej vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
 1.5 24-Jun-1998  ross Use the new LOCATE_PCS() macro.
 1.4 29-Jan-1998  ross Avoid VMS palcode ops by using a different technique for cpu_number(),
and don't execute the VMS->OSF palcode switch if the OSF palcode
is already running...which will be the case if the console is not
the venerable SRM.
 1.3 06-Sep-1997  drochner -Wall fixes
 1.2 06-Apr-1997  cgd branches: 1.2.4; 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file OSFpal.c was added on branch alpha-nwscons on 1997-04-06 08:40:57 +0000
 1.2.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.7.26.1 03-Aug-2001  lukem update to -current
 1.8.142.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.136.1 28-Apr-2009  skrll Sync with HEAD.
 1.8.128.1 04-May-2009  yamt sync with head.
 1.8.2.2 22-Jul-2001  wiz bcopy -> memcpy, bzero -> memset
 1.8.2.1 22-Jul-2001  wiz file OSFpal.c was added on branch nathanw_sa on 2001-07-22 15:17:31 +0000
 1.9.78.1 17-Apr-2021  thorpej Sync with HEAD.
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file bbinfo.h was added on branch alpha-nwscons on 1997-04-06 08:40:58 +0000
 1.9 27-Dec-2019  msaitoh s/transfered/transferred/
 1.8 14-Mar-2009  dsl branches: 1.8.64;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.7 24-Dec-2005  perry branches: 1.7.78; 1.7.86; 1.7.92;
bare asm -> __asm
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 07-Aug-2003  agc branches: 1.5.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.4 26-Sep-2000  simonb branches: 1.4.24;
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
close to the maximum. RAID1 support is controlled by the
BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
becomes an issue.
 1.3 13-Nov-1999  thorpej branches: 1.3.4;
Backout my libsa changes.
 1.2 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.1 02-Apr-1999  cgd branches: 1.1.2; 1.1.8; 1.1.10; 1.1.14;
move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.1.14.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.10.1 14-Nov-1999  fvdl Sync with -current.
 1.1.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.2 02-Apr-1999  cgd move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.1.2.1 02-Apr-1999  cgd file blkdev.c was added on branch netbsd-1-4 on 1999-04-02 03:17:30 +0000
 1.3.4.1 26-Sep-2000  simonb Pull up rev 1.4 (approved by thorpej):
Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.
 1.4.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.24.1 03-Aug-2004  skrll Sync with HEAD
 1.5.16.1 21-Jun-2006  yamt sync with head.
 1.7.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.78.1 04-May-2009  yamt sync with head.
 1.8.64.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3 17-Mar-2009  he Correct the sense of the test for LIBSA_NO_FS_CLOSE
so that this builds again.
 1.2 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.1 02-Apr-1999  cgd branches: 1.1.2; 1.1.148; 1.1.156; 1.1.162;
move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.1.162.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.156.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.148.1 04-May-2009  yamt sync with head.
 1.1.2.2 02-Apr-1999  cgd move the boot/disk.* code to common/blkdev.*, and gut it. The previous
guts were actually functionally equivalent to the current guts, but were
much larger, filled with bugs, and indeed poked around at the disklabel
when some of those bugs prevented them from ever using the disklabel!
 1.1.2.1 02-Apr-1999  cgd file blkdev.h was added on branch netbsd-1-4 on 1999-04-02 03:17:30 +0000
 1.33 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.32 22-Jan-2011  joerg branches: 1.32.14; 1.32.32;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.31 25-Aug-2010  christos branches: 1.31.2; 1.31.4;
change LOAD_NOTE to LOAD_BACKWARDS
 1.30 03-Feb-2009  tsutsui branches: 1.30.4; 1.30.6;
Disable LOAD_NOTE on ustarboot to avoid backward seek on loading a kernel.
Tested on DEC 3000/300 and AlphaPC 164, fixes PR install/38943 on alpha.

XXX: should we enable LOAD_NOTE on ustarfs tape boot to load modules?
 1.29 12-Jan-2009  tsutsui WARNSfy
 1.28 11-Dec-2005  christos branches: 1.28.74; 1.28.78; 1.28.86; 1.28.88;
merge ktrace-lwp.
 1.27 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.26 22-Jul-2001  wiz branches: 1.26.2; 1.26.22;
bcopy -> memcpy, bzero -> memset
 1.25 12-Jun-2000  matt branches: 1.25.6;
Add netbsd.alpha & netbsd.alpha.gz for installation cds.
 1.24 13-Nov-1999  thorpej branches: 1.24.2;
Backout my libsa changes.
 1.23 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.22 10-Sep-1999  ross branches: 1.22.2; 1.22.4; 1.22.8;
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.21 09-Apr-1999  cgd constify bootprog_*, move their definitions into common.h, and have
the generated vers.c include common.h to check against definitions.
 1.20 05-Apr-1999  cgd branches: 1.20.2; 1.20.4;
consistency in boot message printouts
 1.19 05-Apr-1999  cgd don't get the name from newvers, get it from a bootstrap-specific -D
in the Makefile. also, print the banner before we do things that
might cause us to print error messages.
 1.18 05-Apr-1999  cgd come a little closer to compiling with warnings turned on
 1.17 02-Apr-1999  cgd abstract the prom device open/close into a separate module, which
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
 1.16 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.15 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.14 31-Mar-1999  cgd as pointed out by simonb, since we've moved to ELF __main() calls
aren't emittid anymore.
 1.13 31-Mar-1999  cgd rename the C main() function to main_(). this avoids gcc's implicit
call to __main(), and therefore saves the size of the call and the
size of a stub implementation of __main().
in the primary boot block, don't bother saving/restoring the argument
passed in from the caller. There is no such argument (that we care
about, at least) to the primary. (for secondary, it's the firmware
FD being used.)
 1.12 27-Mar-1999  ross Bug fix for the bug fix. Be sure to prom_close() in bootxx and boot, but not
in netboot, and not in diskclose(), but after trying all kernelnames[].
 1.11 15-Oct-1998  ross Grab booted_dev_fd parameter from bootxx. It won't be there for netboot
but there should be no harm done.
 1.10 14-Aug-1998  thorpej vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
 1.9 07-Aug-1998  drochner Implement the 'i' flag which makes the bootloader ask for the file to
load (as in OSF/1).
Useful for netboot where "-file" doesn't work as needed.
 1.8 12-Feb-1998  cgd clean up the way bootinfo information is passed and used: move the version
number passed by the boot block into a register, change the kernel's
bootinfo handing so that it always uses bootinfo to get bootinfo-ish values
(filling them in if the boot blocks didn't pass them), and make versioning
a small bit more sane.
 1.7 29-Jan-1998  ross While here in alpha/stand, add a technically required imb coherency op
just before transferring to the kernel entry point.
 1.6 06-Sep-1997  drochner -Wall fixes
 1.5 13-Aug-1997  cgd don't forget to set hwrpbsize to zero explicitly
 1.4 25-Jul-1997  cgd branches: 1.4.2; 1.4.4;
fill in the new pointers in the bootinfo_v1 structure.
 1.3 25-Jul-1997  thorpej Set up a version 1 bootinfo for the kernel.
 1.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.2 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.4.2 25-Jul-1997  cgd fill in the new pointers in the bootinfo_v1 structure.
 1.4.4.1 25-Jul-1997  cgd file boot.c was added on branch alpha-nwscons on 1997-07-25 07:00:43 +0000
 1.4.2.2 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.4.2.1 23-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.20.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.20.2.2 05-Apr-1999  cgd consistency in boot message printouts
 1.20.2.1 05-Apr-1999  cgd file boot.c was added on branch netbsd-1-4 on 1999-04-05 22:03:57 +0000
 1.22.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.22.4.1 14-Nov-1999  fvdl Sync with -current.
 1.22.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.24.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.25.6.1 03-Aug-2001  lukem update to -current
 1.26.22.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.26.22.2 18-Sep-2004  skrll Sync with HEAD.
 1.26.22.1 03-Aug-2004  skrll Sync with HEAD
 1.26.2.2 22-Jul-2001  wiz bcopy -> memcpy, bzero -> memset
 1.26.2.1 22-Jul-2001  wiz file boot.c was added on branch nathanw_sa on 2001-07-22 15:17:32 +0000
 1.28.88.2 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #418):
sys/arch/alpha/stand/common/boot.c: revision 1.30
sys/arch/alpha/stand/ustarboot/Makefile: revision 1.7
Disable LOAD_NOTE on ustarboot to avoid backward seek on loading a kernel.
Tested on DEC 3000/300 and AlphaPC 164, fixes PR install/38943 on alpha.
XXX: should we enable LOAD_NOTE on ustarfs tape boot to load modules?
 1.28.88.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #418):
sys/arch/alpha/stand/Makefile.bootprogs: revision 1.28
sys/arch/alpha/stand/common/boot.c: revision 1.29
WARNSfy
 1.28.86.2 03-Mar-2009  skrll Sync with HEAD.
 1.28.86.1 19-Jan-2009  skrll Sync with HEAD.
 1.28.78.2 09-Oct-2010  yamt sync with head
 1.28.78.1 04-May-2009  yamt sync with head.
 1.28.74.1 17-Jan-2009  mjf Sync with HEAD.
 1.30.6.1 05-Mar-2011  rmind sync with head
 1.30.4.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.31.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.31.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.32.32.1 09-Jul-2016  skrll Sync with HEAD
 1.32.14.1 03-Dec-2017  jdolecek update from HEAD
 1.4 13-Oct-2016  flxd Match the two prom_getenv() and fix buffer overflow causing wrong host controller SCSI ID for DEC 3000.
OK skrll@
 1.3 13-Nov-1999  thorpej branches: 1.3.174; 1.3.178; 1.3.196; 1.3.198; 1.3.200; 1.3.202; 1.3.204;
Backout my libsa changes.
 1.2 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.1 02-Apr-1999  cgd branches: 1.1.2; 1.1.8; 1.1.10; 1.1.14;
abstract the prom device open/close into a separate module, which
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
 1.1.14.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.10.1 14-Nov-1999  fvdl Sync with -current.
 1.1.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.2 02-Apr-1999  cgd abstract the prom device open/close into a separate module, which
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
 1.1.2.1 02-Apr-1999  cgd file booted_dev.c was added on branch netbsd-1-4 on 1999-04-02 03:19:09 +0000
 1.3.204.1 18-Jan-2017  skrll Sync with netbsd-5
 1.3.202.1 04-Nov-2016  pgoyette Sync with HEAD
 1.3.200.1 01-Nov-2016  snj Pull up following revision(s) (requested by maxv in ticket #1269):
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
sys/arch/alpha/stand/common/prom.c: revision 1.15
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.3.198.1 05-Dec-2016  skrll Sync with HEAD
 1.3.196.1 01-Nov-2016  snj Pull up following revision(s) (requested by maxv in ticket #1269):
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/prom.c: revision 1.15
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.3.178.1 03-Dec-2017  jdolecek update from HEAD
 1.3.174.1 16-Nov-2016  snj Pull up following revision(s) (requested by flxd in ticket #1416):
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
sys/arch/alpha/stand/common/prom.c: revision 1.15
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.6 13-Nov-1999  thorpej branches: 1.6.28;
Backout my libsa changes.
 1.5 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.4 26-May-1999  cgd branches: 1.4.2; 1.4.4; 1.4.8;
uh, get the port name consistently correct (NetBSD/alpha, not NetBSD/Alpha)
 1.3 05-Apr-1999  cgd branches: 1.3.2; 1.3.4; 1.3.6;
consistency in boot message printouts
 1.2 05-Apr-1999  cgd come a little closer to compiling with warnings turned on
 1.1 02-Apr-1999  cgd add a template for a filesystem-using primary boot block, just like
'boot' is a template for secondary and unified boot blocks.
 1.3.6.1 30-Nov-1999  itojun bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.
 1.3.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.3.2.2 21-Jun-1999  perry pullup 1.3->1.4 (cgd): NetBSD/alpha, not NetBSD/Alpha
 1.3.2.1 05-Apr-1999  perry file bootxx.c was added on branch netbsd-1-4 on 1999-06-21 14:42:08 +0000
 1.4.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.1 14-Nov-1999  fvdl Sync with -current.
 1.4.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.28.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.28.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.28.1 03-Aug-2004  skrll Sync with HEAD
 1.1 31-Mar-1999  cgd Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
max load size, and max total size for as many boot block types as we can.
(types = unified, primary, secondary). We can't always define all
values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
 1.14 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.13 14-Mar-2009  dsl branches: 1.13.4; 1.13.6; 1.13.8;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.12 30-Nov-1999  thorpej branches: 1.12.134; 1.12.142; 1.12.148;
don't need private `imb' inline anymore.
 1.11 18-Aug-1999  cgd branches: 1.11.2; 1.11.8;
add a gross putulong() function which can be useful for debugging.
It's not normally included.
 1.10 09-Apr-1999  cgd constify bootprog_*, move their definitions into common.h, and have
the generated vers.c include common.h to check against definitions.
 1.9 02-Apr-1999  cgd branches: 1.9.2; 1.9.4;
add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.8 02-Apr-1999  cgd abstract the prom device open/close into a separate module, which
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
 1.7 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.6 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.5 31-Mar-1999  cgd GC cpu_number() and turn alpha_pal_imb() into inline assembler.
 1.4 27-Mar-1999  ross Bug fix for the bug fix. Be sure to prom_close() in bootxx and boot, but not
in netboot, and not in diskclose(), but after trying all kernelnames[].
 1.3 15-Oct-1998  ross Delete bogus prom_open() prototype.
 1.2 05-Jan-1998  perry RCSID Police.
 1.1 06-Sep-1997  drochner branches: 1.1.2;
Collect prototypes here.
 1.1.2.2 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.1.2.1 06-Sep-1997  thorpej file common.h was added on branch marc-pcmcia on 1997-09-06 18:00:05 +0000
 1.9.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9.2.2 02-Apr-1999  cgd add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.9.2.1 02-Apr-1999  cgd file common.h was added on branch netbsd-1-4 on 1999-04-02 03:23:50 +0000
 1.11.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.12.148.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.142.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.134.1 04-May-2009  yamt sync with head.
 1.13.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.13.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.4.1 05-Mar-2011  rmind sync with head
 1.6 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.5 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.4 31-Mar-1999  cgd Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
max load size, and max total size for as many boot block types as we can.
(types = unified, primary, secondary). We can't always define all
values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
 1.3 06-Sep-1997  drochner -Wall fixes
 1.2 06-Apr-1997  cgd branches: 1.2.4; 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file headersize.c was added on branch alpha-nwscons on 1997-04-06 08:40:59 +0000
 1.2.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12 10-Sep-1999  ross Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.11 14-Aug-1998  thorpej vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t
 1.10 25-Jun-1998  ross Don't bother reading the ELF string table out of a stripped /netbsd[.gz].
In this case, all it has in it are the never-referenced printable names
for the ELF sections themselves. It's located at the end of the (ramdisk)
netbsd.gz file, so it is a very expensive seek and read for only 85 bytes.

Boot floppy load time:

before: 5 minutes
now: 3 minutes
 1.9 28-Feb-1998  ross Force elf symbol sections to an addressable boundary.
 1.8 18-Oct-1997  cjs branches: 1.8.2;
Check return values from lseek; use SEEK_SET instead of 0.
 1.7 06-Sep-1997  drochner -Wall fixes
 1.6 05-Sep-1997  thorpej When loading a symbol section, make sure it is aligned.
 1.5 25-Jul-1997  thorpej branches: 1.5.2; 1.5.4;
If loading an Elf kernel, load the symbol table immediately after
the kernel image.
 1.4 20-Jun-1997  cjs bzero() wants pointers, not ints, for its first arg.
 1.3 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2 25-Jan-1997  cgd use strerror() to print errors, rather than just printing error numbers
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.4 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.1.2.3 22-Jul-1997  cgd sync nwscons branch with changes in -current as of July 21, 1997
 1.1.2.2 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.1.2.1 25-Jan-1997  cgd sync with trunk
 1.5.4.2 25-Jul-1997  thorpej If loading an Elf kernel, load the symbol table immediately after
the kernel image.
 1.5.4.1 25-Jul-1997  thorpej file loadfile.c was added on branch alpha-nwscons on 1997-07-25 00:09:02 +0000
 1.5.2.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.8.2.1 09-May-1998  mycroft Pull up 1.9, per request of ross.
 1.4 21-Jul-2000  jdolecek switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.3 09-Apr-1999  cgd branches: 1.3.2;
constify bootprog_*, move their definitions into common.h, and have
the generated vers.c include common.h to check against definitions.
 1.2 07-Apr-1999  cgd branches: 1.2.2; 1.2.4;
save 4.3 bytes on the date string! 4 == day of week plus space,
.3 == a space on days of the month 1-9.
 1.1 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.2.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.2.2 07-Apr-1999  cgd save 4.3 bytes on the date string! 4 == day of week plus space,
.3 == a space on days of the month 1-9.
 1.2.2.1 07-Apr-1999  cgd file newvers.sh was added on branch netbsd-1-4 on 1999-04-07 06:30:35 +0000
 1.3.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.1 02-Apr-1999  cgd branches: 1.1.2;
add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.1.2.2 02-Apr-1999  cgd add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.1.2.1 02-Apr-1999  cgd file panic_putstr.c was added on branch netbsd-1-4 on 1999-04-02 03:23:50 +0000
 1.16 03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.15 13-Oct-2016  flxd branches: 1.15.14; 1.15.16;
Match the two prom_getenv() and fix buffer overflow causing wrong host controller SCSI ID for DEC 3000.
OK skrll@
 1.14 18-Mar-2009  cegger branches: 1.14.18; 1.14.22; 1.14.38; 1.14.40; 1.14.42; 1.14.44; 1.14.46;
Ansify function definitions w/o arguments. Generated with sed.
 1.13 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.12 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.11 30-Jul-2002  nathanw branches: 1.11.112; 1.11.120; 1.11.126;
Experimentation reveals that the implementation of GET_ENV on at least
some systems chokes if the buffer is not 8-byte aligned. GCC only aligns
character arrays to 4-byte boundaries by default, so it's possible to get
unlucky and die in the boot blocks with a "kernel stack not valid halt".

Avoid the problem by using a local, aligned buffer as the argument to GET_ENV,
and copying the result into the caller's buffer.

Should fix PRs port-alpha/17682 and port-alpha/17717.
CVS ----------------------------------------------------------------------
 1.10 02-Apr-1999  cgd branches: 1.10.2; 1.10.20; 1.10.22; 1.10.34; 1.10.36;
unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.9 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.8 31-Mar-1999  cgd implement NO_GETCHAR, to remove getchar(), and NO_PUTCHAR_HALT to remove
the check in putchar() for character input (specifically control-c, which
causes a halt).
 1.7 31-Mar-1999  cgd no point in passing &ret to test_getchar(); nobody cares! also, no
point in doing the check-for-abort functionality twice in putchar()
(once with a call to test_getchar(), once open coded).
 1.6 31-Mar-1999  cgd In putchar(), don't open-code two calls to the prom puts routine. Instead,
call a helper function (putonechar()). Savings: 64 bytes. Cha-ching!
 1.5 15-Oct-1998  ross Delete prom_open() wrapper routine. Other clients of prom_open
can use the prom.h dispatch macros instead, especially since they
all presently expect the raw return bits.
 1.4 22-Sep-1998  ross While we are here in alpha/stand, bail out on ^C during boot.
 1.3 06-Sep-1997  drochner -Wall fixes
 1.2 06-Apr-1997  cgd branches: 1.2.4; 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file prom.c was added on branch alpha-nwscons on 1997-04-06 08:41:01 +0000
 1.2.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.10.36.1 31-Jul-2002  lukem Pull up revision 1.11 (requested by nathanw in ticket #591):
Experimentation reveals that the implementation of GET_ENV on at least
some systems chokes if the buffer is not 8-byte aligned. GCC only aligns
character arrays to 4-byte boundaries by default, so it's possible to get
unlucky and die in the boot blocks with a "kernel stack not valid halt".
Avoid the problem by using a local, aligned buffer as the argument to GET_ENV,
and copying the result into the caller's buffer.
Should fix PRs port-alpha/17682 and port-alpha/17717.
 1.10.34.1 30-Aug-2002  gehenna catch up with -current.
 1.10.22.1 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.10.20.1 01-Aug-2002  nathanw Catch up to -current.
 1.10.2.2 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.10.2.1 02-Apr-1999  cgd file prom.c was added on branch netbsd-1-4 on 1999-04-02 03:11:58 +0000
 1.11.126.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.120.1 28-Apr-2009  skrll Sync with HEAD.
 1.11.112.1 04-May-2009  yamt sync with head.
 1.14.46.1 18-Jan-2017  skrll Sync with netbsd-5
 1.14.44.1 04-Nov-2016  pgoyette Sync with HEAD
 1.14.42.1 01-Nov-2016  snj Pull up following revision(s) (requested by maxv in ticket #1269):
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
sys/arch/alpha/stand/common/prom.c: revision 1.15
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.14.40.1 05-Dec-2016  skrll Sync with HEAD
 1.14.38.1 01-Nov-2016  snj Pull up following revision(s) (requested by maxv in ticket #1269):
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/prom.c: revision 1.15
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.14.22.1 03-Dec-2017  jdolecek update from HEAD
 1.14.18.1 16-Nov-2016  snj Pull up following revision(s) (requested by flxd in ticket #1416):
sys/arch/alpha/alpha/machdep.c: revision 1.347
sys/arch/alpha/alpha/prom.c: revision 1.49
sys/arch/alpha/stand/common/booted_dev.c: revision 1.4
sys/arch/alpha/stand/common/prom.c: revision 1.15
Match the two prom_getenv() and fix buffer overflow causing wrong host
controller SCSI ID for DEC 3000.
OK skrll@
 1.15.16.1 10-Jun-2019  christos Sync with HEAD
 1.15.14.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file prom_disp.S was added on branch alpha-nwscons on 1997-04-06 08:41:01 +0000
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file prom_swpal.S was added on branch alpha-nwscons on 1997-04-06 08:41:02 +0000
 1.1 02-Apr-1999  cgd branches: 1.1.2;
add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.1.2.2 02-Apr-1999  cgd add a common putstr() function which just puts()'s the chars in
its argument string. implement a broken version of panic() in terms
of it, for cases where we need panic() but can't affort printf().
 1.1.2.1 02-Apr-1999  cgd file putstr.c was added on branch netbsd-1-4 on 1999-04-02 03:23:51 +0000
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 17-May-2005  christos Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
 1.1 18-Aug-1999  cgd branches: 1.1.36;
add a gross putulong() function which can be useful for debugging.
It's not normally included.
 1.1.36.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14 11-Dec-2005  christos merge ktrace-lwp.
 1.13 29-Aug-2003  dsl Use memset (instead of bzero) to clear bss.
bootxx_lfs now fits in the available space.
 1.12 11-Apr-1999  cgd branches: 1.12.36;
add support for 'standalone programs', like kernels but not the kernel.
 1.11 02-Apr-1999  cgd branches: 1.11.2; 1.11.4;
unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.10 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.9 31-Mar-1999  cgd as pointed out by simonb, since we've moved to ELF __main() calls
aren't emittid anymore.
 1.8 31-Mar-1999  cgd separate defns for primary and unified boot blocks
 1.7 31-Mar-1999  cgd GC cpu_number() and turn alpha_pal_imb() into inline assembler.
 1.6 31-Mar-1999  cgd rename the C main() function to main_(). this avoids gcc's implicit
call to __main(), and therefore saves the size of the call and the
size of a stub implementation of __main().
in the primary boot block, don't bother saving/restoring the argument
passed in from the caller. There is no such argument (that we care
about, at least) to the primary. (for secondary, it's the firmware
FD being used.)
 1.5 15-Oct-1998  ross Save a0 during bss clear.
 1.4 28-Mar-1998  cgd GC alpha's ECOFF_TOOLCHAIN make variable, and related bits. Nobody
should be using an ECOFF toolchain on NetBSD/alpha any more.
 1.3 29-Jan-1998  ross While here in alpha/stand, add a technically required imb coherency op
just before transferring to the kernel entry point.
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 24-Jan-1997  cgd branches: 1.1.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file start.S was added on branch alpha-nwscons on 1997-04-06 08:41:03 +0000
 1.11.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.11.2.2 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.11.2.1 02-Apr-1999  cgd file start.S was added on branch netbsd-1-4 on 1999-04-02 03:11:58 +0000
 1.12.36.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.36.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.36.1 03-Aug-2004  skrll Sync with HEAD
 1.2 05-Apr-1999  cgd branches: 1.2.2;
reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.1 02-Apr-1999  cgd add mkbootimage, a program to make a bootable image (i.e. prepend a boot
block, pad to a block boundary) from a console program (i.e. a boot
block, firmware upgrade executable, etc.)
 1.2.2.2 05-Apr-1999  cgd reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.2.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 03:35:25 +0000
 1.7 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.6 14-May-2002  lukem branches: 1.6.116; 1.6.124; 1.6.130;
Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h> (leaving ultrix compat goo in the former)
 1.5 03-Apr-2002  lukem remove boot_block stuff from include/disklabel.h, and migrate to
alpha_boot_block stuff in dev/dec/dec_boot.h
 1.4 19-Feb-2001  cgd branches: 1.4.2; 1.4.4;
convert to use getprogname()
 1.3 14-Jun-1999  cgd branches: 1.3.2;
set bb_flags to 0. Though not strictly necessary (because of an earlier
memset()), this is nice for source-level consistency.
 1.2 05-Apr-1999  cgd branches: 1.2.2; 1.2.4;
clean up, use disklabel.h boot block checksum macro, exit with
EXIT_SUCCESS and EXIT_FAILURE rather than 0 and 1.
 1.1 02-Apr-1999  cgd add mkbootimage, a program to make a bootable image (i.e. prepend a boot
block, pad to a block boundary) from a console program (i.e. a boot
block, firmware upgrade executable, etc.)
 1.2.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.2.2 05-Apr-1999  cgd clean up, use disklabel.h boot block checksum macro, exit with
EXIT_SUCCESS and EXIT_FAILURE rather than 0 and 1.
 1.2.2.1 05-Apr-1999  cgd file mkbootimage.c was added on branch netbsd-1-4 on 1999-04-05 02:56:34 +0000
 1.3.2.1 12-Mar-2001  bouyer Sync with HEAD.
 1.4.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.2 20-Jun-2002  nathanw Catch up to -current.
 1.4.2.1 17-Apr-2002  nathanw Catch up to -current.
 1.6.130.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.124.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.116.1 04-May-2009  yamt sync with head.
 1.27 23-Sep-2019  christos Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
 1.26 20-Jul-2012  matt branches: 1.26.40;
Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE}
 1.25 03-Jan-2003  lukem branches: 1.25.142;
Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
 1.24 22-Sep-2001  tv objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
 1.23 28-May-2001  he branches: 1.23.2; 1.23.4; 1.23.6;
Add Makefile snippets to install netboot in installation/netboot
under ``make release''.
 1.22 21-Jul-2000  jdolecek branches: 1.22.2;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.21 10-Sep-1999  ross branches: 1.21.2; 1.21.12;
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.20 05-Apr-1999  cgd branches: 1.20.2;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.19 05-Apr-1999  cgd don't get the name from newvers, get it from a bootstrap-specific -D
in the Makefile. also, print the banner before we do things that
might cause us to print error messages.
 1.18 02-Apr-1999  cgd update for booted_dev and disk->blkdev changes.
 1.17 02-Apr-1999  cgd unrevert the changes made last night, now that 'installboot' has
had a few bugs fixed that let the problem slip in, and since bootxx's
Makefile now goes out of its way to satisfy installboot's undocumented
and totally unreasonable assumptions about the bootxx file it's operating
on. No point in fixing the assumptions, because sooner rather than later
this incarnation of installboot is going to die.
 1.16 01-Apr-1999  ross Revert recent changes, which either don't work, or can't be built
successfully by ordinary mortals.
 1.15 31-Mar-1999  cgd Compile with -Os (optimize for size).
Clean up the "Region 1" related definitions, and define load addresses,
max load size, and max total size for as many boot block types as we can.
(types = unified, primary, secondary). We can't always define all
values for all boot blocks, though.
Make CPP flags selection less gross.
Use objcopy rather than headersize (yay, evil gets a stake to the heart!).
Use a little shell script to verify that the sizes of the boot blocks are OK.
Do not compile too much more of libsa than we actually have to.
 1.14 28-Mar-1998  thorpej Much more sane boot block builds, from Chris Demetriou.
 1.13 06-Sep-1997  drochner -use DHCP extensions in bootp()
-enable -Wall
 1.12 09-May-1997  mycroft branches: 1.12.4; 1.12.6;
Eliminate bogus redefinitions of standard targets.
 1.11 17-Apr-1997  thorpej STRIP -> STRIPFLAG
 1.10 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.9 24-Jan-1997  cgd branches: 1.9.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.8 23-Jan-1997  cgd add support for reading gzipped kernels.
 1.7 23-Jan-1997  cgd update for new kernel library build process
 1.6 18-Jan-1997  cgd move an 'int debug;' into boot.c (it was the only diff between boot.c and
netboot.c), and nuke netboot.c (using boot.c instead for network boot blocks).
 1.5 17-Jan-1997  cgd clean up a bit. include libraries more carefully, so that when compressed
read code is integrated into libsa things will work properly.
 1.4 16-Jan-1997  cgd seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
 1.3 18-Oct-1996  thorpej Use ${INSTALL}.
 1.2 23-Sep-1996  cgd checkpoint current development, add ELF toolchain build support
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.9.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.12.6.2 09-May-1997  mycroft Eliminate bogus redefinitions of standard targets.
 1.12.6.1 09-May-1997  mycroft file Makefile was added on branch alpha-nwscons on 1997-05-09 07:50:29 +0000
 1.12.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.20.2.2 13-Jul-2000  he Apply patch (requested by he):
Enhance the "make release" process:
o Install the distrib bits under "make release"
 1.20.2.1 05-Apr-1999  he file Makefile was added on branch netbsd-1-4 on 2000-07-13 17:16:17 +0000
 1.21.12.1 28-May-2001  he Pull up revision 1.23 (via patch, requested by he):
Add Makefile snippets to install ``netboot'' under ``make release''.
 1.21.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.22.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.23.6.1 01-Oct-2001  fvdl Catch up with -current.
 1.23.4.3 07-Jan-2003  thorpej Sync with HEAD.
 1.23.4.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.23.4.1 28-May-2001  nathanw file Makefile was added on branch nathanw_sa on 2001-09-26 19:54:42 +0000
 1.23.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.25.142.1 30-Oct-2012  yamt sync with head
 1.26.40.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.4 06-Apr-1997  cgd branches: 1.4.6;
clean up NetBSD RCS ID strings
 1.3 16-Jan-1997  cgd branches: 1.3.2;
more carefully include libkern and libsa headers
 1.2 02-Oct-1996  cgd spaces/tabs cleanup
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.3.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.4.6.1 06-Apr-1997  cgd file conf.c was added on branch alpha-nwscons on 1997-04-06 08:41:24 +0000
 1.17 12-Apr-2021  mrg remove shadowed (common) declarations of various libsa variables
from various boot programs. for macppc and zaurus, avoid building
with -fcommon any more.
 1.16 17-Jul-2011  joerg branches: 1.16.68;
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.15 21-Oct-2009  snj Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).
 1.14 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.13 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.12 19-Mar-2003  drochner branches: 1.12.108; 1.12.116; 1.12.122;
"bootparam" specific variables are defined in libsa/bootparam.c now.
 1.11 09-Nov-2002  thorpej Make the bootblocks build with warnings.
 1.10 13-Nov-1999  thorpej branches: 1.10.6;
Backout my libsa changes.
 1.9 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.8 07-May-1999  drochner branches: 1.8.2; 1.8.4; 1.8.8;
include <lib/libkern/libkern.h> for intoa()/inet_ntoa()
 1.7 23-Jan-1998  thorpej branches: 1.7.10;
Print the correct error number if nfs_mount() fails. From Chris Demetriou.
 1.6 06-Sep-1997  drochner -Wall fixes
 1.5 22-Jul-1997  drochner branches: 1.5.2; 1.5.4;
Don't use <lib/libsa/if_ether.h> anymore. This was a copy of the
old (before ARP changes) <netinet/if_ether.h>, intended for
temporary use.
 1.4 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3 15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.2 16-Jan-1997  cgd branches: 1.2.2; 1.2.6;
more carefully include libkern and libsa headers
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.2.6.1 07-Mar-1997  is Use libsa's copy of old-style if_ether.h for now.
 1.2.2.2 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.5.4.2 22-Jul-1997  drochner Don't use <lib/libsa/if_ether.h> anymore. This was a copy of the
old (before ARP changes) <netinet/if_ether.h>, intended for
temporary use.
 1.5.4.1 22-Jul-1997  drochner file dev_net.c was added on branch alpha-nwscons on 1997-07-22 17:41:02 +0000
 1.5.2.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.7.10.1 21-Jun-1999  thorpej Sync w/ -current.
 1.8.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.4.1 14-Nov-1999  fvdl Sync with -current.
 1.8.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.10.6.1 11-Nov-2002  nathanw Catch up to -current
 1.12.122.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.116.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.108.2 11-Mar-2010  yamt sync with head
 1.12.108.1 04-May-2009  yamt sync with head.
 1.16.68.1 17-Apr-2021  thorpej Sync with HEAD.
 1.4 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.3 09-Nov-2002  thorpej branches: 1.3.112; 1.3.120; 1.3.126;
Make the bootblocks build with warnings.
 1.2 05-Jan-1998  perry branches: 1.2.26;
RCSID Police.
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.2.26.1 11-Nov-2002  nathanw Catch up to -current
 1.3.126.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.120.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.112.1 04-May-2009  yamt sync with head.
 1.9 03-Nov-2013  christos more unused inside 0
 1.8 03-Nov-2013  christos move unused code inside if 0
 1.7 14-Mar-2009  dsl branches: 1.7.12; 1.7.22; 1.7.26;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.6 11-Dec-2005  christos branches: 1.6.78; 1.6.86; 1.6.92;
merge ktrace-lwp.
 1.5 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.4 06-Sep-1997  drochner branches: 1.4.52;
-Wall fixes
 1.3 06-Apr-1997  cgd branches: 1.3.4; 1.3.6;
clean up NetBSD RCS ID strings
 1.2 16-Jan-1997  cgd branches: 1.2.2;
more carefully include libkern and libsa headers
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.3.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3.6.1 06-Apr-1997  cgd file devopen.c was added on branch alpha-nwscons on 1997-04-06 08:41:26 +0000
 1.3.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.4.52.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.52.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.52.1 03-Aug-2004  skrll Sync with HEAD
 1.6.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.78.1 04-May-2009  yamt sync with head.
 1.7.26.1 18-May-2014  rmind sync with head
 1.7.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.11 03-Nov-2013  christos move unused variable inside if 0
 1.10 10-Jan-2013  he branches: 1.10.2;
Include <machine/cpu.h> for alpha_rpcc declaration.
 1.9 12-Jan-2009  tsutsui branches: 1.9.14; 1.9.24;
Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

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

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

Per discussion on current-users.
 1.8 12-Jan-2009  tsutsui Uset uint64_t rather than (signed) long to read the PCC register.
 1.7 11-Jan-2009  dogcow Make it compile.
 1.6 09-Nov-2002  thorpej branches: 1.6.108; 1.6.112; 1.6.120;
Make the bootblocks build with warnings.
 1.5 05-Jan-1998  perry branches: 1.5.26;
RCSID Police.
 1.4 06-Sep-1997  drochner -Wall fixes
 1.3 02-Oct-1996  cgd branches: 1.3.12;
spaces/tabs cleanup
 1.2 23-Sep-1996  cgd checkpoint current development, add ELF toolchain build support
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.3.12.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.5.26.1 11-Nov-2002  nathanw Catch up to -current
 1.6.120.1 19-Jan-2009  skrll Sync with HEAD.
 1.6.112.1 04-May-2009  yamt sync with head.
 1.6.108.1 17-Jan-2009  mjf Sync with HEAD.
 1.9.24.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.24.1 25-Feb-2013  tls resync with head
 1.9.14.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.9.14.1 23-Jan-2013  yamt sync with head
 1.10.2.1 18-May-2014  rmind sync with head
 1.21 03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.20 12-Jan-2009  tsutsui branches: 1.20.64; 1.20.66;
Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

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

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

Per discussion on current-users.
 1.19 13-Mar-2003  drochner branches: 1.19.104; 1.19.108; 1.19.116;
kill the last use of NENTS
(We shouldn't use libsa/netif here at all.)
 1.18 13-Mar-2003  drochner cope with removal of this sick NENTS macro from libsa/netif.h
 1.17 09-Nov-2002  thorpej Make the bootblocks build with warnings.
 1.16 22-Jul-2001  wiz branches: 1.16.2;
bcopy -> memcpy, bzero -> memset
 1.15 13-Nov-1999  thorpej branches: 1.15.8;
Backout my libsa changes.
 1.14 12-Nov-1999  simonb Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>. The alpha still needs libkern for the division
and remainder support.
 1.13 26-May-1999  cgd branches: 1.13.2; 1.13.4; 1.13.8;
uh, get the port name consistently correct (NetBSD/alpha, not NetBSD/Alpha)
 1.12 02-Apr-1999  cgd branches: 1.12.2; 1.12.4; 1.12.6;
abstract the prom device open/close into a separate module, which
provides the correct functions for primary, secondary, and unified
boot blocks. actually behave correctly (e.g. expect correct arguments,
perform correct operations) depending on which you are. also
some minor cleanup.
 1.11 27-Mar-1999  ross Bug fix for the bug fix. Be sure to prom_close() in bootxx and boot, but not
in netboot, and not in diskclose(), but after trying all kernelnames[].
 1.10 06-Sep-1997  drochner -Wall fixes
 1.9 06-Apr-1997  cgd branches: 1.9.4; 1.9.6;
clean up NetBSD RCS ID strings
 1.8 24-Jan-1997  cgd branches: 1.8.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.7 18-Jan-1997  cgd printfs newline cosmetics
 1.6 18-Jan-1997  cgd allow netboot ethernet address to be hard-coded into binary so that
machines with old firmware which doesn't pass it in the boot device
can work. Assume that if the ethernet address isn't passed in, it
uses the old (dain-bramaged) 'read' interface works on my 3000/300LX.
 1.5 16-Jan-1997  cgd more carefully include libkern and libsa headers
 1.4 02-Oct-1996  cgd spaces/tabs cleanup
 1.3 02-Oct-1996  cgd clean and polish a bit
 1.2 23-Sep-1996  cgd checkpoint current development, add ELF toolchain build support
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.8.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.9.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.9.6.1 06-Apr-1997  cgd file if_prom.c was added on branch alpha-nwscons on 1997-04-06 08:41:27 +0000
 1.9.4.1 06-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12.6.1 30-Nov-1999  itojun bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.
 1.12.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.12.2.2 21-Jun-1999  perry pullup 1.12->1.13 (cgd): NetBSD/alpha, not NetBSD/Alpha
 1.12.2.1 02-Apr-1999  perry file if_prom.c was added on branch netbsd-1-4 on 1999-06-21 14:42:53 +0000
 1.13.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.13.4.1 14-Nov-1999  fvdl Sync with -current.
 1.13.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.15.8.1 03-Aug-2001  lukem update to -current
 1.16.2.2 11-Nov-2002  nathanw Catch up to -current
 1.16.2.1 22-Jul-2001  nathanw file if_prom.c was added on branch nathanw_sa on 2002-11-11 21:56:04 +0000
 1.19.116.1 19-Jan-2009  skrll Sync with HEAD.
 1.19.108.1 04-May-2009  yamt sync with head.
 1.19.104.1 17-Jan-2009  mjf Sync with HEAD.
 1.20.66.1 10-Jun-2019  christos Sync with HEAD
 1.20.64.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.2 18-Jan-1997  cgd move an 'int debug;' into boot.c (it was the only diff between boot.c and
netboot.c), and nuke netboot.c (using boot.c instead for network boot blocks).
 1.1 18-Sep-1996  cgd branches: 1.1.2;
start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.1.2.1 24-Jan-1997  cgd sync with trunk
 1.3 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.2 06-Apr-1997  cgd branches: 1.2.6;
clean up NetBSD RCS ID strings
 1.1 18-Sep-1996  cgd branches: 1.1.6;
start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.1.6.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2.6.1 06-Apr-1997  cgd file newvers.sh was added on branch alpha-nwscons on 1997-04-06 08:41:28 +0000
 1.3 06-Apr-1997  cgd branches: 1.3.6;
clean up NetBSD RCS ID strings
 1.2 02-Oct-1996  cgd branches: 1.2.6;
spaces/tabs cleanup
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.2.6.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.3.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3.6.1 06-Apr-1997  cgd file rpcc.S was added on branch alpha-nwscons on 1997-04-06 08:41:28 +0000
 1.10 09-Nov-2001  scw Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.9 02-Aug-2001  bjh21 branches: 1.9.2; 1.9.6;
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
 1.8 21-Jul-2000  jdolecek branches: 1.8.4;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.7 05-Apr-1999  cgd branches: 1.7.2; 1.7.8;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.6 23-Jan-1997  cgd branches: 1.6.12;
add support for reading gzipped kernels.
 1.5 18-Jan-1997  cgd bump version
 1.4 18-Jan-1997  cgd note that enet address can be hard-coded
 1.3 16-Jan-1997  cgd seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
 1.2 02-Oct-1996  cgd bump the version
 1.1 18-Sep-1996  cgd start on some network boot blocks. they work, but:
(1) the if_prom code needs to be cleaned up quite a bit
(right now it hard-codes client's ethernet address), and
(2) much of this code (esp: getsecs.c, netboot.c, newvers.sh,
rpcc.S) should be shared with other Alpha boot blocks,
and dev_net.[ch] should maybe go in libsa proper.
 1.6.12.2 23-Jan-1997  cgd add support for reading gzipped kernels.
 1.6.12.1 23-Jan-1997  cgd file version was added on branch alpha-nwscons on 1997-01-23 23:10:42 +0000
 1.7.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.2.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.7.2.1 05-Apr-1999  cgd file version was added on branch netbsd-1-4 on 1999-04-05 06:56:24 +0000
 1.8.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.4.1 03-Aug-2001  lukem update to -current
 1.9.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.9.2.2 14-Nov-2001  nathanw Catch up to -current.
 1.9.2.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2001-11-14 19:12:41 +0000
 1.10 05-Apr-1999  cgd branches: 1.10.2;
reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.9 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.8 02-Mar-1998  cgd fix typo in last commit (noticed on inspection)
 1.7 02-Mar-1998  cgd allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf
 1.6 22-Jun-1997  mrg branches: 1.6.6;
move man pages into share/man.
 1.5 18-May-1997  mycroft Remove bogus .PATHs.
 1.4 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.3 24-Jan-1997  cgd branches: 1.3.2;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.2 20-Jan-1997  cgd add a manual page for setnetbootinfo
 1.1 18-Jan-1997  cgd program to hard code an ethernet address into a network boot.
 1.3.2.2 22-Jul-1997  cgd sync nwscons branch with changes in -current as of July 21, 1997
 1.3.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.6.6.2 22-Jun-1997  mrg move man pages into share/man.
 1.6.6.1 22-Jun-1997  mrg file Makefile was added on branch alpha-nwscons on 1997-06-22 05:09:59 +0000
 1.10.2.2 05-Apr-1999  cgd reorganize Makefiles so that warning flags aren't accidentally omitted,
and so that all programs and boot blocks are built.
 1.10.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 03:35:25 +0000
 1.3 22-Jun-1997  mrg move man pages into share/man.
 1.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.1 20-Jan-1997  cgd branches: 1.1.2;
add a manual page for setnetbootinfo
 1.1.2.3 22-Jul-1997  cgd sync nwscons branch with changes in -current as of July 21, 1997
 1.1.2.2 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.1.2.1 20-Jan-1997  cgd file setnetbootinfo.8 was added on branch alpha-nwscons on 1997-06-01 04:14:28 +0000
 1.14 26-Mar-2014  christos kill sprintf
 1.13 14-Mar-2009  dsl branches: 1.13.12; 1.13.22; 1.13.26;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.12 22-Sep-2002  mycroft branches: 1.12.112; 1.12.120; 1.12.126;
Remove redundant declaration of ether_ntoa() so this builds again.
 1.11 22-Jul-2001  wiz branches: 1.11.2;
bcopy -> memcpy, bzero -> memset
 1.10 05-Apr-1999  cgd branches: 1.10.2; 1.10.22;
clean up for compiler warning flags
 1.9 03-Dec-1998  ross Tweak this so it will build and run on ILP32 hosts, anyway, 0x...LL constants
are blessed by the C9X draft.
 1.8 04-Feb-1998  thorpej Fixup includes.
 1.7 13-Nov-1997  mjacob remove unneeded and conflicting prototype
 1.6 01-Nov-1997  lukem getopt returns -1 not EOF
 1.5 06-Apr-1997  cgd branches: 1.5.6; 1.5.10;
clean up NetBSD RCS ID strings
 1.4 18-Mar-1997  cgd fix up new-arp goofups
 1.3 15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.2 24-Jan-1997  cgd branches: 1.2.2; 1.2.6;
reorganize Alpha boot block sources: put common sources in a 'common'
directory (so they don't clutter up the arch/alpha/stand), and put
not-common sources in programs' directories.
 1.1 18-Jan-1997  cgd program to hard code an ethernet address into a network boot.
 1.2.6.1 07-Mar-1997  is Use libsa copy of oldstyle if_ether.h for now
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.5.10.1 13-Nov-1997  mellon Pull rev 1.6 and 1.7 up from trunk (mjacob)
 1.5.6.2 06-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.5.6.1 06-Apr-1997  cgd file setnetbootinfo.c was added on branch alpha-nwscons on 1997-04-06 08:41:38 +0000
 1.10.22.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.10.22.1 03-Aug-2001  lukem update to -current
 1.10.2.2 05-Apr-1999  cgd clean up for compiler warning flags
 1.10.2.1 05-Apr-1999  cgd file setnetbootinfo.c was added on branch netbsd-1-4 on 1999-04-05 02:55:39 +0000
 1.11.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.11.2.1 22-Jul-2001  nathanw file setnetbootinfo.c was added on branch nathanw_sa on 2002-10-18 02:34:28 +0000
 1.12.126.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.120.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.112.1 04-May-2009  yamt sync with head.
 1.13.26.1 18-May-2014  rmind sync with head
 1.13.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 20-Jul-2012  matt Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE}
 1.2 21-Jul-2000  jdolecek branches: 1.2.164;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.1 11-Apr-1999  cgd branches: 1.1.2; 1.1.4;
start on a glorified system-examination console program.
 1.1.4.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.164.1 30-Oct-2012  yamt sync with head
 1.7 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.6 13-Dec-2015  christos PR/50530: David Binderman: Add missing printf args
 1.5 22-Jan-2011  joerg branches: 1.5.14; 1.5.32;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.4 14-Mar-2009  dsl branches: 1.4.4; 1.4.6; 1.4.8;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.3 08-Jun-2002  yamt branches: 1.3.112; 1.3.120; 1.3.126;
make auto const variables static.
 1.2 11-May-1999  cgd branches: 1.2.2; 1.2.16; 1.2.18; 1.2.30;
add some more bits, mostly stubs
 1.1 11-Apr-1999  cgd start on a glorified system-examination console program.
 1.2.30.1 09-Jul-2002  gehenna catch up with -current.
 1.2.18.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.16.1 20-Jun-2002  nathanw Catch up to -current.
 1.2.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.3.126.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.120.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.112.1 04-May-2009  yamt sync with head.
 1.4.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.4.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.5.32.2 09-Jul-2016  skrll Sync with HEAD
 1.5.32.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.5.14.1 03-Dec-2017  jdolecek update from HEAD
 1.2 21-Jul-2000  jdolecek switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.1 11-Apr-1999  cgd branches: 1.1.2; 1.1.4;
start on a glorified system-examination console program.
 1.1.4.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.9 20-Jul-2012  matt Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE}
 1.8 25-Aug-2010  christos branches: 1.8.8;
change LOAD_NOTE to LOAD_BACKWARDS
 1.7 03-Feb-2009  tsutsui branches: 1.7.4; 1.7.6;
Disable LOAD_NOTE on ustarboot to avoid backward seek on loading a kernel.
Tested on DEC 3000/300 and AlphaPC 164, fixes PR install/38943 on alpha.

XXX: should we enable LOAD_NOTE on ustarfs tape boot to load modules?
 1.6 22-Sep-2001  tv branches: 1.6.124; 1.6.132; 1.6.134;
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
 1.5 21-Jul-2000  jdolecek branches: 1.5.2; 1.5.4; 1.5.6;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.4 10-Sep-1999  ross branches: 1.4.2;
Nuke the alpha ecoff/elf bootloader and use the libsa/ one instead.
 1.3 05-Apr-1999  cgd branches: 1.3.2;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.2 05-Apr-1999  cgd don't get the name from newvers, get it from a bootstrap-specific -D
in the Makefile. also, print the banner before we do things that
might cause us to print error messages.
 1.1 02-Apr-1999  cgd add ustarboot, a ustar-capable unified bootstrap intended to be
mkbootimage'd and slapped on the front of a tar file.
 1.3.2.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.3.2.1 05-Apr-1999  cgd file Makefile was added on branch netbsd-1-4 on 1999-04-05 06:56:25 +0000
 1.4.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 01-Oct-2001  fvdl Catch up with -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.1 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.6.134.1 06-Feb-2009  snj Pull up following revision(s) (requested by tsutsui in ticket #418):
sys/arch/alpha/stand/common/boot.c: revision 1.30
sys/arch/alpha/stand/ustarboot/Makefile: revision 1.7
Disable LOAD_NOTE on ustarboot to avoid backward seek on loading a kernel.
Tested on DEC 3000/300 and AlphaPC 164, fixes PR install/38943 on alpha.
XXX: should we enable LOAD_NOTE on ustarfs tape boot to load modules?
 1.6.132.1 03-Mar-2009  skrll Sync with HEAD.
 1.6.124.2 09-Oct-2010  yamt sync with head
 1.6.124.1 04-May-2009  yamt sync with head.
 1.7.6.1 05-Mar-2011  rmind sync with head
 1.7.4.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.8.8.1 30-Oct-2012  yamt sync with head
 1.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.1 02-Apr-1999  cgd add ustarboot, a ustar-capable unified bootstrap intended to be
mkbootimage'd and slapped on the front of a tar file.
 1.5 09-Nov-2001  scw Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.4 02-Aug-2001  bjh21 branches: 1.4.2; 1.4.6;
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
 1.3 21-Jul-2000  jdolecek branches: 1.3.4;
switch to sys/conf/newvers_stand.sh for generation of version files
move the vers.c depend/build goo to Makefile.bootprogs and remove
explicit rules in other Makefiles
sync the message in */version files with other ports using newvers_stand.sh

XXX the new depend rules were tested to limited extend (also with obj dirs)
XXX on i386 and should be ok; the changes should not otherwise influence build
 1.2 05-Apr-1999  cgd branches: 1.2.2; 1.2.8;
now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.1 02-Apr-1999  cgd add ustarboot, a ustar-capable unified bootstrap intended to be
mkbootimage'd and slapped on the front of a tar file.
 1.2.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.2.2 05-Apr-1999  cgd now that boot.c does the bootstrap name with a -D, the newvers scripts
are all the same, so eliminate the redundancy. also, use mrg's
"Version:" trick to find the version rather than using the RCS ID.
(I must have been having a ... bad day.) Also, bump boot and netboot
versions for all the changes that have been happening lately.
 1.2.2.1 05-Apr-1999  cgd file version was added on branch netbsd-1-4 on 1999-04-05 06:56:25 +0000
 1.3.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.1 03-Aug-2001  lukem update to -current
 1.4.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.2.2 14-Nov-2001  nathanw Catch up to -current.
 1.4.2.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2001-11-14 19:12:41 +0000

RSS XML Feed