Home | History | Annotate | only in /src/sys/arch/sgimips/stand
History log of /src/sys/arch/sgimips/stand
RevisionDateAuthorComments
 1.6 12-Jan-2019  tsutsui Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.5 11-Dec-2005  christos branches: 1.5.164; 1.5.166;
merge ktrace-lwp.
 1.4 29-Sep-2004  sekiya Compile the 64-bit bootloader.
 1.3 13-Mar-2002  simonb branches: 1.3.12;
Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
 1.2 21-Nov-2001  thorpej branches: 1.2.2;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1 20-Nov-2001  soren stand Makefile.
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:48:32 +0000
 1.3.12.1 19-Oct-2004  skrll Sync with HEAD
 1.5.166.1 10-Jun-2019  christos Sync with HEAD
 1.5.164.1 18-Jan-2019  pgoyette Synch with HEAD
 1.25 12-Jan-2019  tsutsui Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.24 08-Apr-2017  christos branches: 1.24.12; 1.24.14;
centralize vers.c building for standalone programs.
 1.23 08-Sep-2016  christos branches: 1.23.2;
Avoid the PIE
 1.22 12-Jan-2014  tsutsui branches: 1.22.6; 1.22.10;
Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.21 26-Feb-2011  matt branches: 1.21.4; 1.21.14; 1.21.18;
Make sure that sgimips64 can build the O32 bootloaders
 1.20 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.19 24-Jan-2011  joerg Define NOMAN earlier
 1.18 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.17 14-Dec-2009  matt branches: 1.17.4; 1.17.6; 1.17.8;
Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.16 15-Mar-2009  tsutsui - use <bsd.klinks.mk> to create MD include dir symlinks
- make sure to remove lib subdirs on clean and distclean target
 1.15 28-Mar-2008  tsutsui branches: 1.15.4; 1.15.12; 1.15.18; 1.15.22;
Enable warning options.
 1.14 23-Feb-2008  tsutsui - use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
 1.13 11-Dec-2005  christos branches: 1.13.50; 1.13.70; 1.13.74;
merge ktrace-lwp.
 1.12 17-Nov-2003  sekiya branches: 1.12.16;
Rationalize the machine-links creation mechanism.
 1.11 11-Nov-2003  sekiya Rework the boot loader:
* remove dead code,
* streamline kernel selection logic,
* various small bugfixes.
 1.10 26-Oct-2003  lukem Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.9 08-Oct-2003  simonb Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
 1.8 23-Dec-2002  pooka branches: 1.8.2;
also create boot.ip32 with the entry point set to the IP32 load address

from Chris Sekiya
 1.7 10-Nov-2002  thorpej Add "-mno-abicalls" to AFLAGS. Add "-ffreestanding -msoft-float" to
CFLAGS.
 1.6 20-Dec-2001  thorpej branches: 1.6.2;
Add -Dsgimips to CPPFLAGS.
 1.5 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.4 22-Nov-2001  soren Nuke cleandir target override.
 1.3 22-Nov-2001  soren Note kernel load adress change.
 1.2 22-Nov-2001  thorpej - Clean up the bootloader Makefiles somewhat.
- Build an ECOFF version of the bootloader as "boot". As a temporary
measure (due to a bug in libbfd which has not yet been fixed, but
for which a work-around exists as a patch), install and ELF version
of the bootload as well as "boot.elf". "boot.elf" will go away once
the toolchain issue is resolved.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 20-Dec-2001  thorpej file Makefile.booters was added on branch kqueue on 2002-01-10 19:48:33 +0000
 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.12.16.1 27-Feb-2008  yamt sync with head.
 1.13.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.13.70.1 24-Mar-2008  keiichi sync with head.
 1.13.50.1 23-Mar-2008  matt sync with HEAD
 1.15.22.1 10-Sep-2009  matt Add preliminary LP64 support for sgimips
 1.15.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.15.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.15.4.2 11-Mar-2010  yamt sync with head
 1.15.4.1 04-May-2009  yamt sync with head.
 1.17.8.2 05-Mar-2011  bouyer Sync with HEAD
 1.17.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.17.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.17.4.1 05-Mar-2011  rmind sync with head
 1.21.18.1 18-May-2014  rmind sync with head
 1.21.14.2 03-Dec-2017  jdolecek update from HEAD
 1.21.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.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.22.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.22.6.2 28-Aug-2017  skrll Sync with HEAD
 1.22.6.1 05-Oct-2016  skrll Sync with HEAD
 1.23.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.24.14.1 10-Jun-2019  christos Sync with HEAD
 1.24.12.1 18-Jan-2019  pgoyette Synch with HEAD
 1.4 15-Apr-2021  mrg more -fcommon for boot programs.
 1.3 02-Jan-2019  tsutsui branches: 1.3.14;
Allow build in boot64 without installed DESTDIR.
 1.2 08-Sep-2016  christos branches: 1.2.14; 1.2.16;
Avoid the PIE
 1.1 21-Nov-2001  soren branches: 1.1.2; 1.1.168; 1.1.188;
Install loader in /usr/mdec.
 1.1.188.1 05-Oct-2016  skrll Sync with HEAD
 1.1.168.1 03-Dec-2017  jdolecek update from HEAD
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file Makefile.inc was added on branch kqueue on 2002-01-10 19:48:33 +0000
 1.2.16.1 10-Jun-2019  christos Sync with HEAD
 1.2.14.1 18-Jan-2019  pgoyette Synch with HEAD
 1.3.14.1 17-Apr-2021  thorpej Sync with HEAD.
 1.22 29-Jun-2024  rin sgimips: stand: Switch to libsa/getopt, NFCI
 1.21 01-Jan-2019  christos ELF2ECOFF -> MIPS_ELF2ECOFF
 1.20 02-Sep-2018  tsutsui Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.

objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.
 1.19 26-Feb-2011  matt branches: 1.19.30; 1.19.48; 1.19.54; 1.19.56;
Make sure that sgimips64 can build the O32 bootloaders
 1.18 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.17 27-May-2010  dholland branches: 1.17.2; 1.17.4;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.16 16-Dec-2009  matt branches: 1.16.2; 1.16.4;
Fix typo (missing -)
 1.15 14-Dec-2009  matt Merge from matt-nb5-mips64
Merge mips-specific arch files.
 1.14 15-Mar-2009  tsutsui - use <bsd.klinks.mk> to create MD include dir symlinks
- make sure to remove lib subdirs on clean and distclean target
 1.13 23-Feb-2008  tsutsui branches: 1.13.4; 1.13.12; 1.13.18; 1.13.22;
- preserver non-stripped boot binaries
- use ${.TARGET}
 1.12 11-Dec-2005  christos branches: 1.12.50; 1.12.70; 1.12.74;
merge ktrace-lwp.
 1.11 09-Sep-2005  tsutsui Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
 1.10 23-Apr-2005  tsutsui branches: 1.10.2;
Link ip3xboot as OMAGIC by -N option for ld(1) so that the firmware on O2
can load it again.
 1.9 01-Mar-2005  sekiya branches: 1.9.2;
Replace elf2ecoff with objcopy for ECOFF bootloader creation. Fix a comment
typo while we're here.
 1.8 13-Nov-2003  sekiya branches: 1.8.8; 1.8.10;
bootloader targets have changed, which confused the install rules.
 1.7 13-Nov-2003  sekiya More bootloader changes:

* if loading from cdrom, assume we're performing an install and
fix up bootpath/kernel to load the proper install kernel.
* maximum filename length in volume header is eight characters.
Change boot.elf to ip2xboot, boot.ip32 to ip3xboot, and boot
to aoutboot (which matches kernel naming scheme as well).
 1.6 11-Nov-2003  sekiya Add getopt.c
 1.5 23-Dec-2002  pooka branches: 1.5.2;
also create boot.ip32 with the entry point set to the IP32 load address

from Chris Sekiya
 1.4 12-Jul-2002  rafal Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
the ECOFF version of boot produced by `objcopy'. Using elf2ecoff make it
work, so use that instead. Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).
 1.3 22-Nov-2001  thorpej branches: 1.3.2; 1.3.10; 1.3.12;
- Clean up the bootloader Makefiles somewhat.
- Build an ECOFF version of the bootloader as "boot". As a temporary
measure (due to a bug in libbfd which has not yet been fixed, but
for which a work-around exists as a patch), install and ELF version
of the bootload as well as "boot.elf". "boot.elf" will go away once
the toolchain issue is resolved.
 1.2 21-Nov-2001  thorpej - Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.3.12.1 15-Jul-2002  thorpej pullup-1-6 ticket #494 (rafal).

Original log message:
Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
the ECOFF version of boot produced by `objcopy'. Using elf2ecoff make it
work, so use that instead. Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).
 1.3.10.1 17-Jul-2002  gehenna catch up with -current.
 1.3.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Nov-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:48:33 +0000
 1.5.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.2.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.8.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.8.8.1 29-Apr-2005  kent sync with -current
 1.9.2.2 13-Sep-2005  tron Pull up following revision(s) (requested by tsutsui in ticket #762):
sys/arch/sgimips/stand/boot/Makefile: revision 1.11
Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
 1.9.2.1 13-Sep-2005  tron Pull up following revision(s) (requested by tsutsui in ticket #762):
sys/arch/sgimips/stand/boot/Makefile: revision 1.10
Link ip3xboot as OMAGIC by -N option for ld(1) so that the firmware on O2
can load it again.
 1.10.2.2 27-Feb-2008  yamt sync with head.
 1.10.2.1 21-Jun-2006  yamt sync with head.
 1.12.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.12.70.1 24-Mar-2008  keiichi sync with head.
 1.12.50.1 23-Mar-2008  matt sync with HEAD
 1.13.22.1 10-Sep-2009  matt Add preliminary LP64 support for sgimips
 1.13.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.4.3 11-Aug-2010  yamt sync with head.
 1.13.4.2 11-Mar-2010  yamt sync with head
 1.13.4.1 04-May-2009  yamt sync with head.
 1.16.4.2 05-Mar-2011  rmind sync with head
 1.16.4.1 30-May-2010  rmind sync with head
 1.16.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.17.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.17.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.19.56.1 10-Jun-2019  christos Sync with HEAD
 1.19.54.2 18-Jan-2019  pgoyette Synch with HEAD
 1.19.54.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.19.48.1 10-Sep-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #1017):

sys/arch/sgimips/conf/INSTALL32_IP2x: revision 1.10
sys/arch/sgimips/stand/boot/Makefile: revision 1.20
sys/arch/sgimips/sgimips/machdep.c: revision 1.146
sys/arch/sgimips/hpc/wdsc.c: revision 1.35
distrib/sgimips/instkernel/Makefile: revision 1.13

Disable misc options to shrink an INSTALL kernel for IP2x.

The ARC BIOS on Indy seems to have ~8MB limit.

Fixes PR port-sgimips/53378 from Naruaki Etomi.
Should be pulled up to netbsd-7 and netbsd-8.

-

Fix build failure without options DDB and with pseudo-device ksyms.
There is a typo for ksyms (NKSYMS vs NKSYM).

Also use consistent "#if NKSYMS" rather than "#if NKSYMS > 0" etc.
and add comments after corresponding #endif for readability.

Fixes PR port-sgimips/53521 from Naruaki Etomi.
Should be pulled up to (at least) netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.

-

Fix wdsc(4) probe failure on HPC1.5 machines (Indigo R3k/R4k, IP6/IP10/IP12).

The alignment adjustment code was removed in rev 1.36 for common
mips bus_space changes, but the code was not bus_space related
but used for uint32_t register acccess during probe.

Reported and tested by Naruaki Etomi in PR port-sgimips/53522.
Should be pulled up to netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generate ecoff kernel.

Reported by Naruaki Etomi in PR port-sgimips/53518.

Should be pulled up to netbsd-7 and netbsd-8.
 1.19.30.1 30-Oct-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #1637):

sys/arch/sgimips/conf/INSTALL32_IP2x: revision 1.10
sys/arch/sgimips/stand/boot/Makefile: revision 1.20
distrib/sgimips/instkernel/Makefile: revision 1.13

Disable misc options to shrink an INSTALL kernel for IP2x.

The ARC BIOS on Indy seems to have ~8MB limit.

Fixes PR port-sgimips/53378 from Naruaki Etomi.
Should be pulled up to netbsd-7 and netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9

but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).

Reported by Naruaki Etomi in PR port-sgimips/53519.

Should be pulled up to at least netbsd-8.

-

Use elf2ecoff(1) rather than objcopy(1) to generate ecoff kernel.

Reported by Naruaki Etomi in PR port-sgimips/53518.
Should be pulled up to netbsd-7 and netbsd-8.
 1.6 08-Aug-2008  tsutsui Bump BOOTINFO_MAGIC to prevent old kernels (including netbsd-4) crashing
when bootinfo data is passed from newer bootloaders.

Note old bootloaders can still load newer kernels.
 1.5 28-Mar-2008  tsutsui branches: 1.5.4; 1.5.6; 1.5.10;
Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
 1.4 23-Feb-2008  tsutsui Bump version for working bootinfo support.
 1.3 17-Mar-2003  rafal branches: 1.3.18; 1.3.80; 1.3.100; 1.3.104;
Update for devopen() change.
 1.2 21-Nov-2001  thorpej branches: 1.2.2;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file version was added on branch kqueue on 2002-01-10 19:48:33 +0000
 1.3.104.2 28-Sep-2008  mjf Sync with HEAD.
 1.3.104.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.100.1 24-Mar-2008  keiichi sync with head.
 1.3.80.1 23-Mar-2008  matt sync with HEAD
 1.3.18.1 27-Feb-2008  yamt sync with head.
 1.5.10.1 19-Oct-2008  haad Sync with HEAD.
 1.5.6.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.5.4.1 04-May-2009  yamt sync with head.
 1.15 29-Jun-2024  rin sgimips: stand: Switch to libsa/getopt, NFCI
 1.14 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.13 08-Sep-2016  christos branches: 1.13.2;
Avoid the PIE
 1.12 16-Jan-2014  christos branches: 1.12.6; 1.12.10;
eliminate use of bsd.sys.mk from Makefiles
 1.11 25-Feb-2011  matt branches: 1.11.4; 1.11.14; 1.11.18;
Don't rely on having a mips64eb toolchain.
 1.10 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.9 23-Jan-2011  joerg Define NOMAN earlier.
 1.8 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.7 27-May-2010  dholland branches: 1.7.2; 1.7.4;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.6 15-Mar-2009  tsutsui branches: 1.6.2; 1.6.4;
- use <bsd.klinks.mk> to create MD include dir symlinks
- make sure to remove lib subdirs on clean and distclean target
 1.5 23-Feb-2008  tsutsui branches: 1.5.4; 1.5.12; 1.5.18;
- use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
 1.4 23-Feb-2008  tsutsui Use ${.TARGET}.
 1.3 11-Dec-2005  christos branches: 1.3.50; 1.3.70; 1.3.74;
merge ktrace-lwp.
 1.2 14-Jan-2005  skrll branches: 1.2.10;
Update the emulation names after recent binutils changes.
 1.1 11-Aug-2004  sekiya branches: 1.1.2;
Add 64-bit ABI bootloader (for IP30). Needs a slightly modified toolchain
and a 64-bit-clean libkern.a; once those bits are committed, this should be
100% good to go.
 1.1.2.5 17-Jan-2005  skrll Sync with HEAD.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 12-Aug-2004  skrll Sync with HEAD.
 1.1.2.1 11-Aug-2004  skrll file Makefile was added on branch ktrace-lwp on 2004-08-12 11:41:14 +0000
 1.2.10.1 27-Feb-2008  yamt sync with head.
 1.3.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.3.70.1 24-Mar-2008  keiichi sync with head.
 1.3.50.1 23-Mar-2008  matt sync with HEAD
 1.5.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.4.2 11-Aug-2010  yamt sync with head.
 1.5.4.1 04-May-2009  yamt sync with head.
 1.6.4.2 05-Mar-2011  rmind sync with head
 1.6.4.1 30-May-2010  rmind sync with head
 1.6.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.7.4.2 05-Mar-2011  bouyer Sync with HEAD
 1.7.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.7.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.11.18.1 18-May-2014  rmind sync with head
 1.11.14.2 03-Dec-2017  jdolecek update from HEAD
 1.11.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.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.12.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.12.6.2 28-Aug-2017  skrll Sync with HEAD
 1.12.6.1 05-Oct-2016  skrll Sync with HEAD
 1.13.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 11-Aug-2004  sekiya branches: 1.1.2;
Add 64-bit ABI bootloader (for IP30). Needs a slightly modified toolchain
and a 64-bit-clean libkern.a; once those bits are committed, this should be
100% good to go.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 12-Aug-2004  skrll Sync with HEAD.
 1.1.2.1 11-Aug-2004  skrll file version was added on branch ktrace-lwp on 2004-08-12 11:41:14 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file Makefile was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file Makefile was added on branch pgoyette-compat on 2019-01-18 08:50:22 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file version was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file version was added on branch pgoyette-compat on 2019-01-18 08:50:22 +0000
 1.20 26-Mar-2014  christos kill sprintf.
 1.19 20-Feb-2011  matt branches: 1.19.4; 1.19.14; 1.19.18;
Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.18 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.17 28-Apr-2008  martin branches: 1.17.22; 1.17.28; 1.17.30;
Remove clause 3 and 4 from TNF licenses
 1.16 28-Mar-2008  tsutsui branches: 1.16.2; 1.16.4;
Adjust boot device detection code to make netboot work properly:
- make a bootloader pass bootpath which includes device path on ARC BIOS
via BTINFO_BOOTPATH
- make a kernel use BTINFO_BOOTPATH in bootinfo to see boot device first,
then check argv[0] passed from ARC BIOS if there is no valid bootinfo
- check OSLoadPartition variables in the ARCBIOS environment and whole
argv[] arguments for IP12
- initialize mach_type before it's referred
- bump boot version

Tested on IP32 with various kernel/bootloader combinations.
 1.15 23-Feb-2008  tsutsui - use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
 1.14 23-Feb-2008  tsutsui Fix NULL pointer dereference on CD boot.
Reported by Martin Husemann on port-sgimips.
 1.13 26-Jan-2008  tsutsui branches: 1.13.2; 1.13.6;
Replace bootinfo stuff on sgimips (which has been disabled in bootloader)
with ones used on arc (which has been working for a year) and
enable it in bootloader. Tested on IP32.
 1.12 11-Dec-2005  christos branches: 1.12.50; 1.12.56;
merge ktrace-lwp.
 1.11 03-Jun-2005  martin branches: 1.11.2;
Constify
 1.10 03-Jan-2004  sekiya bootinfo is problematic on ip2x under certain circumstances. Disable for now.
 1.9 30-Dec-2003  sekiya Don't flush caches here. Fixes crash on IP20 (which apparently occurs only
with beta Blackjack boards that incorporate ARCS V1).
 1.8 13-Nov-2003  sekiya libsa's iso9660 routines don't handle rockridge. Alter installation kernel
fixup routines accordingly -- we'll use "ip2x" and "ip3x" for install kernel
names rather than "netbsd-INSTALL32_IPxy".
 1.7 13-Nov-2003  sekiya loadfile truth check should be >=0, not >= 1.
 1.6 13-Nov-2003  sekiya More bootloader changes:

* if loading from cdrom, assume we're performing an install and
fix up bootpath/kernel to load the proper install kernel.
* maximum filename length in volume header is eight characters.
Change boot.elf to ip2xboot, boot.ip32 to ip3xboot, and boot
to aoutboot (which matches kernel naming scheme as well).
 1.5 11-Nov-2003  sekiya Rework the boot loader:
* remove dead code,
* streamline kernel selection logic,
* various small bugfixes.
 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 21-Nov-2001  thorpej branches: 1.3.2; 1.3.18;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.2 21-Nov-2001  soren s/pmax/sgimips/ in comments.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.3.18.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.18.1 03-Aug-2004  skrll Sync with HEAD
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 21-Nov-2001  thorpej file boot.c was added on branch kqueue on 2002-01-10 19:48:34 +0000
 1.11.2.2 27-Feb-2008  yamt sync with head.
 1.11.2.1 04-Feb-2008  yamt sync with head.
 1.12.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.12.50.1 23-Mar-2008  matt sync with HEAD
 1.13.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.13.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.13.2.1 24-Mar-2008  keiichi sync with head.
 1.16.4.1 16-May-2008  yamt sync with head.
 1.16.2.1 18-May-2008  yamt sync with head.
 1.17.30.2 05-Mar-2011  bouyer Sync with HEAD
 1.17.30.1 08-Feb-2011  bouyer Sync with HEAD
 1.17.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.17.22.1 05-Mar-2011  rmind sync with head
 1.19.18.1 18-May-2014  rmind sync with head
 1.19.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.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.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 26-Jan-2008  tsutsui branches: 1.3.6; 1.3.8; 1.3.10;
Replace bootinfo stuff on sgimips (which has been disabled in bootloader)
with ones used on arc (which has been working for a year) and
enable it in bootloader. Tested on IP32.
 1.2 21-Nov-2001  thorpej branches: 1.2.2; 1.2.34; 1.2.96; 1.2.102;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.102.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.96.1 23-Mar-2008  matt sync with HEAD
 1.2.34.1 04-Feb-2008  yamt sync with head.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file bootinfo.c was added on branch kqueue on 2002-01-10 19:48:34 +0000
 1.3.10.1 16-May-2008  yamt sync with head.
 1.3.8.1 18-May-2008  yamt sync with head.
 1.3.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 26-Jan-2008  tsutsui branches: 1.3.6; 1.3.8; 1.3.10;
Replace bootinfo stuff on sgimips (which has been disabled in bootloader)
with ones used on arc (which has been working for a year) and
enable it in bootloader. Tested on IP32.
 1.2 21-Nov-2001  thorpej branches: 1.2.2; 1.2.34; 1.2.96; 1.2.102;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.102.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.96.1 23-Mar-2008  matt sync with HEAD
 1.2.34.1 04-Feb-2008  yamt sync with head.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file bootinfo.h was added on branch kqueue on 2002-01-10 19:48:34 +0000
 1.3.10.1 16-May-2008  yamt sync with head.
 1.3.8.1 18-May-2008  yamt sync with head.
 1.3.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.4 28-Apr-2008  martin branches: 1.4.22; 1.4.28; 1.4.30;
Remove clause 3 and 4 from TNF licenses
 1.3 23-Feb-2008  tsutsui branches: 1.3.2; 1.3.4;
- use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
 1.2 21-Nov-2001  thorpej branches: 1.2.2; 1.2.34; 1.2.96; 1.2.116; 1.2.120;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.120.2 02-Jun-2008  mjf Sync with HEAD.
 1.2.120.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.116.1 24-Mar-2008  keiichi sync with head.
 1.2.96.1 23-Mar-2008  matt sync with HEAD
 1.2.34.1 27-Feb-2008  yamt sync with head.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file common.h was added on branch kqueue on 2002-01-10 19:48:34 +0000
 1.3.4.1 16-May-2008  yamt sync with head.
 1.3.2.1 18-May-2008  yamt sync with head.
 1.4.30.1 08-Feb-2011  bouyer Sync with HEAD
 1.4.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.22.1 05-Mar-2011  rmind sync with head
 1.6 15-Dec-2007  tsutsui - enable both ffsv1 and ffsv2
- use __arraycount()
 1.5 11-Dec-2005  christos branches: 1.5.50; 1.5.60; 1.5.64;
merge ktrace-lwp.
 1.4 23-Jun-2005  junyoung branches: 1.4.2;
Use FS_OPS() macro.
 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 23-Feb-2003  simonb branches: 1.2.2;
Update for LFSv2 support. Ports that have "bootxx_lfs"-style
bootblocks currently only support LFSv2, but the second level
"boot" program supports both LFS versions.
 1.1 21-Nov-2001  thorpej branches: 1.1.2;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file conf.c was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.2.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.2.1 21-Jan-2008  yamt sync with head
 1.5.64.1 02-Jan-2008  bouyer Sync with HEAD
 1.5.60.1 26-Dec-2007  ad Sync with head.
 1.5.50.1 09-Jan-2008  matt sync with HEAD
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 21-Apr-2005  tsutsui Cosmetic changes to reduce diffs from arc.
 1.4 28-Sep-2003  tsutsui branches: 1.4.8;
Fix typo. From Christopher SEKIYA.
 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 17-Mar-2003  rafal branches: 1.2.2;
If the boot device starts with a PCI bus spec, skip over that when looking
for a boot device type; this gets the boot.ip32 booting a kernel off disk.

While here remove some unrolled string compares in favor of strncmp() to
make code more readable.
 1.1 21-Nov-2001  thorpej branches: 1.1.2;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file devopen.c was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.2.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.8.1 29-Apr-2005  kent sync with -current
 1.12 14-Feb-2016  dholland Add missing va_list, from David Binderman in PR 50796.

XXX: this file and arch/arc/stand/boot/disk.c are cutpaste clones.
 1.11 17-Jul-2011  joerg branches: 1.11.12; 1.11.30;
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.10 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.9 25-Jan-2006  christos branches: 1.9.98; 1.9.104; 1.9.106;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.8 11-Dec-2005  christos branches: 1.8.2;
merge ktrace-lwp.
 1.7 21-Apr-2005  tsutsui branches: 1.7.2;
Cosmetic changes to reduce diffs from arc.
 1.6 18-Apr-2005  tsutsui - Use u_long or long rather than paddr_t for ARCBIOS function prototypes
as per the ARC specification. They are actually 64bit on MIPS64 based
machines and our paddr_t is not equal to pointer size.
(arc is ILP32 but has 64bit paddr_t)
- While here, change some unsigned long to u_long for consistency.
 1.5 04-Oct-2004  he branches: 1.5.4;
Track the change of int -> paddr_t for the arguments to the ARCBIOS
routines.
 1.4 11-Nov-2003  sekiya Remove unused variables.
 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 21-Nov-2001  thorpej branches: 1.2.2; 1.2.18;
- Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.2.18.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.18.4 19-Oct-2004  skrll Sync with HEAD
 1.2.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.18.1 03-Aug-2004  skrll Sync with HEAD
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 21-Nov-2001  thorpej file disk.c was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.5.4.1 29-Apr-2005  kent sync with -current
 1.7.2.1 21-Jun-2006  yamt sync with head.
 1.8.2.1 01-Feb-2006  yamt sync with head.
 1.9.106.1 05-Mar-2011  bouyer Sync with HEAD
 1.9.104.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.98.1 05-Mar-2011  rmind sync with head
 1.11.30.1 19-Mar-2016  skrll Sync with HEAD
 1.11.12.1 03-Dec-2017  jdolecek update from HEAD
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 21-Apr-2005  tsutsui Cosmetic changes to reduce diffs from arc.
 1.2 08-Feb-2004  sekiya branches: 1.2.8;
de-__P.
 1.1 21-Nov-2001  thorpej branches: 1.1.2; 1.1.18;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.18.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.18.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file disk.h was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.2.8.1 29-Apr-2005  kent sync with -current
 1.8 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.7 28-Apr-2008  martin branches: 1.7.22; 1.7.28; 1.7.30;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5 21-Apr-2005  tsutsui Cosmetic changes to reduce diffs from arc.
 1.4 18-Apr-2005  tsutsui - Use u_long or long rather than paddr_t for ARCBIOS function prototypes
as per the ARC specification. They are actually 64bit on MIPS64 based
machines and our paddr_t is not equal to pointer size.
(arc is ILP32 but has 64bit paddr_t)
- While here, change some unsigned long to u_long for consistency.
 1.3 04-Oct-2004  he branches: 1.3.4;
Track the change of int -> paddr_t for the arguments to the ARCBIOS
routines.
 1.2 21-May-2002  rafal branches: 1.2.8;
Make sure to read from stdin, not stdout. From Scott Taylor.
 1.1 21-Nov-2001  thorpej branches: 1.1.2; 1.1.10;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.10.1 30-May-2002  gehenna Catch up with -current.
 1.1.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file getchar.c was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.2.8.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.1 19-Oct-2004  skrll Sync with HEAD
 1.3.4.1 29-Apr-2005  kent sync with -current
 1.6.78.1 16-May-2008  yamt sync with head.
 1.6.76.1 18-May-2008  yamt sync with head.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.22.1 05-Mar-2011  rmind sync with head
 1.4 29-Jun-2024  rin sgimips: stand: Switch to libsa/getopt, NFCI
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 21-Apr-2005  tsutsui Cosmetic changes to reduce diffs from arc.
 1.1 11-Nov-2003  sekiya branches: 1.1.4; 1.1.10;
Add getopt.c
 1.1.10.1 29-Apr-2005  kent sync with -current
 1.1.4.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 11-Nov-2003  skrll file getopt.c was added on branch ktrace-lwp on 2004-08-03 10:40:15 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_autoconf.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_autoconf.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_boot.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_boot.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_conf.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_conf.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_cons.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_cons.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_cons.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_cons.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_devopen.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_devopen.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_disk.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_disk.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_machdep.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_machdep.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_parse.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_parse.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_prf.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_prf.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.2 09-Feb-2024  andvar fix spelling mistakes, mainly in comments and log messages.
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_scsi.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_scsi.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_scsicmd.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_scsicmd.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_scsictl.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_scsictl.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_scsireg.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_scsireg.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_scsivar.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_scsivar.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_start.S was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_start.S was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.2 03-May-2024  andvar s/inerttupts/interrupts/ in comments.
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_zs.c was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_zs.c was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.1 12-Jan-2019  tsutsui branches: 1.1.2; 1.1.6;
Import irisboot, yet another bootloader for pre-ARC sgimips machines.

This bootloader adds support for Personal IRIS 4D/25 (IP6),
Personal IRIS 4D/35 (IP12), and Indigo R3000 (IP12) etc. and
optionally supports R4000 Indy and Indigo R4000 (ARCS machine)
using standalone WD33C93 SCSI driver.

Submitted by Naruaki Etomi via PR port-sgimips/53539,
and reviewed by tsutsui@. See also port-sgimips@ ML thread:
https://mail-index.netbsd.org/port-sgimips/2018/09/16/msg000778.html
 1.1.6.2 10-Jun-2019  christos Sync with HEAD
 1.1.6.1 12-Jan-2019  christos file iris_zs.h was added on branch phil-wifi on 2019-06-10 22:06:44 +0000
 1.1.2.2 18-Jan-2019  pgoyette Synch with HEAD
 1.1.2.1 12-Jan-2019  pgoyette file iris_zs.h was added on branch pgoyette-compat on 2019-01-18 08:50:23 +0000
 1.8 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.7 28-Apr-2008  martin branches: 1.7.22; 1.7.28; 1.7.30;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5 21-Apr-2005  tsutsui Cosmetic changes to reduce diffs from arc.
 1.4 18-Apr-2005  tsutsui - Use u_long or long rather than paddr_t for ARCBIOS function prototypes
as per the ARC specification. They are actually 64bit on MIPS64 based
machines and our paddr_t is not equal to pointer size.
(arc is ILP32 but has 64bit paddr_t)
- While here, change some unsigned long to u_long for consistency.
 1.3 04-Oct-2004  he branches: 1.3.4;
Track the change of int -> paddr_t for the arguments to the ARCBIOS
routines.
 1.2 13-Mar-2002  simonb branches: 1.2.12;
Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
 1.1 21-Nov-2001  thorpej branches: 1.1.2;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file putchar.c was added on branch kqueue on 2002-01-10 19:48:35 +0000
 1.2.12.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.12.1 19-Oct-2004  skrll Sync with HEAD
 1.3.4.1 29-Apr-2005  kent sync with -current
 1.6.78.1 16-May-2008  yamt sync with head.
 1.6.76.1 18-May-2008  yamt sync with head.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.22.1 05-Mar-2011  rmind sync with head
 1.6 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
Deal with arcbios calls being O32 and kernels being N32/N64.
Need to save/restore T8 across arcbios calls.
 1.5 28-Apr-2008  martin branches: 1.5.22; 1.5.28; 1.5.30;
Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.74; 1.4.76; 1.4.78;
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 13-Mar-2002  simonb branches: 1.2.12;
Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
 1.1 21-Nov-2001  thorpej branches: 1.1.2;
Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.1.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1 21-Nov-2001  thorpej file start.S was added on branch kqueue on 2002-01-10 19:48:36 +0000
 1.2.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.12.1 03-Aug-2004  skrll Sync with HEAD
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.5.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5.22.1 05-Mar-2011  rmind sync with head
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 11-Dec-2005  christos branches: 1.2.74; 1.2.76; 1.2.78;
merge ktrace-lwp.
 1.1 11-Aug-2004  sekiya branches: 1.1.2;
Start routine for 64-bit ABI.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 12-Aug-2004  skrll Sync with HEAD.
 1.1.2.1 11-Aug-2004  skrll file start64.S was added on branch ktrace-lwp on 2004-08-12 11:41:14 +0000
 1.2.78.1 16-May-2008  yamt sync with head.
 1.2.76.1 18-May-2008  yamt sync with head.
 1.2.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.2 21-Nov-2001  thorpej - Adjust bootinfo to work sanely in an ARCS world, and pass some
info along to the kernel (currently just the symbol table info).
- Don't bother with the startprog dance; we don't need to do anything
special, here, so just call the entry point directly.
- A bunch of random cleanup.
 1.1 21-Nov-2001  thorpej Initial cut at a bootloader for NetBSD/sgimips, by Michael Hitch.
 1.6 23-Dec-2005  ginsbach Fix the build of sgivol as a host tool on a platform without libutil,
e.g. MacOS X. Identical to method used in the disklabel(8) Makefile.
 1.5 13-Dec-2002  lukem branches: 1.5.22;
minor delint
 1.4 12-Dec-2001  tv branches: 1.4.2;
MKfoo=no -> NOfoo
 1.3 21-Nov-2001  soren Install loader in /usr/mdec.
 1.2 20-Nov-2001  thorpej - General code cleanup (and enable warnings).
- It's perfectly legal to have an 8 byte volume filename; the trailing
NUL is not required in this case.
- Default the partition type to "4.2BSD", not "EFS".
 1.1 20-Nov-2001  soren Michael Hitch's volume header tool.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 12-Dec-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:48:36 +0000
 1.5.22.1 21-Jun-2006  yamt sync with head.
 1.22 13-May-2024  msaitoh ficticious -> fictitious in comment.
 1.21 28-Mar-2014  christos use err
 1.20 26-Mar-2014  christos kill sprintf.
 1.19 27-Jun-2013  christos branches: 1.19.2;
close fp
http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html
 1.18 03-Aug-2008  rumble branches: 1.18.28; 1.18.38;
Add -m to usage and do not simply use strcmp to compare names as the volhdr
name is not necessarily nul-terminated.
 1.17 03-Aug-2008  rumble Add -m to move (rename) files in the volume header. While here, remove
some magic constants and fix some space-limited printfs.
 1.16 28-Apr-2008  martin branches: 1.16.2; 1.16.6;
Remove clause 3 and 4 from TNF licenses
 1.15 30-Dec-2006  rumble branches: 1.15.44; 1.15.46; 1.15.48;
Remove braces from non-optional arguments in usage.
 1.14 30-Dec-2006  rumble Add -p command to usage.
 1.13 03-Jul-2006  mrg branches: 1.13.4;
don't pass unsigned char * to functions wanting char *.
 1.12 05-May-2006  thorpej branches: 1.12.4;
Don't include <sys/endian.h> if building as a host tool.
 1.11 11-Dec-2005  christos branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; 1.11.12;
merge ktrace-lwp.
 1.10 28-Feb-2005  sekiya branches: 1.10.4;
0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
 1.9 24-Nov-2004  jmc branches: 1.9.4; 1.9.6;
Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
 1.8 08-Nov-2003  sekiya branches: 1.8.4;
Avoid namespace collision when sgivol is compiled as a native application.
 1.7 01-Nov-2003  sekiya Use be*toh() and htobe*() to permit use in cross-build environments. Add -h flag to override default volume header size.
 1.6 26-Oct-2003  sekiya NULL -> 0
 1.5 18-Jul-2002  rafal branches: 1.5.6;
Cleanup and enhancements to sgivol, mostly from Scott G. Taylor, with some
tweaking by me. Specifically, this gives sgivol an "unattended" mode that
can be used from eg. sysinst to install the bootblocks.
 1.4 13-Mar-2002  simonb branches: 1.4.4; 1.4.6;
Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
 1.3 20-Nov-2001  thorpej branches: 1.3.2;
Use strncmp() when looking up volume files.
 1.2 20-Nov-2001  thorpej - General code cleanup (and enable warnings).
- It's perfectly legal to have an 8 byte volume filename; the trailing
NUL is not required in this case.
- Default the partition type to "4.2BSD", not "EFS".
 1.1 20-Nov-2001  soren Michael Hitch's volume header tool.
 1.3.2.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 20-Nov-2001  thorpej file sgivol.c was added on branch kqueue on 2002-01-10 19:48:36 +0000
 1.4.6.1 19-Jul-2002  lukem Pull up revision 1.5 (requested by rafal in ticket #521):
Cleanup and enhancements to sgivol, mostly from Scott G. Taylor, with some
tweaking by me. Specifically, this gives sgivol an "unattended" mode that
can be used from eg. sysinst to install the bootblocks.
 1.4.4.1 21-Jul-2002  gehenna catch up with -current.
 1.5.6.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.5.6.4 29-Nov-2004  skrll Sync with HEAD.
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.4.2 01-Dec-2005  riz Pull up following revision(s) (requested by tsutsui in ticket #10164):
sys/arch/sgimips/stand/sgivol/sgivol.c: revision 1.10
0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
 1.8.4.1 06-Apr-2005  tron branches: 1.8.4.1.2;
Pull up revision 1.9 (requested by jmc in ticket #1028):
Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
 1.8.4.1.2.1 01-Dec-2005  riz Pull up following revision(s) (requested by tsutsui in ticket #10164):
sys/arch/sgimips/stand/sgivol/sgivol.c: revision 1.10
0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
 1.9.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.9.4.1 29-Apr-2005  kent sync with -current
 1.10.4.2 30-Dec-2006  yamt sync with head.
 1.10.4.1 21-Jun-2006  yamt sync with head.
 1.11.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.11.10.1 11-May-2006  elad sync with head
 1.11.8.2 11-Aug-2006  yamt sync with head
 1.11.8.1 24-May-2006  yamt sync with head.
 1.11.6.1 01-Jun-2006  kardel Sync with head.
 1.11.4.1 09-Sep-2006  rpaulo sync with head
 1.12.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.13.4.1 12-Jan-2007  ad Sync with head.
 1.15.48.2 04-May-2009  yamt sync with head.
 1.15.48.1 16-May-2008  yamt sync with head.
 1.15.46.1 18-May-2008  yamt sync with head.
 1.15.44.2 28-Sep-2008  mjf Sync with HEAD.
 1.15.44.1 02-Jun-2008  mjf Sync with HEAD.
 1.16.6.1 19-Oct-2008  haad Sync with HEAD.
 1.16.2.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.18.38.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.28.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.19.2.1 18-May-2014  rmind sync with head

RSS XML Feed