Home | History | Annotate | only in /src/sys/arch/mvme68k/stand
History log of /src/sys/arch/mvme68k/stand
RevisionDateAuthorComments
 1.7 06-May-2021  rin PR port-mvme68k/56146

Build wrtvid as tools.
 1.6 19-Jan-2009  he branches: 1.6.82;
Remove parens around target in .ifmake -- new make doesn't like it.
 1.5 28-May-2002  bjh21 branches: 1.5.112; 1.5.120;
.WAIT after building libbug and libsa, and before building anything that uses
them.
 1.4 19-Jul-2001  scw branches: 1.4.6; 1.4.14;
Descend into wrtvid in all but the install pass.
 1.3 24-Jul-2000  jdolecek branches: 1.3.4;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 17-May-1996  chuck branches: 1.2.4; 1.2.32;
update for new boot stuff
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.32.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.4.1 29-May-1996  chuck remove sboot for now
 1.3.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.4.1 03-Aug-2001  lukem update to -current
 1.4.14.1 30-May-2002  gehenna Catch up with -current.
 1.4.6.2 20-Jun-2002  nathanw Catch up to -current.
 1.4.6.1 19-Jul-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-06-20 03:40:02 +0000
 1.5.120.1 03-Mar-2009  skrll Sync with HEAD.
 1.5.112.1 04-May-2009  yamt sync with head.
 1.6.82.1 13-May-2021  thorpej Sync with HEAD.
 1.28 06-May-2021  rin PR port-mvme68k/56146

Build wrtvid as tools.
 1.27 15-Apr-2021  mrg branches: 1.27.2;
more -fcommon for boot programs.
 1.26 08-Apr-2017  christos branches: 1.26.28;
centralize vers.c building for standalone programs.
 1.25 12-Jan-2014  tsutsui branches: 1.25.6; 1.25.10; 1.25.14;
Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.24 21-Sep-2013  tsutsui Explicitly link SRT0.o (Standalone RunTime startup code) first.

This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.

The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.

Should be pulled up to netbsd-6 branches.
 1.23 12-Aug-2013  joerg Build boot loaders without unwind tables.
 1.22 22-Jan-2011  joerg branches: 1.22.4; 1.22.10; 1.22.14; 1.22.16; 1.22.18; 1.22.24;
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.21 02-Jan-2011  tsutsui branches: 1.21.2; 1.21.4;
Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.20 24-Dec-2009  tsutsui branches: 1.20.4;
Use <bsd.klinks.mk> to create machine and ${MACHINE_CPU} symlinks.
 1.19 06-Dec-2009  tsutsui Create machine and ${MACHINE_CPU} symlinks properly and
remove unnecessary dependencies so that parallel build works.
 1.18 11-Apr-2009  scw Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.17 03-Apr-2009  tsutsui Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
 1.16 12-Jan-2009  tsutsui branches: 1.16.2;
Make sure machine and ${MACHINE_ARCH} symlinks are always created.
 1.15 12-Jan-2009  tsutsui Add some make variables to suppress errors on build without DESTDIR.
 1.14 24-Dec-2005  tsutsui branches: 1.14.24; 1.14.68; 1.14.74; 1.14.78; 1.14.86; 1.14.88;
Move some definitions from CFLAGS to CPPFLAGS so that SRT0.S can
include <m68k/asm.h> properly.
 1.13 11-Dec-2005  christos merge ktrace-lwp.
 1.12 26-Oct-2003  lukem branches: 1.12.16;
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.11 24-Oct-2003  scw Add -ffreestanding
 1.10 27-Feb-2003  scw branches: 1.10.2;
Move the -D__daddr_t from libsa/Makefile to Makefile.booters so
the bootloaders get to benefit from it, not just libsa.
 1.9 28-May-2002  bjh21 Use ${PRINTOBJDIR} rather that rolling our own.
This prevents parallel builds passing "--- xxx ---" (which make prints to
indicate it's building target "xxx") to ld.
 1.8 12-Dec-2001  tv branches: 1.8.8;
MKfoo=no -> NOfoo
 1.7 19-Jul-2001  scw branches: 1.7.6;
Descend into wrtvid in all but the install pass.
 1.6 07-Dec-2000  scw branches: 1.6.4;
Missed this one in yesterday's bootloader commits:
Change BUGCRT from bugcrt.o to bugstart.o.
 1.5 04-Dec-2000  scw Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.4 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.3 20-Nov-2000  scw branches: 1.3.2;
Add support for the m68060-based machines: MVME-172 and MVME-177.
CPU support taken from a combination of NetBSD/amiga and NetBSD/x68k.

At this time, MVME-172 works but MVME-177 is untested. Since the '177
is otherwise identical to the MVME-167, this should *just work*.
 1.2 28-Jul-2000  scw Really make this work for `dependall'. Also strip bootst.bug before
running it through wrtvid.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3.2.5 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.3.2.4 08-Dec-2000  bouyer Sync with HEAD.
 1.3.2.3 22-Nov-2000  bouyer Sync with HEAD.
 1.3.2.2 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.3.2.1 20-Nov-2000  bouyer file Makefile.booters was added on branch thorpej_scsipi on 2000-11-20 20:15:27 +0000
 1.6.4.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.1 03-Aug-2001  lukem update to -current
 1.7.6.3 20-Jun-2002  nathanw Catch up to -current.
 1.7.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.7.6.1 19-Jul-2001  nathanw file Makefile.booters was added on branch nathanw_sa on 2002-01-08 00:26:36 +0000
 1.8.8.1 30-May-2002  gehenna Catch up with -current.
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.16.1 21-Jun-2006  yamt sync with head.
 1.14.88.1 12-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #688):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.14.86.2 28-Apr-2009  skrll Sync with HEAD.
 1.14.86.1 19-Jan-2009  skrll Sync with HEAD.
 1.14.78.2 11-Mar-2010  yamt sync with head
 1.14.78.1 04-May-2009  yamt sync with head.
 1.14.74.1 17-Jan-2009  mjf Sync with HEAD.
 1.14.68.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.14.24.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.16.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.4.1 05-Mar-2011  rmind sync with head
 1.21.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.21.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.22.24.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.22.18.2 18-May-2014  rmind sync with head
 1.22.18.1 28-Aug-2013  rmind sync with head
 1.22.16.1 26-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.22.14.2 03-Dec-2017  jdolecek update from HEAD
 1.22.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.10.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.22.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.25.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.25.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.25.6.1 28-Aug-2017  skrll Sync with HEAD
 1.26.28.1 17-Apr-2021  thorpej Sync with HEAD.
 1.27.2.1 13-May-2021  thorpej Sync with HEAD.
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.3 17-May-1996  chuck branches: 1.3.32;
update for new boot stuff
 1.2 12-Apr-1996  chuck sync with sun3 version
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.3.32.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.7 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.6 04-Dec-2000  scw branches: 1.6.152;
Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 25-Jun-2000  scw Some tweaks to make things work properly with `dependall'.
 1.3 12-Jun-1998  cgd branches: 1.3.16; 1.3.28;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.2 18-Oct-1996  thorpej Use ${INSTALL}.
 1.1 17-May-1996  chuck bootsd: import from sun3 port, adjust for mvme68k port by me
 1.3.28.1 26-Jun-2000  scw Pullup from trunk: 1.3 - 1.4
Approved by: thorpej

DTRT for `dependall' during a make build. This slipped through the net
due to a local fix which got forgotten about.
 1.3.16.2 08-Dec-2000  bouyer Sync with HEAD.
 1.3.16.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.152.1 05-Mar-2011  rmind sync with head
 1.7 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.6 11-Dec-2005  christos branches: 1.6.50; 1.6.56; 1.6.64;
merge ktrace-lwp.
 1.5 28-Jun-2005  junyoung branches: 1.5.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.3 24-Jul-2000  jdolecek branches: 1.3.24;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.1 17-May-1996  chuck branches: 1.1.32;
bootsd: import from sun3 port, adjust for mvme68k port by me
 1.1.32.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.3.24.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.24.1 03-Aug-2004  skrll Sync with HEAD
 1.5.2.1 21-Jan-2008  yamt sync with head
 1.6.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.6.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.50.1 23-Mar-2008  matt sync with HEAD
 1.5 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.4 11-Dec-2005  christos branches: 1.4.50; 1.4.56; 1.4.64;
merge ktrace-lwp.
 1.3 28-Jun-2005  junyoung branches: 1.3.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.2 23-Jun-2005  junyoung Use FS_OPS() macro.
 1.1 17-May-1996  chuck branches: 1.1.68;
bootsd: import from sun3 port, adjust for mvme68k port by me
 1.1.68.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.2.1 21-Jan-2008  yamt sync with head
 1.4.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.4.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.50.1 23-Mar-2008  matt sync with HEAD
 1.5 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.4 09-Nov-2001  scw branches: 1.4.144;
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.3 02-Aug-2001  bjh21 branches: 1.3.4; 1.3.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.2 24-Sep-2000  jdolecek branches: 1.2.2; 1.2.6;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.2.2 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.1 24-Sep-2000  bouyer file version was added on branch thorpej_scsipi on 2000-11-20 20:15:27 +0000
 1.3.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.6.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2002-01-08 00:26:36 +0000
 1.3.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.144.1 05-Mar-2011  rmind sync with head
 1.2 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 17-May-1996  chuck branches: 1.1.32;
bootsd: import from sun3 port, adjust for mvme68k port by me
 1.1.32.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.15 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.14 09-Feb-2002  lukem branches: 1.14.144;
use ${INSTALL_FILE} as appropriate
 1.13 23-Jan-2002  scw Completely re-write wrtvid.c to make it usable during a cross-build.
Instead of parsing the 1st stage booter in wrtvid, use objcopy to
generate a binary image, leaving wrtvid to create the VID/CFG block.
 1.12 04-Dec-2000  scw branches: 1.12.4; 1.12.8;
Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.11 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.10 28-Jul-2000  scw Really make this work for `dependall'. Also strip bootst.bug before
running it through wrtvid.
 1.9 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.8 09-Jul-2000  jdolecek fix accidentaly dropped dependance on wrtvid
 1.7 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.6 25-Jun-2000  scw Some tweaks to make things work properly with `dependall'.
 1.5 12-Jun-1998  cgd branches: 1.5.16; 1.5.28;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.4 18-Oct-1996  thorpej Use ${INSTALL}.
 1.3 28-May-1996  chuck new bootst (based on sun3 tapeboot)
 1.2 17-May-1996  chuck branches: 1.2.4;
fix comment
 1.1 17-May-1996  chuck bootst: from Dale Rahn.
 1.2.4.1 28-May-1996  chuck fix bootst
 1.5.28.1 26-Jun-2000  scw Pullup from trunk: 1.5 - 1.6
Approved by: thorpej

DTRT for `dependall' during a make build. This slipped through the net
due to a local fix which got forgotten about.
 1.5.16.2 08-Dec-2000  bouyer Sync with HEAD.
 1.5.16.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.8.1 28-Feb-2002  nathanw Catch up to -current.
 1.12.4.2 16-Mar-2002  jdolecek Catch up with -current.
 1.12.4.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.14.144.1 05-Mar-2011  rmind sync with head
 1.10 11-Jun-2016  dholland gets_s -> kgets.

The exact name isn't that important; but it is important not to use
"gets_s" and thereby allow anyone to falsely get the impression we're
implementing Annex K. We aren't.

ok core.
 1.9 05-Jun-2016  christos use gets_s
 1.8 12-Jan-2008  tsutsui branches: 1.8.54; 1.8.74;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.7 11-Dec-2005  christos branches: 1.7.50; 1.7.56; 1.7.64;
merge ktrace-lwp.
 1.6 28-Jun-2005  junyoung branches: 1.6.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 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 24-Mar-2002  scw branches: 1.4.10;
Pass RB_NOSYM to exec_mvme() otherwise loadfile() tries to lseek()
backwards, which we don't support.
 1.3 24-Jul-2000  jdolecek branches: 1.3.4; 1.3.8;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.1 28-May-1996  chuck branches: 1.1.2; 1.1.32;
fix bootst (sync with sun3 tapeboot)
 1.1.32.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 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file boot.c was added on branch netbsd-1-2 on 1996-05-28 15:23:54 +0000
 1.3.8.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.10.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.10.1 03-Aug-2004  skrll Sync with HEAD
 1.6.2.1 21-Jan-2008  yamt sync with head
 1.7.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.7.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.50.1 23-Mar-2008  matt sync with HEAD
 1.8.74.1 09-Jul-2016  skrll Sync with HEAD
 1.8.54.1 03-Dec-2017  jdolecek update from HEAD
 1.3 28-May-1996  chuck delete non-working bootst
 1.2 17-May-1996  chuck branches: 1.2.4;
fix comment
 1.1 17-May-1996  chuck bootst: from Dale Rahn.
 1.2.4.1 28-May-1996  chuck no longer needed
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.2 23-Jun-2005  junyoung Use FS_OPS() macro.
 1.1 28-May-1996  chuck branches: 1.1.2; 1.1.68;
fix bootst (sync with sun3 tapeboot)
 1.1.68.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file conf.c was added on branch netbsd-1-2 on 1996-05-28 15:23:55 +0000
 1.13 30-Mar-2014  christos fixes for gcc-4.8 (John D. Baker)
 1.12 17-Jul-2011  joerg branches: 1.12.2; 1.12.12; 1.12.16;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.11 11-Apr-2009  scw Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.10 28-Apr-2008  martin branches: 1.10.8; 1.10.10; 1.10.14;
Remove clause 3 and 4 from TNF licenses
 1.9 12-Jan-2008  tsutsui branches: 1.9.6; 1.9.8; 1.9.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.8 04-Mar-2007  christos branches: 1.8.20; 1.8.26; 1.8.32;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.7 11-Dec-2005  christos branches: 1.7.24; 1.7.26; 1.7.34;
merge ktrace-lwp.
 1.6 28-Jun-2005  junyoung branches: 1.6.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.5 07-Jul-2001  scw branches: 1.5.8; 1.5.24;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.4 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 05-Sep-1998  pk branches: 1.3.14;
Assign my copyrights to TNF.
 1.2 17-Dec-1997  scw Workaround for bug in 147Bug PROM (my version, 2.2, at least) which
prevents booting from tape in the obvious way.
 1.1 28-May-1996  chuck branches: 1.1.2;
fix bootst (sync with sun3 tapeboot)
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file dev_tape.c was added on branch netbsd-1-2 on 1996-05-28 15:23:56 +0000
 1.3.14.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.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.8.2 07-Jul-2001  scw bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.5.8.1 07-Jul-2001  scw file dev_tape.c was added on branch nathanw_sa on 2001-07-07 09:06:44 +0000
 1.6.2.2 21-Jan-2008  yamt sync with head
 1.6.2.1 03-Sep-2007  yamt sync with head.
 1.7.34.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.7.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.7.24.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.8.32.1 19-Jan-2008  bouyer Sync with HEAD
 1.8.26.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.20.1 23-Mar-2008  matt sync with HEAD
 1.9.10.2 04-May-2009  yamt sync with head.
 1.9.10.1 16-May-2008  yamt sync with head.
 1.9.8.1 18-May-2008  yamt sync with head.
 1.9.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.10.10.1 12-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #688):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.10.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.16.1 18-May-2014  rmind sync with head
 1.12.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 24-Jul-2000  jdolecek branches: 1.3.40; 1.3.102; 1.3.108; 1.3.116;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 05-Jan-1998  perry branches: 1.2.16;
RCSID Police.
 1.1 28-May-1996  chuck branches: 1.1.2;
fix bootst (sync with sun3 tapeboot)
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file dev_tape.h was added on branch netbsd-1-2 on 1996-05-28 15:24:00 +0000
 1.2.16.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.3.116.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.108.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.102.1 23-Mar-2008  matt sync with HEAD
 1.3.40.1 21-Jan-2008  yamt sync with head
 1.11 21-Oct-2009  snj Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).
 1.10 12-Jan-2008  tsutsui branches: 1.10.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.9 20-May-2006  mrg branches: 1.9.36; 1.9.42; 1.9.50;
change some variable types from int to size_t, since that's what libsa
dv_strategy() wants for the 6th argument.
 1.8 25-Jan-2006  christos branches: 1.8.2; 1.8.4; 1.8.6; 1.8.10; 1.8.12;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.7 11-Dec-2005  christos branches: 1.7.2;
merge ktrace-lwp.
 1.6 28-Jun-2005  junyoung branches: 1.6.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.5 24-Aug-2003  he Adapt to const-ification of the first arg of the open function of fs_ops.
 1.4 09-Nov-2001  scw branches: 1.4.16;
G/C some debug printfs inadvertently left in the last commit.
 1.3 09-Nov-2001  scw Implement just enough of an lseek() to keep loadfile_elf32() happy.
While I'm here, bump RAWFS_BSIZE up to 8192 since the installation
instructions use "bs=8k oconv=sync". My Archive Viper now streams
nicely while booting.
 1.2 07-Jul-2001  scw branches: 1.2.2; 1.2.6; 1.2.8;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.1 28-May-1996  chuck branches: 1.1.2;
fix bootst (sync with sun3 tapeboot)
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file rawfs.c was added on branch netbsd-1-2 on 1996-05-28 15:23:57 +0000
 1.2.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.8.1 07-Jul-2001  nathanw file rawfs.c was added on branch nathanw_sa on 2002-01-08 00:26:36 +0000
 1.2.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.2.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.16.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.16.1 03-Aug-2004  skrll Sync with HEAD
 1.6.2.2 21-Jan-2008  yamt sync with head
 1.6.2.1 21-Jun-2006  yamt sync with head.
 1.7.2.1 01-Feb-2006  yamt sync with head.
 1.8.12.1 19-Jun-2006  chap Sync with head.
 1.8.10.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.8.6.1 24-May-2006  yamt sync with head.
 1.8.4.1 01-Jun-2006  kardel Sync with head.
 1.8.2.1 09-Sep-2006  rpaulo sync with head
 1.9.50.1 19-Jan-2008  bouyer Sync with HEAD
 1.9.42.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.36.1 23-Mar-2008  matt sync with HEAD
 1.10.10.1 11-Mar-2010  yamt sync with head
 1.4 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 11-Dec-2005  christos branches: 1.3.50; 1.3.56; 1.3.64;
merge ktrace-lwp.
 1.2 24-Aug-2003  he branches: 1.2.16;
Adapt to const-ification of the first arg of the open function of fs_ops.
 1.1 28-May-1996  chuck branches: 1.1.2; 1.1.68;
fix bootst (sync with sun3 tapeboot)
 1.1.68.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.68.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.68.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file rawfs.h was added on branch netbsd-1-2 on 1996-05-28 15:24:01 +0000
 1.2.16.1 21-Jan-2008  yamt sync with head
 1.3.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.50.1 23-Mar-2008  matt sync with HEAD
 1.6 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.5 11-Apr-2009  scw branches: 1.5.4;
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.

Bump bootst version on account of the above fix.

While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.4 09-Nov-2001  scw branches: 1.4.68; 1.4.112; 1.4.122; 1.4.130; 1.4.132; 1.4.136;
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.3 02-Aug-2001  bjh21 branches: 1.3.4; 1.3.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.2 24-Sep-2000  jdolecek branches: 1.2.2; 1.2.6;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.2.2 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.1 24-Sep-2000  bouyer file version was added on branch thorpej_scsipi on 2000-11-20 20:15:27 +0000
 1.3.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.6.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2002-01-08 00:26:37 +0000
 1.3.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.136.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.132.1 12-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #688):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.4.130.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.122.1 04-May-2009  yamt sync with head.
 1.4.112.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.4.68.1 15-Apr-2009  snj Pull up following revision(s) (requested by scw in ticket #1304):
sys/arch/mvme68k/stand/Makefile.booters: revision 1.18
sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11
sys/arch/mvme68k/stand/bootst/version: revision 1.5
Fix for install/40961: The RAMDISK kernel has grown significantly
since bootst was written. Grab 3MB of the kernel image from tape
in hackprom_diskrd() instead of 2MB.
Bump bootst version on account of the above fix.
While here, use -Os instead of -O2 to compile mvme68k stand code.
 1.5.4.1 05-Mar-2011  rmind sync with head
 1.3 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 05-Jan-1998  perry branches: 1.2.16;
RCSID Police.
 1.1 28-May-1996  chuck branches: 1.1.2;
fix bootst (sync with sun3 tapeboot)
 1.1.2.2 28-May-1996  chuck fix bootst (sync with sun3 tapeboot)
 1.1.2.1 28-May-1996  chuck file version.c was added on branch netbsd-1-2 on 1996-05-28 15:23:59 +0000
 1.2.16.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.10 21-Jan-2011  joerg Switch remaining platforms to modern CPP for assembler.
 1.9 02-Jan-2011  tsutsui branches: 1.9.2; 1.9.4;
Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.8 05-Dec-2000  scw branches: 1.8.152;
bootxx doesn't need the code relocating stub linked in.
 1.7 04-Dec-2000  scw Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.6 04-Dec-2000  scw Add support for ELF boot blocks.
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 25-Jun-2000  scw Some tweaks to make things work properly with `dependall'.
 1.3 12-Jun-1998  cgd branches: 1.3.16; 1.3.28;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.2 18-Oct-1996  thorpej Use ${INSTALL}.
 1.1 17-May-1996  chuck bootxx: import from sun3 port, adapt to mvme68k by me.
 1.3.28.1 26-Jun-2000  scw Pullup from trunk: 1.3 - 1.4
Approved by: thorpej

DTRT for `dependall' during a make build. This slipped through the net
due to a local fix which got forgotten about.
 1.3.16.2 08-Dec-2000  bouyer Sync with HEAD.
 1.3.16.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.8.152.1 05-Mar-2011  rmind sync with head
 1.9.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.9.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1 04-Dec-2000  scw branches: 1.1.2;
Add support for ELF boot blocks.
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 04-Dec-2000  bouyer file block_x.S was added on branch thorpej_scsipi on 2000-12-08 09:28:41 +0000
 1.16 22-Aug-2009  he This one needs <sys/exec_aout.h>, so include it explicitly.
 1.15 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.14 12-Jan-2008  tsutsui branches: 1.14.6; 1.14.8; 1.14.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.13 20-May-2006  mrg branches: 1.13.36; 1.13.42; 1.13.50;
change some variable types from int to size_t, since that's what libsa
dv_strategy() wants for the 6th argument.
 1.12 11-Dec-2005  christos branches: 1.12.4; 1.12.6; 1.12.8; 1.12.12; 1.12.14;
merge ktrace-lwp.
 1.11 28-Jun-2005  junyoung branches: 1.11.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.10 28-Jun-2005  junyoung ANSI, KNF, drop trailing spaces, and etc.
 1.9 24-Jan-2003  fvdl branches: 1.9.2;
Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.8 05-May-2002  jdolecek remove redundant (and wrong) main() prototype
 1.7 04-May-2002  scw Make sure main() has a prototype and a return type of "int".
 1.6 04-Dec-2000  scw branches: 1.6.4; 1.6.8;
Add support for ELF boot blocks.
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 09-Jul-2000  jdolecek backout previous change, this should not have been committed (yet)
 1.3 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.2 05-Sep-1998  pk branches: 1.2.14;
Assign my copyrights to TNF.
 1.1 17-May-1996  chuck bootxx: import from sun3 port, adapt to mvme68k by me.
 1.2.14.2 08-Dec-2000  bouyer Sync with HEAD.
 1.2.14.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.8.1 20-Jun-2002  nathanw Catch up to -current.
 1.6.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.2.2 21-Jan-2008  yamt sync with head
 1.11.2.1 21-Jun-2006  yamt sync with head.
 1.12.14.1 19-Jun-2006  chap Sync with head.
 1.12.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.12.8.1 24-May-2006  yamt sync with head.
 1.12.6.1 01-Jun-2006  kardel Sync with head.
 1.12.4.1 09-Sep-2006  rpaulo sync with head
 1.13.50.1 19-Jan-2008  bouyer Sync with HEAD
 1.13.42.1 18-Feb-2008  mjf Sync with HEAD.
 1.13.36.1 23-Mar-2008  matt sync with HEAD
 1.14.10.2 16-Sep-2009  yamt sync with head
 1.14.10.1 16-May-2008  yamt sync with head.
 1.14.8.1 18-May-2008  yamt sync with head.
 1.14.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 04-Dec-2000  scw branches: 1.1.2;
Add support for ELF boot blocks.
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 04-Dec-2000  bouyer file bootxx.h was added on branch thorpej_scsipi on 2000-12-08 09:28:41 +0000
 1.4 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 11-Dec-2005  christos branches: 1.3.50; 1.3.56; 1.3.64;
merge ktrace-lwp.
 1.2 28-Jun-2005  junyoung branches: 1.2.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.1 17-May-1996  chuck branches: 1.1.68;
bootxx: import from sun3 port, adapt to mvme68k by me.
 1.1.68.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.1 21-Jan-2008  yamt sync with head
 1.3.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.50.1 23-Mar-2008  matt sync with HEAD
 1.3 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.2 24-Sep-2000  jdolecek branches: 1.2.2; 1.2.154;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2.154.1 05-Mar-2011  rmind sync with head
 1.2.2.2 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.1 24-Sep-2000  bouyer file version was added on branch thorpej_scsipi on 2000-11-20 20:15:29 +0000
 1.2 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 17-May-1996  chuck branches: 1.1.32;
bootxx: import from sun3 port, adapt to mvme68k by me.
 1.1.32.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.18 25-Jan-2016  christos uses _KERNTYPES
 1.17 21-Aug-2013  matt branches: 1.17.6;
Use <bsd.klinks.mk>
 1.16 28-Dec-2005  skrll branches: 1.16.112; 1.16.122; 1.16.128;
Don't try and create/cleanup symlinks before objdirs are created.

Doesn't everyone use ro src?
 1.15 11-Dec-2005  christos merge ktrace-lwp.
 1.14 11-May-2005  jmc branches: 1.14.2;
Don't need realdepend/realall depends now that .BEGIN works again
 1.13 04-Feb-2003  matt branches: 1.13.2;
Add CPPFLAGS+=-D__daddr_t=int32_t
Add snprintf.c to libsa/Makefile
 1.12 27-Aug-2002  lukem 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.11 12-Dec-2001  lukem branches: 1.11.8;
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
 1.10 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.9 31-Oct-2001  thorpej branches: 1.9.2;
Need byteorder.c for loadfile_elf*.c
 1.8 31-Oct-2001  thorpej Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
objects.
 1.7 05-Aug-2001  scw branches: 1.7.4;
Create the `machine' symlink before building.
 1.6 04-Dec-2000  scw branches: 1.6.4;
Add support for ELF boot blocks.
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 13-Feb-1999  lukem branches: 1.4.8;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 02-Mar-1998  cgd allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf
 1.2 22-Jun-1997  mrg move man pages into share/man.
 1.1 17-May-1996  chuck installboot: from sun ports
 1.4.8.2 08-Dec-2000  bouyer Sync with HEAD.
 1.4.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.6.4.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.7.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.9.2.3 27-Aug-2002  nathanw Catch up to -current.
 1.9.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.9.2.1 31-Oct-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-01-08 00:26:37 +0000
 1.11.8.1 31-Aug-2002  gehenna catch up with -current.
 1.13.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.1 21-Jun-2006  yamt sync with head.
 1.16.128.1 28-Aug-2013  rmind sync with head
 1.16.122.2 03-Dec-2017  jdolecek update from HEAD
 1.16.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17.6.1 19-Mar-2016  skrll Sync with HEAD
 1.2 22-Jun-1997  mrg move man pages into share/man.
 1.1 17-May-1996  chuck installboot: from sun ports
 1.19 21-Sep-2014  christos remove dead code
 1.18 23-Jun-2013  dholland branches: 1.18.8;
fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)
 1.17 19-Jun-2013  dholland Rename ambiguous macros:
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
INOPB -> FFS_INOPB, LFS_INOPB
INOPF -> FFS_INOPF, LFS_INOPF
blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.
 1.16 22-Jan-2013  dholland Stuff UFS_ in front of a few of ufs's symbols to reduce namespace
pollution. Specifically:
ROOTINO -> UFS_ROOTINO
WINO -> UFS_WINO
NXADDR -> UFS_NXADDR
NDADDR -> UFS_NDADDR
NIADDR -> UFS_NIADDR
MAXSYMLINKLEN -> UFS_MAXSYMLINKLEN
MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency)

Sort out ext2fs's misuse of NDADDR and NIADDR; fortunately, these have
the same values in ext2fs and ffs.

No functional change intended.
 1.15 28-Apr-2008  martin branches: 1.15.34; 1.15.44;
Remove clause 3 and 4 from TNF licenses
 1.14 12-Jan-2008  tsutsui branches: 1.14.6; 1.14.8; 1.14.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.13 17-Oct-2007  garbled branches: 1.13.2; 1.13.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.12 17-Jul-2007  christos branches: 1.12.8;
kill MFSNAMELEN
 1.11 11-Dec-2005  christos branches: 1.11.30; 1.11.38; 1.11.42;
merge ktrace-lwp.
 1.10 21-May-2004  he branches: 1.10.12;
Adapt to the statfs -> statvfs changes.
 1.9 07-Apr-2003  he branches: 1.9.2;
Fix this so that it compiles after the UFS2 merge. This program can
still only deal with UFS1 file systems.

Reviewed by scw.
 1.8 24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.7 09-Dec-2000  scw Bah. Somehow the a.out versions of the bootxx symbols got deleted; put
them back.
 1.6 04-Dec-2000  scw Add support for ELF boot blocks.
 1.5 10-Jul-2000  jdolecek make compilable with -Wall -Werror
 1.4 05-Sep-1998  pk branches: 1.4.14;
Assign my copyrights to TNF.
 1.3 17-Dec-1997  scw Always write primary bootstrap code to raw partition, even when the
secondary bootstrap is on partition >= b.
 1.2 01-Nov-1997  lukem getopt returns -1 not EOF
 1.1 17-May-1996  chuck installboot: from sun ports
 1.4.14.3 13-Dec-2000  bouyer Sync with HEAD (for UBC fixes).
 1.4.14.2 08-Dec-2000  bouyer Sync with HEAD.
 1.4.14.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.9.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.12.2 21-Jan-2008  yamt sync with head
 1.10.12.1 03-Sep-2007  yamt sync with head.
 1.11.42.1 07-Aug-2007  matt Sync with HEAD.
 1.11.38.1 03-Oct-2007  garbled Sync with HEAD
 1.11.30.1 20-Aug-2007  ad Sync with HEAD.
 1.12.8.2 23-Mar-2008  matt sync with HEAD
 1.12.8.1 06-Nov-2007  matt sync with HEAD
 1.13.8.1 19-Jan-2008  bouyer Sync with HEAD
 1.13.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.14.10.1 16-May-2008  yamt sync with head.
 1.14.8.1 18-May-2008  yamt sync with head.
 1.14.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.15.44.4 03-Dec-2017  jdolecek update from HEAD
 1.15.44.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.44.2 23-Jun-2013  tls resync from head
 1.15.44.1 25-Feb-2013  tls resync with head
 1.15.34.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.15.34.1 23-Jan-2013  yamt sync with head
 1.18.8.1 30-Oct-2014  martin Pull up following revision(s) (requested by maxv in ticket #165):
sys/arch/newsmips/stand/boot/netif_news.c: revision 1.9
sys/arch/mvme68k/stand/installboot/installboot.c: revision 1.19
sys/arch/arm/arm32/pmap.c: revision 1.300
sys/arch/amiga/dev/siop2.c: revision 1.43
sys/arch/amiga/amiga/disksubr.c: revision 1.62
sys/arch/news68k/news68k/bus_space.c: revision 1.13
sys/arch/amiga/dev/siop.c: revision 1.69
sys/arch/x86/x86/x86_autoconf.c: revision 1.72
Remove dead code in various places under arch/.
 1.18 21-Nov-2014  christos We don't need a special rule now that the file is called .S (having a
just .o rule before broke the MKDEBUG build).
 1.17 21-Nov-2014  christos rename to bugstart.S
 1.16 21-Jan-2011  joerg branches: 1.16.14;
Switch remaining platforms to modern CPP for assembler.
 1.15 06-Dec-2009  tsutsui branches: 1.15.4; 1.15.6; 1.15.8;
Put asm objects into OBJS, not dependencies for all target.
 1.14 12-Dec-2001  tv branches: 1.14.122;
MKfoo=no -> NOfoo
 1.13 14-Nov-2001  tv Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
 1.12 05-Dec-2000  scw branches: 1.12.4; 1.12.8;
Replace the startup C code with assembler, which avoids having to
explicitly tell the compiler what registers the Bug args come in on.
 1.11 04-Dec-2000  scw Use -fomit-frame-pointer when compiling bugcrt.c; a6 needs to be reserved
for Bug arguments.
 1.10 28-Jul-2000  scw Really make this work for `dependall'. Also strip bootst.bug before
running it through wrtvid.
 1.9 27-Jul-2000  scw Make these work for the `dependall' target.
 1.8 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.7 13-Feb-1999  lukem branches: 1.7.8;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.6 01-Aug-1998  scw Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.5 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.4 30-May-1997  cjs Remove empty libinstall target and add NOINSTALL=1.
 1.3 07-May-1997  mycroft Use libinstall::, not install:, to prevent instaling LIB.
 1.2 17-May-1996  chuck update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.7.8.2 08-Dec-2000  bouyer Sync with HEAD.
 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.12.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.12.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.122.1 11-Mar-2010  yamt sync with head
 1.15.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.15.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.15.4.1 05-Mar-2011  rmind sync with head
 1.16.14.1 03-Dec-2017  jdolecek update from HEAD
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 12-Jun-1998  cgd branches: 1.4.16;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.3 07-May-1997  mycroft Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
 1.2 17-May-1996  chuck update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.4.16.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.5 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.4 04-May-2002  scw branches: 1.4.26; 1.4.88; 1.4.94; 1.4.102;
Make sure main() has a prototype and a return type of "int".
 1.3 05-Dec-2000  scw branches: 1.3.4; 1.3.8;
Replace the startup C code with assembler, which avoids having to
explicitly tell the compiler what registers the Bug args come in on.
 1.2 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.1 24-Jul-2000  jdolecek branches: 1.1.2;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.2 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 24-Jul-2000  bouyer file bugcrt.c was added on branch thorpej_scsipi on 2000-11-20 20:15:29 +0000
 1.3.8.1 20-Jun-2002  nathanw Catch up to -current.
 1.3.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.102.1 19-Jan-2008  bouyer Sync with HEAD
 1.4.94.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.88.1 23-Mar-2008  matt sync with HEAD
 1.4.26.1 21-Jan-2008  yamt sync with head
 1.1 21-Nov-2014  christos branches: 1.1.18;
rename to bugstart.S
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 21-Nov-2014  jdolecek file bugstart.S was added on branch tls-maxphys on 2017-12-03 11:36:30 +0000
 1.3 21-Nov-2014  christos rename to bugstart.S
 1.2 14-Apr-2001  scw branches: 1.2.8; 1.2.174;
Fix bootline argument passing from the Bug PROM.
 1.1 05-Dec-2000  scw branches: 1.1.2; 1.1.4;
Replace the startup C code with assembler, which avoids having to
explicitly tell the compiler what registers the Bug args come in on.
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 05-Dec-2000  bouyer file bugstart.s was added on branch thorpej_scsipi on 2000-12-08 09:28:43 +0000
 1.2.174.1 03-Dec-2017  jdolecek update from HEAD
 1.2.8.2 14-Apr-2001  scw Fix bootline argument passing from the Bug PROM.
 1.2.8.1 14-Apr-2001  scw file bugstart.s was added on branch nathanw_sa on 2001-04-14 13:43:09 +0000
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.4 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 11-Dec-2005  christos branches: 1.3.50; 1.3.56; 1.3.64;
merge ktrace-lwp.
 1.2 28-Jun-2005  junyoung branches: 1.2.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.1 17-May-1996  chuck branches: 1.1.68;
update for libbug.h, console I/O
 1.1.68.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.1 21-Jan-2008  yamt sync with head
 1.3.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.50.1 23-Mar-2008  matt sync with HEAD
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.4 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 05-Dec-2000  scw branches: 1.3.40; 1.3.102; 1.3.108; 1.3.116;
Replace the startup C code with assembler, which avoids having to
explicitly tell the compiler what registers the Bug args come in on.
 1.2 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 17-May-1996  chuck branches: 1.1.32;
update for libbug.h, console I/O
 1.1.32.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.32.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.3.116.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.108.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.102.1 23-Mar-2008  matt sync with HEAD
 1.3.40.1 21-Jan-2008  yamt sync with head
 1.4 23-Sep-2013  tsutsui Make MVMEPROM_ARG2() macro take two args in a single asm statement.

Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.

Should be pulled up to netbsd-6 branches.
 1.3 12-Jan-2008  tsutsui branches: 1.3.44; 1.3.50; 1.3.54; 1.3.56; 1.3.60; 1.3.66;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3.66.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.60.1 18-May-2014  rmind sync with head
 1.3.56.1 26-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.54.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.50.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.44.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 23-Sep-2013  tsutsui Make MVMEPROM_ARG2() macro take two args in a single asm statement.

Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.

Should be pulled up to netbsd-6 branches.
 1.3 12-Jan-2008  tsutsui branches: 1.3.44; 1.3.50; 1.3.54; 1.3.56; 1.3.60; 1.3.66;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3.66.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.60.1 18-May-2014  rmind sync with head
 1.3.56.1 26-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.54.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.50.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.3.44.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.1 17-May-1996  chuck branches: 1.1.84; 1.1.146; 1.1.152; 1.1.160;
update for libbug.h, console I/O
 1.1.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.1.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.146.1 23-Mar-2008  matt sync with HEAD
 1.1.84.1 21-Jan-2008  yamt sync with head
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 17-May-1996  chuck branches: 1.2.84; 1.2.146; 1.2.152; 1.2.160;
update for libbug.h, console I/O
 1.1 17-May-1996  chuck libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
 1.2.160.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.152.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.146.1 23-Mar-2008  matt sync with HEAD
 1.2.84.1 21-Jan-2008  yamt sync with head
 1.34 21-Sep-2013  tsutsui Explicitly link SRT0.o (Standalone RunTime startup code) first.

This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.

The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.

Should be pulled up to netbsd-6 branches.
 1.33 02-Jan-2011  tsutsui branches: 1.33.8; 1.33.14; 1.33.18; 1.33.20; 1.33.22; 1.33.28;
Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.32 15-Mar-2010  he branches: 1.32.2;
Latest change to loadfile_elf32.c grew a dependency on strncmp,
so provide that as well as part of libsa for this platform.
 1.31 06-Dec-2009  tsutsui branches: 1.31.2;
Put asm objects into OBJS, not dependencies for all target.
 1.30 19-Mar-2009  tsutsui Remove bcmp() from MD libsa.

XXX: These ports should be rewritten to use MI libsa for maintainability.
 1.29 26-Feb-2006  he branches: 1.29.72; 1.29.80; 1.29.86;
Follow up rename of in_cksum.c to ip_cksum.c.
 1.28 27-Dec-2005  he branches: 1.28.2; 1.28.4; 1.28.6;
Make this build again after the libc/libkern consolidation by referring
to common/lib/libc/Makefile.inc via ${S}/..

Add use of ashrdi3.c inet_addr.c strncpy.c strlen.c, from common/lib.
 1.27 24-Dec-2005  tsutsui Adapt to libkern reorganization.
 1.26 11-Dec-2005  christos merge ktrace-lwp.
 1.25 22-Aug-2003  dsl branches: 1.25.16;
Add memmove - needed for symlink processing in ufs.c
 1.24 16-Mar-2003  he branches: 1.24.2;
Add the newly separated-out ether_sprintf.c here, so that the booters
can be allowed to link with no unresolved symbols again.
 1.23 27-Feb-2003  scw Move the -D__daddr_t from libsa/Makefile to Makefile.booters so
the bootloaders get to benefit from it, not just libsa.
 1.22 04-Feb-2003  matt Add CPPFLAGS+=-D__daddr_t=int32_t
Add snprintf.c to libsa/Makefile
 1.21 27-Mar-2002  scw Add files.c to SRC_sa.
While I'm here, sort source files alphabetically.
 1.20 14-Nov-2001  tv Work around <bsd.lib.mk> used for kernel libs in other places. Clean up
include paths.
 1.19 31-Oct-2001  thorpej branches: 1.19.2;
Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
objects.
 1.18 02-Oct-2001  chs branches: 1.18.2;
add ashldi3.c, needed by ufs.c due to added cast in lblktosize().
 1.17 07-Jul-2001  scw branches: 1.17.2; 1.17.4;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.16 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.15 30-Nov-2000  scw branches: 1.15.2;
Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.14 11-Nov-2000  scw udp.c is now needed in SRC_sa.
 1.13 28-Jul-2000  scw Really make this work for `dependall'. Also strip bootst.bug before
running it through wrtvid.
 1.12 27-Jul-2000  scw Make these work for the `dependall' target.
 1.11 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.10 19-Sep-1999  scw branches: 1.10.2; 1.10.14;
intoa.c is now required in the standalone library.
 1.9 25-Apr-1999  scw Define MKNOLINT=no and _STANDALONE.
 1.8 20-Feb-1999  scw branches: 1.8.2;
Add some missing targets from sys/lib/libsa.
 1.7 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.6 01-Aug-1998  scw Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.5 31-May-1997  cjs Back out BUILDDIR and NOINSTALL changes.
 1.4 30-May-1997  cjs Remove empty libinstall target and add NOINSTALL=1.
 1.3 07-May-1997  mycroft Use libinstall::, not install:, to prevent instaling LIB.
 1.2 17-May-1996  chuck update for my reorg
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.8.2.1 26-Apr-1999  perry branches: 1.8.2.1.2;
pullup 1.8->1.9 (Steve Woodford)
 1.8.2.1.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.10.14.1 09-Feb-2002  he Pull up revision 1.18 (via patch, requested by scw):
Add ashldi3.c to libsa, needed by ufs.c due to changes in fs.h.
 1.10.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.10.2.2 22-Nov-2000  bouyer Sync with HEAD.
 1.10.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.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.17.4.1 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.17.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.17.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.19.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.19.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.19.2.1 31-Oct-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-01-08 00:26:38 +0000
 1.24.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.24.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.24.2.1 03-Aug-2004  skrll Sync with HEAD
 1.25.16.1 21-Jun-2006  yamt sync with head.
 1.28.6.1 22-Apr-2006  simonb Sync with head.
 1.28.4.1 09-Sep-2006  rpaulo sync with head
 1.28.2.1 01-Mar-2006  yamt sync with head.
 1.29.86.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.29.80.1 28-Apr-2009  skrll Sync with HEAD.
 1.29.72.3 11-Aug-2010  yamt sync with head.
 1.29.72.2 11-Mar-2010  yamt sync with head
 1.29.72.1 04-May-2009  yamt sync with head.
 1.31.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.32.2.1 05-Mar-2011  rmind sync with head
 1.33.28.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.33.22.1 18-May-2014  rmind sync with head
 1.33.20.1 26-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.33.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.33.14.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.33.8.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6 21-Sep-2013  tsutsui Explicitly link SRT0.o (Standalone RunTime startup code) first.

This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.

The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.

Should be pulled up to netbsd-6 branches.
 1.5 02-Jan-2011  tsutsui branches: 1.5.8; 1.5.14; 1.5.18; 1.5.20; 1.5.22; 1.5.28;
Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.4 24-Jul-2000  jdolecek branches: 1.4.90; 1.4.96;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 12-Jun-1998  cgd branches: 1.3.16;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.2 07-May-1997  mycroft Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
 1.1 17-May-1996  chuck update for my reorg
 1.3.16.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.4.96.1 05-Mar-2011  rmind sync with head
 1.4.90.1 10-Jan-2011  jym Sync with HEAD
 1.5.28.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.5.22.1 18-May-2014  rmind sync with head
 1.5.20.1 26-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.5.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.14.1 23-Sep-2013  riz Pull up following revision(s) (requested by tsutsui in ticket #954):
sys/arch/mvme68k/stand/libbug/outln.c: revision 1.4
sys/arch/mvme68k/stand/libsa/Makefile.inc: revision 1.6
sys/arch/mvme68k/stand/Makefile.booters: revision 1.24
sys/arch/mvme68k/include/prom.h: revision 1.18
sys/arch/mvme68k/stand/libsa/Makefile: revision 1.34
sys/arch/mvme68k/stand/libbug/outstr.c: revision 1.4
Explicitly link SRT0.o (Standalone RunTime startup code) first.
This is my fault on changes to make mvme68k bootloaders use MI libsa:
http://mail-index.netbsd.org/source-changes/2011/01/02/msg016539.html
MVME PROM requires raw binaries (by objcopy -O binary) so we have to
make sure the entry point is located at the first address of the binaries.
The problem (6.1 netboot fails with an illegal instruction message)
is reported by Andrew Gillham on port-mvme68k@:
http://mail-index.netbsd.org/port-mvme68k/2013/09/17/msg000082.html
Note mvme68k bootloadres in netbsd-6 still have another bug triggered
by gcc-4.5.
Should be pulled up to netbsd-6 branches.
Make MVMEPROM_ARG2() macro take two args in a single asm statement.
Fixes a problem that a wrong address is passed to the MVMEPROM outstr
function (then caused garbages on screen) after we switched to gcc-4.5.
Reported and confirmed by Andrew Gillham on port-mvme68k@:
http://mail-index.NetBSD.org/port-mvme68k/2013/09/17/msg000084.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/19/msg000085.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000095.html
http://mail-index.NetBSD.org/port-mvme68k/2013/09/22/msg000097.html
No error on "build.sh -m mvme68k build" builds.
Should be pulled up to netbsd-6 branches.
 1.5.8.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4 21-Oct-2009  snj Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).
 1.3 30-Nov-2000  scw branches: 1.3.130;
Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.2 17-May-1996  chuck branches: 1.2.32;
complete revise of sun3 SRT0 so that it works with bugcrt by me.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.32.1 08-Dec-2000  bouyer Sync with HEAD.
 1.3.130.1 11-Mar-2010  yamt sync with head
 1.3 17-May-1996  chuck remove files no longer needed due to reorg.
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.12 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.11 12-Jan-2008  tsutsui branches: 1.11.6; 1.11.8; 1.11.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.10 11-Dec-2005  christos branches: 1.10.50; 1.10.56; 1.10.64;
merge ktrace-lwp.
 1.9 03-Jul-2005  he branches: 1.9.2;
Make the bugscopen() function match it's prototype.
 1.8 28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.7 28-Jun-2005  junyoung ANSI, KNF, etc.
 1.6 07-Jul-2001  scw branches: 1.6.8; 1.6.24;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.5 05-Sep-1998  pk Assign my copyrights to TNF.
 1.4 01-Aug-1998  scw Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.3 11-Jun-1998  scw Use DEV_BSIZE in place of MAXBSIZE for the static 'iobuf' in devopen().
Use of the latter caused the 1st and 2nd stage boot loaders to occupy
over 64k of memory. This caused them to fail on a 4Mb mvme147 since
they are loaded at 0x3f0000.
Reported by Kristen A. McIntyre and Maxime Kurkdjian.
 1.2 17-Dec-1997  scw Grok boot partition argument delimited by a colon. Force RB_ASKNAME
when partition argument is present.
 1.1 17-May-1996  chuck branches: 1.1.16;
bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
 1.1.16.1 18-Jul-1998  mellon Pull up 1.2 and 1.3 (scw)
 1.6.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.8.2 07-Jul-2001  scw bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.6.8.1 07-Jul-2001  scw file bugdev.c was added on branch nathanw_sa on 2001-07-07 09:06:45 +0000
 1.9.2.1 21-Jan-2008  yamt sync with head
 1.10.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.10.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.10.50.1 23-Mar-2008  matt sync with HEAD
 1.11.10.1 16-May-2008  yamt sync with head.
 1.11.8.1 18-May-2008  yamt sync with head.
 1.11.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.7 20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.6 20-Nov-2014  christos this needs clock.h
 1.5 17-Nov-2014  christos PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
 1.4 12-Jan-2008  tsutsui branches: 1.4.54;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 11-Dec-2005  christos branches: 1.3.50; 1.3.56; 1.3.64;
merge ktrace-lwp.
 1.2 28-Jun-2005  junyoung branches: 1.2.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.1 24-Jul-2000  jdolecek branches: 1.1.2; 1.1.26;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.2 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 24-Jul-2000  bouyer file chiptotime.c was added on branch thorpej_scsipi on 2000-11-20 20:15:29 +0000
 1.2.2.1 21-Jan-2008  yamt sync with head
 1.3.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.50.1 23-Mar-2008  matt sync with HEAD
 1.4.54.1 03-Dec-2017  jdolecek update from HEAD
 1.11 20-Nov-2014  christos use the inline bcdtobin and bintobcd directly instead through a macro.
 1.10 17-Nov-2014  christos PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
 1.9 12-Jan-2009  tsutsui branches: 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-2008  tsutsui branches: 1.8.6; 1.8.10; 1.8.18;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.7 11-Dec-2005  christos branches: 1.7.50; 1.7.56; 1.7.64;
merge ktrace-lwp.
 1.6 28-Jun-2005  junyoung branches: 1.6.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.5 28-Jun-2005  junyoung ANSI & KNF.
 1.4 24-Jul-2000  jdolecek branches: 1.4.24;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 01-Aug-1998  scw branches: 1.3.14;
Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.2 17-May-1996  chuck replace with code to use libbug rather than access directly
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.3.14.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.4.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.1 21-Jan-2008  yamt sync with head
 1.7.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.7.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.50.1 23-Mar-2008  matt sync with HEAD
 1.8.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.8.10.1 04-May-2009  yamt sync with head.
 1.8.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.9.24.1 03-Dec-2017  jdolecek update from HEAD
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.3 17-May-1996  chuck remove files no longer needed due to reorg.
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.3 17-May-1996  chuck remove files no longer needed due to reorg.
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.16 29-May-2011  tsutsui Avoid backward seek on tape boot.
 1.15 12-Jan-2008  tsutsui branches: 1.15.20; 1.15.32; 1.15.38;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.14 11-Dec-2005  christos branches: 1.14.50; 1.14.56; 1.14.64;
merge ktrace-lwp.
 1.13 28-Jun-2005  junyoung branches: 1.13.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.12 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.11 02-Dec-2000  scw branches: 1.11.24;
Fix symbol table loading.
 1.10 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.9 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.8 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.7 10-Jul-2000  jdolecek make buildable with -Wall -Werror
 1.6 10-Jul-2000  jdolecek use <sys/exec_aout.h> instead of <a.out.h> - this is supposed
to be standalone after all
 1.5 22-Aug-1998  scw branches: 1.5.14;
vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
 1.4 01-Aug-1998  scw Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.3 28-May-1996  chuck leave room for partition
 1.2 28-May-1996  chuck new kernel call args.
 1.1 17-May-1996  chuck branches: 1.1.4;
bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
 1.1.4.1 29-May-1996  chuck import generic boot bug fix
 1.5.14.2 08-Dec-2000  bouyer Sync with HEAD.
 1.5.14.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.11.24.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.24.1 03-Aug-2004  skrll Sync with HEAD
 1.13.2.1 21-Jan-2008  yamt sync with head
 1.14.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.14.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.14.50.1 23-Mar-2008  matt sync with HEAD
 1.15.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.15.32.1 31-May-2011  rmind sync with head
 1.15.20.1 15-Jul-2011  riz Pull up following revision(s) (requested by tsutsui in ticket #1639):
sys/arch/sun68k/stand/tapeboot/boot.c: revision 1.7 via patch
sys/arch/mvme68k/stand/libsa/exec_mvme.c: revision 1.16 via patch
Disable LOAD_BACKWARDS on tapeboot which can't seek backwards.
Fixes bootstrap tapeboot installation failure on TME reported from ryoon@.
Should be pulled up to netbsd-5.
(note netbsd-5 uses LOAD_NOTE instead of LOAD_BACKWARDS)
Avoid backward seek on tape boot.
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.6 12-Jan-2009  tsutsui 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.5 12-Jan-2008  tsutsui branches: 1.5.6; 1.5.10; 1.5.18;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.4 24-Jul-2000  jdolecek branches: 1.4.40; 1.4.102; 1.4.108; 1.4.116;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.2 19-May-1996  chuck branches: 1.2.32;
minor clean
 1.1 17-May-1996  chuck bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
 1.2.32.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.4.116.1 19-Jan-2008  bouyer Sync with HEAD
 1.4.108.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.102.1 23-Mar-2008  matt sync with HEAD
 1.4.40.1 21-Jan-2008  yamt sync with head
 1.5.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.10.1 04-May-2009  yamt sync with head.
 1.5.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.2 17-May-1996  chuck remove files no longer needed due to reorg.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.4 17-May-1996  chuck remove files no longer needed due to reorg.
 1.3 12-Apr-1996  chuck fix warning from gcc
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.3 17-May-1996  chuck remove files no longer needed due to reorg.
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.3 17-May-1996  chuck remove files no longer needed due to reorg.
 1.2 13-Feb-1996  gwr Use vprintf where it was intended, and use __dead
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.11 11-Dec-2005  christos merge ktrace-lwp.
 1.10 28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.9 28-Jun-2005  junyoung ANSIfy & remove trailing spaces.
 1.8 10-Dec-2003  agc Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.7 24-Sep-2000  jdolecek branches: 1.7.24;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.6 29-Jul-2000  jdolecek g/c RB_DFLTROOT

I've tried hard to find also various usage() messages and remove the
appropriate flag from there as well, hopefully all occurences are covered.
 1.5 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.4 10-Jul-2000  jdolecek make buildable with -Wall -Werror
 1.3 10-Jul-2000  jdolecek no need to include <a.out.h> here
 1.2 17-Dec-1997  scw branches: 1.2.16; 1.2.28;
Grok boot partition argument delimited by a colon. Force RB_ASKNAME
when partition argument is present.
 1.1 17-May-1996  chuck bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
 1.2.28.1 13-Aug-2000  jdolecek pullup from trunk (approved by thorpej):
retire RB_DFLTROOT, it's no longer used

revisions pulled up:
arch/i386/stand/lib/netbsd_opts.c 1.3
arch/i386/stand/biosboot/main.c 1.23
arch/i386/stand/dosboot/main.c 1.15
arch/i386/stand/netboot/main.c 1.6
arch/arc/arc/machdep.c 1.42
arch/bebox/stand/boot/boot.c 1.11
arch/hpcmips/hpcmips/machdep.c 1.32
arch/newsmips/newsmips/machdep.c 1.45
arch/pc532/stand/boot/boot.c 1.2
arch/pmax/pmax/machdep.c 1.178
arch/prep/stand/boot/boot.c 1.2
arch/sparc/sparc/autoconf.c 1.141
arch/sparc64/sparc64/autoconf.c 1.38
arch/x68k/stand/loadbsd/loadbsd.c 1.5
arch/mvme68k/stand/libsa/parse_args.c 1.6
compat/osf1/osf1_cvt.c 1.9
sys/reboot.h 1.17
 1.2.16.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.24.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.24.1 03-Aug-2004  skrll Sync with HEAD
 1.16 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.15 10-Apr-2002  scw branches: 1.15.138;
DTRT to avoid installing "netbsd.tmp" in /usr/mdec.

Addresses port-mvme68k/16282.
 1.14 09-Feb-2002  lukem use ${INSTALL_FILE} as appropriate
 1.13 10-Jun-2001  scw branches: 1.13.2; 1.13.8;
Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.12 04-Dec-2000  scw branches: 1.12.2;
Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.11 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.10 28-Jul-2000  scw Really make this work for `dependall'. Also strip bootst.bug before
running it through wrtvid.
 1.9 24-Jul-2000  jdolecek add netboot.bin to CLEANFILES
 1.8 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.7 09-Jul-2000  jdolecek uncomment part which has been accidentaly commented out in last commit
 1.6 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.5 25-Jun-2000  scw Some tweaks to make things work properly with `dependall'.
 1.4 12-Jun-1998  cgd branches: 1.4.16; 1.4.28;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.3 18-Oct-1996  thorpej Use ${INSTALL}.
 1.2 17-May-1996  chuck Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.4.28.1 26-Jun-2000  scw Pullup from trunk: 1.4 - 1.5
Approved by: thorpej

DTRT for `dependall' during a make build. This slipped through the net
due to a local fix which got forgotten about.
 1.4.16.2 08-Dec-2000  bouyer Sync with HEAD.
 1.4.16.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.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.13.8.3 17-Apr-2002  nathanw Catch up to -current.
 1.13.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.13.8.1 10-Jun-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-02-28 04:10:54 +0000
 1.13.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.13.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.15.138.1 05-Mar-2011  rmind sync with head
 1.17 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.16 12-Jan-2008  tsutsui branches: 1.16.54; 1.16.74;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.15 11-Dec-2005  christos branches: 1.15.50; 1.15.56; 1.15.64;
merge ktrace-lwp.
 1.14 28-Jun-2005  junyoung branches: 1.14.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.13 28-Jun-2005  junyoung ANSIfy and remove trailing spaces.
 1.12 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.11 01-Oct-2002  provos branches: 1.11.6;
more trailing \r cleanup; pointed out by wiz
 1.10 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.9 03-May-2002  scw main()'s return type should be `int', not `void'.
 1.8 07-Jul-2001  scw branches: 1.8.2; 1.8.8;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.7 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.6 24-Jul-2000  jdolecek branches: 1.6.2;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.5 24-Jul-2000  scw Pass the boot partition number into the loaded kernel, in preparation
for doing away with __BROKEN_DK_ESTABLISH.
 1.4 19-May-1996  chuck branches: 1.4.32;
preserve sboot status
 1.3 17-May-1996  chuck Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.4.32.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.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.8.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.8.8.2 20-Jun-2002  nathanw Catch up to -current.
 1.8.8.1 07-Jul-2001  nathanw file boot.c was added on branch nathanw_sa on 2002-06-20 03:40:03 +0000
 1.8.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.11.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.6.1 03-Aug-2004  skrll Sync with HEAD
 1.14.2.1 21-Jan-2008  yamt sync with head
 1.15.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.15.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.15.50.1 23-Mar-2008  matt sync with HEAD
 1.16.74.1 09-Jul-2016  skrll Sync with HEAD
 1.16.54.1 03-Dec-2017  jdolecek update from HEAD
 1.7 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.6 11-Dec-2005  christos branches: 1.6.50; 1.6.56; 1.6.64;
merge ktrace-lwp.
 1.5 28-Jun-2005  junyoung branches: 1.5.2;
#include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.4 10-Jun-2001  scw branches: 1.4.8; 1.4.24;
Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.3 17-May-1996  chuck branches: 1.3.46;
Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
 1.2 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.2;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.3.46.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.8.2 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.4.8.1 10-Jun-2001  scw file conf.c was added on branch nathanw_sa on 2001-06-10 14:12:50 +0000
 1.5.2.1 21-Jan-2008  yamt sync with head
 1.6.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.6.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.50.1 23-Mar-2008  matt sync with HEAD
 1.5 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.4 11-Dec-2005  christos branches: 1.4.50; 1.4.56; 1.4.64;
merge ktrace-lwp.
 1.3 10-Dec-2003  agc branches: 1.3.16;
Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.2 10-Jun-2001  scw branches: 1.2.8; 1.2.24;
Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.1 17-May-1996  chuck branches: 1.1.46;
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.1.46.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.24.1 03-Aug-2004  skrll Sync with HEAD
 1.2.8.2 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.2.8.1 10-Jun-2001  scw file config.h was added on branch nathanw_sa on 2001-06-10 14:12:50 +0000
 1.3.16.1 21-Jan-2008  yamt sync with head
 1.4.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.4.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.50.1 23-Mar-2008  matt sync with HEAD
 1.9 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.8 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.7 07-May-1999  drochner branches: 1.7.2;
include <lib/libkern/libkern.h> for intoa()/inet_ntoa()
 1.6 22-Jul-1997  drochner branches: 1.6.18;
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 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.4 17-May-1996  chuck branches: 1.4.8;
Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
 1.3 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.2 10-Aug-1995  chuck branches: 1.2.2;
add bcea[] (as per sun3 port)
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.2.1 12-Oct-1995  chuck sync with sun3 version and libsa changes
 1.4.8.1 07-Mar-1997  is Use libsa copy of oldstyle if_ether.h for now
 1.6.18.1 21-Jun-1999  thorpej Sync w/ -current.
 1.7.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.4 10-Jun-2001  scw Use the versions of dev_net.[ch] in libsa in order to get DHCP support.

In other words, mvme68k's "netboot" finally supports DHCP.
 1.3 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 17-May-1996  chuck branches: 1.2.32;
Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.32.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.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 24-Jul-2000  jdolecek branches: 1.2.40; 1.2.102; 1.2.108; 1.2.116;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 17-May-1996  chuck branches: 1.1.32;
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.1.32.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.116.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.108.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.102.1 23-Mar-2008  matt sync with HEAD
 1.2.40.1 21-Jan-2008  yamt sync with head
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 10-Dec-2003  agc Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.1 17-May-1996  chuck branches: 1.1.68;
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.1.68.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.68.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.68.1 03-Aug-2004  skrll Sync with HEAD
 1.14 04-May-2025  andvar remove redundant inner (status & IE_FD_OK) condition; parent condition already
checks that both IE_FD_COMPLETE and IE_FD_OK flags are set.
 1.13 12-Jan-2009  tsutsui branches: 1.13.102;
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.12 12-Jan-2008  tsutsui branches: 1.12.6; 1.12.10; 1.12.18;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.11 24-Dec-2005  perry branches: 1.11.50; 1.11.56; 1.11.64;
bare asm -> __asm
 1.10 11-Dec-2005  christos merge ktrace-lwp.
 1.9 10-Dec-2003  agc branches: 1.9.16;
Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.8 13-Mar-2003  drochner branches: 1.8.2;
adapt for void *io_netif
 1.7 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.6 07-Jul-2001  scw branches: 1.6.2; 1.6.8;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.5 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 15-Jul-2000  scw The install ramdisk has grown somewhat, and now overwrites the
`ie' chip's packet buffer... Moving it up to just below the netboot
image (4MB) should leave room for a few more year's bloat. ;-)
 1.3 28-Mar-1999  scw branches: 1.3.8; 1.3.20;
Pull in <net/if{_ether,}.h> and a few others to get ETHER_MAX_LEN.
 1.2 25-Mar-1999  thorpej Use ETHER_*_LEN constants from <net/if_ether.h> instead of defining them
ourselves.
 1.1 17-May-1996  chuck sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.3.20.1 15-Jul-2000  scw Pullup from trunk: 1.3 - 1.4
Approved by: thorpej

Move the address of the packet buffer to avoid overwriting it with
the ramdisk image.
 1.3.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.6.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.6.8.1 07-Jul-2001  nathanw file if_ie.c was added on branch nathanw_sa on 2002-10-18 02:39:00 +0000
 1.6.2.1 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.16.2 21-Jan-2008  yamt sync with head
 1.9.16.1 21-Jun-2006  yamt sync with head.
 1.11.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.11.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.50.1 23-Mar-2008  matt sync with HEAD
 1.12.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.12.10.1 04-May-2009  yamt sync with head.
 1.12.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.13.102.1 02-Aug-2025  perseant Sync with HEAD
 1.2 24-Oct-2021  andvar fix various typos in comments, mainly copypasta.
 1.1 17-May-1996  chuck sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.10 12-Jan-2009  tsutsui 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.9 12-Jan-2008  tsutsui branches: 1.9.6; 1.9.10; 1.9.18;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.8 11-Dec-2005  christos branches: 1.8.50; 1.8.56; 1.8.64;
merge ktrace-lwp.
 1.7 10-Dec-2003  agc branches: 1.7.16;
Modify the licences of code written by Theo De Raadt from a 4-clause
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
 1.6 13-Mar-2003  drochner branches: 1.6.2;
adapt for void *io_netif
 1.5 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.4 08-Nov-2001  scw branches: 1.4.2;
Fix a couple of uninitialised variable warnings with New Toolchain.
 1.3 07-Jul-2001  scw branches: 1.3.2; 1.3.6;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.2 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 17-May-1996  chuck branches: 1.1.32;
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.1.32.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.3.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.4.2.1 08-Nov-2001  nathanw file if_le.c was added on branch nathanw_sa on 2002-10-18 02:39:01 +0000
 1.6.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.1 21-Jan-2008  yamt sync with head
 1.8.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.8.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.50.1 23-Mar-2008  matt sync with HEAD
 1.9.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.10.1 04-May-2009  yamt sync with head.
 1.9.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.5 05-Dec-2021  msaitoh s/initialz/initializ/ in comment.
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 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.2 18-Sep-2001  wiz branches: 1.2.4; 1.2.20;
Give initiali[sz]e all the "i"s it deserves.
 1.1 17-May-1996  chuck branches: 1.1.46; 1.1.48;
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
 1.1.48.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.46.1 01-Oct-2001  fvdl Catch up with -current.
 1.2.20.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.20.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.20.1 03-Aug-2004  skrll Sync with HEAD
 1.2.4.2 18-Sep-2001  wiz Give initiali[sz]e all the "i"s it deserves.
 1.2.4.1 18-Sep-2001  wiz file if_lereg.h was added on branch nathanw_sa on 2001-09-18 18:15:52 +0000
 1.5 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.4 09-Nov-2001  scw branches: 1.4.144;
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
 1.3 02-Aug-2001  bjh21 branches: 1.3.4; 1.3.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.2 24-Sep-2000  jdolecek branches: 1.2.2; 1.2.6;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.2.2 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.1 24-Sep-2000  bouyer file version was added on branch thorpej_scsipi on 2000-11-20 20:15:31 +0000
 1.3.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.6.1 02-Aug-2001  nathanw file version was added on branch nathanw_sa on 2002-01-08 00:26:38 +0000
 1.3.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.144.1 05-Mar-2011  rmind sync with head
 1.3 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 17-May-1996  chuck branches: 1.2.32;
bump
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.32.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.4 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.3 13-Feb-1999  lukem branches: 1.3.24; 1.3.28;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.2 07-May-1997  mycroft Use proginstall:: to disable installing PROG.
 1.1 17-May-1996  chuck prtvid (print out a VID block). by Dale Rahn.
 1.3.28.1 08-Jan-2002  nathanw Catch up to -current.
 1.3.24.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.2 04-May-2002  scw branches: 1.2.26; 1.2.88; 1.2.94; 1.2.102;
Make sure main() has a prototype and a return type of "int".
 1.1 17-May-1996  chuck branches: 1.1.48; 1.1.52;
prtvid (print out a VID block). by Dale Rahn.
 1.1.52.1 20-Jun-2002  nathanw Catch up to -current.
 1.1.48.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.102.1 19-Jan-2008  bouyer Sync with HEAD
 1.2.94.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.88.1 23-Mar-2008  matt sync with HEAD
 1.2.26.1 21-Jan-2008  yamt sync with head
 1.15 21-Nov-2014  christos Add libkern for umoddi3 needed for correct leap yar computation in is_leap_year.
 1.14 21-Jan-2011  joerg branches: 1.14.14;
Switch remaining platforms to modern CPP for assembler.
 1.13 09-Apr-2002  scw branches: 1.13.138; 1.13.144; 1.13.146;
Simplify generation of the s-record boot file using objcopy instead
of a homebrew tool.

Addresses port-mvme68k/16256.
 1.12 09-Feb-2002  lukem use ${INSTALL_FILE} as appropriate
 1.11 18-Dec-2000  scw branches: 1.11.4; 1.11.8;
s/MDECDIR/MDEC_DIR/
 1.10 04-Dec-2000  scw Clean up the build process to ensure libsa/libbug are built
before linking the bootloaders.
 1.9 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.8 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.7 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.6 25-Jun-2000  scw Some tweaks to make things work properly with `dependall'.
 1.5 13-Feb-1999  lukem branches: 1.5.8; 1.5.20;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.4 01-Aug-1998  scw Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
 1.3 18-Oct-1996  thorpej Use ${INSTALL}.
 1.2 07-Sep-1996  thorpej Use the stock ld(1) and the srec program to generate the serial line
bootstrap program.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.5.20.1 26-Jun-2000  scw Pullup from trunk: 1.5 - 1.6
Approved by: thorpej

DTRT for `dependall' during a make build. This slipped through the net
due to a local fix which got forgotten about.
 1.5.8.3 05-Jan-2001  bouyer Sync with HEAD
 1.5.8.2 08-Dec-2000  bouyer Sync with HEAD.
 1.5.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.11.8.2 17-Apr-2002  nathanw Catch up to -current.
 1.11.8.1 28-Feb-2002  nathanw Catch up to -current.
 1.11.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.11.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.13.146.1 08-Feb-2011  bouyer Sync with HEAD
 1.13.144.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.138.1 05-Mar-2011  rmind sync with head
 1.14.14.1 03-Dec-2017  jdolecek update from HEAD
 1.6 12-Jan-2008  tsutsui Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.5 11-Dec-2005  christos branches: 1.5.50; 1.5.56; 1.5.64;
merge ktrace-lwp.
 1.4 07-Aug-2003  agc branches: 1.4.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.3 24-Jul-2000  jdolecek branches: 1.3.24;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 22-Aug-1998  scw branches: 1.2.14;
vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.14.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.3.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.24.1 03-Aug-2004  skrll Sync with HEAD
 1.4.16.1 21-Jan-2008  yamt sync with head
 1.5.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.5.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.5.50.1 23-Mar-2008  matt sync with HEAD
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 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.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.70;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.70.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.1.1.70.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.1.1.70.1 03-Aug-2004  skrll Sync with HEAD
 1.7 02-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.6 12-Jan-2008  tsutsui branches: 1.6.32; 1.6.38; 1.6.40;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.5 24-Jul-2000  jdolecek branches: 1.5.40; 1.5.102; 1.5.108; 1.5.116;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 22-Aug-1998  scw branches: 1.4.14;
vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
 1.3 05-Jan-1998  perry RCSID Police.
 1.2 19-May-1996  chuck update for new (SRT0/bugcrt) calling convention
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.4.14.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.116.1 19-Jan-2008  bouyer Sync with HEAD
 1.5.108.1 18-Feb-2008  mjf Sync with HEAD.
 1.5.102.1 23-Mar-2008  matt sync with HEAD
 1.5.40.1 21-Jan-2008  yamt sync with head
 1.6.40.1 08-Feb-2011  bouyer Sync with HEAD
 1.6.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.32.1 05-Mar-2011  rmind sync with head
 1.14 09-Aug-2025  skrll aknowledgement -> acknowledgement in a comment
 1.13 09-Aug-2025  skrll Trai;ing whitespace
 1.12 29-Sep-2011  he Drop the "static" from the HEXDIGITS declaration, now that there's an
extern definition in sys/systm.h, to allow this to continue to build.
 1.11 25-Feb-2011  joerg Move HEXDIGIT to mvme68k's sboot. It seems to be the only user.
Save a byte by explicitly specifying the size.
 1.10 02-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.9 12-Jan-2008  tsutsui branches: 1.9.32; 1.9.38; 1.9.40;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.8 20-May-2006  mrg branches: 1.8.36; 1.8.42; 1.8.50;
change some char to u_char to match other variables and functions.
 1.7 11-Dec-2005  christos branches: 1.7.4; 1.7.6; 1.7.8; 1.7.12; 1.7.14;
merge ktrace-lwp.
 1.6 17-May-2005  christos branches: 1.6.2;
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.5 16-Sep-2001  wiz branches: 1.5.4; 1.5.20;
Spell 'occurred' with two 'r's.
 1.4 07-Jul-2001  scw branches: 1.4.2; 1.4.4;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.3 12-Jun-2001  wiz receive, not recieve
 1.2 05-Jan-1998  perry branches: 1.2.30;
RCSID Police.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.30.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.20.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.4.2 16-Sep-2001  wiz Spell 'occurred' with two 'r's.
 1.5.4.1 16-Sep-2001  wiz file etherfun.c was added on branch nathanw_sa on 2001-09-16 16:34:34 +0000
 1.6.2.2 21-Jan-2008  yamt sync with head
 1.6.2.1 21-Jun-2006  yamt sync with head.
 1.7.14.1 19-Jun-2006  chap Sync with head.
 1.7.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.7.8.1 24-May-2006  yamt sync with head.
 1.7.6.1 01-Jun-2006  kardel Sync with head.
 1.7.4.1 09-Sep-2006  rpaulo sync with head
 1.8.50.1 19-Jan-2008  bouyer Sync with HEAD
 1.8.42.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.36.1 23-Mar-2008  matt sync with HEAD
 1.9.40.2 05-Mar-2011  bouyer Sync with HEAD
 1.9.40.1 08-Feb-2011  bouyer Sync with HEAD
 1.9.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.32.1 05-Mar-2011  rmind sync with head
 1.5 02-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.4 12-Jan-2008  tsutsui branches: 1.4.32; 1.4.38; 1.4.40;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.3 20-May-2006  mrg branches: 1.3.36; 1.3.42; 1.3.50;
change some char to u_char to match other variables and functions.
 1.2 05-Jan-1998  perry branches: 1.2.68; 1.2.82; 1.2.84; 1.2.86; 1.2.90; 1.2.92;
RCSID Police.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.92.1 19-Jun-2006  chap Sync with head.
 1.2.90.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.86.1 24-May-2006  yamt sync with head.
 1.2.84.1 01-Jun-2006  kardel Sync with head.
 1.2.82.1 09-Sep-2006  rpaulo sync with head
 1.2.68.2 21-Jan-2008  yamt sync with head
 1.2.68.1 21-Jun-2006  yamt sync with head.
 1.3.50.1 19-Jan-2008  bouyer Sync with HEAD
 1.3.42.1 18-Feb-2008  mjf Sync with HEAD.
 1.3.36.1 23-Mar-2008  matt sync with HEAD
 1.4.40.1 08-Feb-2011  bouyer Sync with HEAD
 1.4.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.32.1 05-Mar-2011  rmind sync with head
 1.5 05-Dec-2021  msaitoh s/initialz/initializ/ in comment.
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 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.2 18-Sep-2001  wiz branches: 1.2.4; 1.2.20;
Give initiali[sz]e all the "i"s it deserves.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.48; 1.1.1.1.50;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.50.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.1.1.48.1 01-Oct-2001  fvdl Catch up with -current.
 1.2.20.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.20.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.20.1 03-Aug-2004  skrll Sync with HEAD
 1.2.4.2 18-Sep-2001  wiz Give initiali[sz]e all the "i"s it deserves.
 1.2.4.1 18-Sep-2001  wiz file if_lereg.h was added on branch nathanw_sa on 2001-09-18 18:15:52 +0000
 1.6 08-Mar-2018  mrg fix various gcc6 m68k issues:
- bad indentation. next68k en.c and mvme68k le_poll.c fixes real issues
in error handling, the rest are NFCI.
- pass 68030 flags as appropriate for mvme68k.
- next68k nextrom.c has -Warray-bounds ignored for an odd expression
that appears to run before relocation, and needs manual offsets
added which trips bounds array checking.

with this all m68k ports build with GCC 6.
 1.5 12-Jan-2008  tsutsui branches: 1.5.96;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.4 08-Nov-2001  scw branches: 1.4.2; 1.4.34; 1.4.96; 1.4.102; 1.4.110;
Fix a couple of uninitialised variable warning with New Toolchain.
 1.3 07-Jul-2001  scw branches: 1.3.2; 1.3.6;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.2 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.34;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.34.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.3.6.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.110.1 19-Jan-2008  bouyer Sync with HEAD
 1.4.102.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.96.1 23-Mar-2008  matt sync with HEAD
 1.4.34.1 21-Jan-2008  yamt sync with head
 1.4.2.2 08-Nov-2001  scw Fix a couple of uninitialised variable warning with New Toolchain.
 1.4.2.1 08-Nov-2001  scw file le_poll.c was added on branch nathanw_sa on 2001-11-08 21:40:26 +0000
 1.5.96.1 15-Mar-2018  pgoyette Synch with HEAD
 1.3 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 22-Aug-1998  scw branches: 1.2.14;
vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.14.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.2 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck branches: 1.1.1.1.34;
mvme68k port -- for the motorola vme147 m68030 card
 1.1.1.1.34.1 08-Dec-2000  bouyer Sync with HEAD.
 1.7 02-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.6 12-Jan-2008  tsutsui branches: 1.6.32; 1.6.38; 1.6.40;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.5 24-Dec-2005  perry branches: 1.5.50; 1.5.56; 1.5.64;
bare asm -> __asm
 1.4 24-Jul-2000  jdolecek branches: 1.4.40;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 05-Jan-1998  perry branches: 1.3.16;
RCSID Police.
 1.2 19-May-1996  chuck update for new (SRT0/bugcrt) calling convention
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.3.16.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.4.40.2 21-Jan-2008  yamt sync with head
 1.4.40.1 21-Jun-2006  yamt sync with head.
 1.5.64.1 19-Jan-2008  bouyer Sync with HEAD
 1.5.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.5.50.1 23-Mar-2008  matt sync with HEAD
 1.6.40.1 08-Feb-2011  bouyer Sync with HEAD
 1.6.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.32.1 05-Mar-2011  rmind sync with head
 1.7 02-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.6 04-Mar-2007  christos branches: 1.6.66; 1.6.72; 1.6.74;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.5 24-Jul-2000  jdolecek branches: 1.5.40; 1.5.78;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.4 23-Nov-1998  scw branches: 1.4.12;
Get rid of memset() prototype, it's not used and egcs doesn't like it.
 1.3 05-Jan-1998  perry RCSID Police.
 1.2 19-May-1996  chuck update for new (SRT0/bugcrt) calling convention
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.4.12.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.78.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.40.1 03-Sep-2007  yamt sync with head.
 1.6.74.1 08-Feb-2011  bouyer Sync with HEAD
 1.6.72.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.66.1 05-Mar-2011  rmind sync with head
 1.4 09-Apr-2002  scw Simplify generation of the s-record boot file using objcopy instead
of a homebrew tool.

Addresses port-mvme68k/16256.
 1.3 24-Jul-2000  jdolecek branches: 1.3.4; 1.3.8;
cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2 10-Jul-2000  jdolecek explicitly specify main() return type (make buildable with
-Wall -Werror)
 1.1 07-Sep-1996  thorpej branches: 1.1.30;
Add a public domain S-record generator.
 1.1.30.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.3.8.1 17-Apr-2002  nathanw Catch up to -current.
 1.3.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8 01-Feb-2011  chuck udpate license clauses on my code to match the new-style BSD licenses.
remove no-longer-valid wustl email address for me.
based on diff that rmind@ sent me.

no functional change with this commit.
 1.7 04-Dec-2000  scw branches: 1.7.152; 1.7.158; 1.7.160;
Declare `start' in addition to `_start'.
 1.6 30-Nov-2000  scw Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
 1.5 05-Jan-1998  perry branches: 1.5.16;
RCSID Police.
 1.4 29-May-1996  chuck fix off by one error
 1.3 28-May-1996  chuck bug fix: pass address of le to netboot
 1.2 19-May-1996  chuck branches: 1.2.4;
update for new (SRT0/bugcrt) calling convention
 1.1 25-Jul-1995  chuck branches: 1.1.1;
Initial revision
 1.1.1.1 25-Jul-1995  chuck mvme68k port -- for the motorola vme147 m68030 card
 1.2.4.1 29-May-1996  chuck fix calling bug, and off by one error
 1.5.16.1 08-Dec-2000  bouyer Sync with HEAD.
 1.7.160.1 08-Feb-2011  bouyer Sync with HEAD
 1.7.158.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.152.1 05-Mar-2011  rmind sync with head
 1.3 02-Jan-2011  tsutsui Switch mvme68k standalone problams to using MI libsa and libkern
for maintainablility. Also bump version for note.

Compile test only, but no functional changes.
 1.2 24-Sep-2000  jdolecek branches: 1.2.2; 1.2.154;
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
 1.1 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.2.154.1 05-Mar-2011  rmind sync with head
 1.2.2.2 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.1 24-Sep-2000  bouyer file version was added on branch thorpej_scsipi on 2000-11-20 20:15:32 +0000
 1.13 06-May-2021  rin PR port-mvme68k/56146

Build wrtvid as tools.
 1.12 01-May-2018  christos branches: 1.12.18;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
 1.11 23-Jan-2002  scw branches: 1.11.28;
Completely re-write wrtvid.c to make it usable during a cross-build.
Instead of parsing the 1st stage booter in wrtvid, use objcopy to
generate a binary image, leaving wrtvid to create the VID/CFG block.
 1.10 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.9 31-Oct-2001  thorpej branches: 1.9.2;
Need byteorder.c for loadfile_elf*.c
 1.8 31-Oct-2001  thorpej Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
objects.
 1.7 05-Aug-2001  matt branches: 1.7.4;
This is a HOST program, so make compile as one.
 1.6 21-Jan-2001  scw branches: 1.6.4;
Create machine/m68k symlinks before trying to build the program.
 1.5 04-Dec-2000  scw Make this work with the ELF tape bootloader.
 1.4 09-Jul-2000  jdolecek Make buildable on NetBSD/mvme68k 1.4.1.
 1.3 13-Feb-1999  lukem branches: 1.3.8;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.2 07-May-1997  mycroft Use proginstall:: to disable installing PROG.
 1.1 17-May-1996  chuck wrtvid by Dale Rahn.
 1.3.8.3 11-Feb-2001  bouyer Sync with HEAD.
 1.3.8.2 08-Dec-2000  bouyer Sync with HEAD.
 1.3.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.6.4.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.7.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.9.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.9.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.9.2.1 31-Oct-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-01-08 00:26:39 +0000
 1.11.28.1 02-May-2018  pgoyette Synch with HEAD
 1.12.18.1 13-May-2021  thorpej Sync with HEAD.
 1.4 24-Jul-2000  jdolecek cleanup Makefiles, put common stuff to Makefile.booters, ditch unnecessary
stuff
make this all compile with -Wall -Wno-main -Wmissing-prototypes
-Wstrict-prototypes -Werror , also compilable on 1.4.1
label itself as NetBSD/mvme68k instead of "BSD" in bootblock message
move bugcrt.c to libbug, remove bugcrt directory (bugcrt is still built
and used separately to rest of libbug)
convert sboot to use ordinary mvme68 libsa, instead of copying needed
stuff in libc_sa.c
convert to use version info generated by sys/conf/newvers_stand.sh
instead of previous version.c files, add necessary 'version' files
put chiptotime() to separate libsa file (used also by sboot/clock.c)

Thanks to Steve Woodford for help with this. Note that -current build
might be hosed by this change, will be addressed by Steve shortly.
 1.3 12-Jun-1998  cgd branches: 1.3.16;
replace ${MACHINE} with mvme68k, so that these Makefiles can safely
be run when MACHINE != mvme68k.
 1.2 07-May-1997  mycroft Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
 1.1 17-May-1996  chuck wrtvid by Dale Rahn.
 1.3.16.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.10 06-May-2021  rin PR port-mvme68k/56146

Build wrtvid as tools.
 1.9 08-Jan-2019  rin branches: 1.9.16;
Include unistd.h for write(2) and close(2).
 1.8 28-Apr-2008  martin branches: 1.8.86; 1.8.88;
Remove clause 3 and 4 from TNF licenses
 1.7 12-Jan-2008  tsutsui branches: 1.7.6; 1.7.8; 1.7.10;
Misc cleanup:
- KNF, ANSIfy, remove __P()
- use __func__ to print function names
- use __arraycount()
- include "ioconf.h" for struct cfdriver
- u_intNN_t -> uintNN_t
- wrap long lines
etc.
 1.6 24-Mar-2002  scw branches: 1.6.26; 1.6.88; 1.6.94; 1.6.102;
Round VID_OSL to be a multiple of 32 * 256byte blocks.
 1.5 23-Jan-2002  scw Completely re-write wrtvid.c to make it usable during a cross-build.
Instead of parsing the 1st stage booter in wrtvid, use objcopy to
generate a binary image, leaving wrtvid to create the VID/CFG block.
 1.4 19-Oct-2001  scw branches: 1.4.4;
Use the entry-point returned from the first call to loadfile()
instead of the one from the second call (which has a non-zero
offset included in it).

Fixes port-mvme68k/14292 from Ken Seefried.
 1.3 07-Jul-2001  scw branches: 1.3.2;
bcopy -> memcpy
bzero -> memset
bcmp -> memcmp (note that the MI libsa's memcmp() still calls bcmp()...)
 1.2 04-Dec-2000  scw Make this work with the ELF tape bootloader.
 1.1 17-May-1996  chuck branches: 1.1.32;
wrtvid by Dale Rahn.
 1.1.32.1 08-Dec-2000  bouyer Sync with HEAD.
 1.3.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.4.4.1 19-Oct-2001  nathanw file wrtvid.c was added on branch nathanw_sa on 2002-02-28 04:10:55 +0000
 1.6.102.1 19-Jan-2008  bouyer Sync with HEAD
 1.6.94.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.88.1 23-Mar-2008  matt sync with HEAD
 1.6.26.1 21-Jan-2008  yamt sync with head
 1.7.10.1 16-May-2008  yamt sync with head.
 1.7.8.1 18-May-2008  yamt sync with head.
 1.7.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.88.1 10-Jun-2019  christos Sync with HEAD
 1.8.86.1 18-Jan-2019  pgoyette Synch with HEAD
 1.9.16.1 13-May-2021  thorpej Sync with HEAD.

RSS XML Feed