Home | History | Annotate | only in /src/sys/arch/atari/stand/tostools/libtos
History log of /src/sys/arch/atari/stand/tostools/libtos
RevisionDateAuthorComments
 1.7 25-Sep-2024  rin atari/stand: Rework sysinfo.c v.s. GCC12 -Warray-bounds

sysinfo.c is also used for bootxxx. Convert `-Wno-error=...` into
`#pragma gcc diagnostic ...` to the source file, although this
does not narrow down scope of hack.

Fix atari build this time for sure ;)
 1.6 24-Sep-2024  rin atari: libtos: Silence GCC12 -Warray-bounds for sysinfo.c

ADDR_* defined in tosdefs.h are in the 0-th page, even if 4KB page,
i.e., [0, 0x1000). This causes -Warray-bounds for GCC12 and later.

Fix atari build with GCC12.
 1.5 22-Mar-2002  leo branches: 1.5.238;
Add code for reading NetBSD disklabels.
 1.4 24-Feb-2002  leo Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.3 11-Oct-2001  leo branches: 1.3.4;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.2 10-Oct-2001  leo Check-point my work on the bootcode.
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.44;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.44.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.1.1.44.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.1.1.44.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.3.4.1 11-Oct-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-02-28 04:08:31 +0000
 1.5.238.1 02-Aug-2025  perseant Sync with HEAD
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file ahdi.c was added on branch kqueue on 2002-03-16 15:56:56 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file ahdi.c was added on branch nathanw_sa on 2002-02-28 04:08:31 +0000
 1.2 20-Oct-2009  snj Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8; 1.1.126;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.126.1 11-Mar-2010  yamt sync with head
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file ahdi.h was added on branch kqueue on 2002-03-16 15:56:56 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file ahdi.h was added on branch nathanw_sa on 2002-02-28 04:08:32 +0000
 1.4 01-Oct-2011  chs fix build errors with gcc 4.5.
 1.3 20-Oct-2009  snj Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
 1.2 22-Mar-2002  leo branches: 1.2.116;
Add code for reading NetBSD disklabels.
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.8.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file ahdilbl.h was added on branch kqueue on 2002-03-16 15:56:57 +0000
 1.1.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file ahdilbl.h was added on branch nathanw_sa on 2002-02-28 04:08:32 +0000
 1.2.116.1 11-Mar-2010  yamt sync with head
 1.12 18-Mar-2009  cegger bzero -> memset
 1.11 06-Jan-2009  tsutsui branches: 1.11.2;
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
 1.10 28-Apr-2008  martin branches: 1.10.8; 1.10.10;
Remove clause 3 and 4 from TNF licenses
 1.9 11-Dec-2005  christos branches: 1.9.24; 1.9.74; 1.9.76; 1.9.78;
merge ktrace-lwp.
 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.
 1.6 10-Dec-2002  thorpej branches: 1.6.6;
Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
 1.5 24-Feb-2002  leo Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.4 14-Oct-2001  leo branches: 1.4.4; 1.4.6;
TOS/MiNT needs unistd.h.
 1.3 13-Oct-2001  leo Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
 1.2 11-Oct-2001  leo Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1 10-Oct-2001  leo Check-point my work on the bootcode.
 1.4.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.4.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.6.1 14-Oct-2001  thorpej file aout.c was added on branch kqueue on 2002-01-10 19:40:22 +0000
 1.4.4.3 11-Dec-2002  thorpej Sync with HEAD.
 1.4.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.4.4.1 14-Oct-2001  nathanw file aout.c was added on branch nathanw_sa on 2002-02-28 04:08:32 +0000
 1.6.6.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.78.2 04-May-2009  yamt sync with head.
 1.9.78.1 16-May-2008  yamt sync with head.
 1.9.76.1 18-May-2008  yamt sync with head.
 1.9.74.2 17-Jan-2009  mjf Sync with HEAD.
 1.9.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.24.1 15-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.10.10.1 16-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.10.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.10.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.11.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file biosrw.s was added on branch kqueue on 2002-03-16 15:56:57 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file biosrw.s was added on branch nathanw_sa on 2002-02-28 04:08:32 +0000
 1.4 31-Mar-2009  tsutsui Remove extra whitespace added by a dumb tool.
 1.3 18-Mar-2009  cegger bcopy -> memcpy
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 22-Mar-2002  leo branches: 1.1.2; 1.1.8; 1.1.120; 1.1.128; 1.1.134;
Add code for reading NetBSD disklabels.
 1.1.134.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.128.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.120.1 04-May-2009  yamt sync with head.
 1.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 22-Mar-2002  jdolecek file bsdlabel.c was added on branch kqueue on 2002-06-23 17:35:22 +0000
 1.1.2.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.1 22-Mar-2002  nathanw file bsdlabel.c was added on branch nathanw_sa on 2002-04-01 07:39:35 +0000
 1.3 20-Oct-2009  snj Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
 1.2 11-Dec-2005  christos branches: 1.2.78;
merge ktrace-lwp.
 1.1 28-Oct-2003  he branches: 1.1.4;
Rename those assembly files which should be passed through the C
preprocessor from .s to .S to pick up CPPFLAGS.
 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 28-Oct-2003  skrll file bsdstart.S was added on branch ktrace-lwp on 2004-08-03 10:33:26 +0000
 1.2.78.1 11-Mar-2010  yamt sync with head
 1.8 28-Oct-2003  he Rename those assembly files which should be passed through the C
preprocessor from .s to .S to pick up CPPFLAGS.
 1.7 10-Oct-2001  leo branches: 1.7.4; 1.7.20;
Check-point my work on the bootcode.
 1.6 08-Sep-2001  thomas ELF adaption.
 1.5 04-Dec-1997  leo branches: 1.5.26; 1.5.28;
Preserve the bootflags in the processor-type test (== make the loader
work again for the TT030).
 1.4 27-May-1997  leo branches: 1.4.8;
Make the bootloader 68060 aware.
 1.3 26-Dec-1996  leo Make sure that the caches are pushed and turned off before jumping into
the kernel image. This makes booting a 040 kernel finally reliable.
 1.2 23-Jan-1996  leo STANDALONE -> TOSTOOLS
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo Common library for all tostools. (Waldi Ravens and myself)
 1.4.8.1 15-Dec-1997  mellon Pull rev 1.5 up from trunk (leo)
 1.5.28.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.28.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.26.1 01-Oct-2001  fvdl Catch up with -current.
 1.7.20.1 03-Aug-2004  skrll Sync with HEAD
 1.7.4.2 10-Oct-2001  leo Check-point my work on the bootcode.
 1.7.4.1 10-Oct-2001  leo file bsdstart.s was added on branch nathanw_sa on 2001-10-10 14:19:51 +0000
 1.10 31-Mar-2009  tsutsui Remove extra whitespace added by a dumb tool.
 1.9 18-Mar-2009  cegger bcopy -> memcpy
 1.8 18-Mar-2009  cegger bzero -> memset
 1.7 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.6 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.5 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.4 11-Dec-2005  christos branches: 1.4.78; 1.4.86; 1.4.92;
merge ktrace-lwp.
 1.3 24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.2 24-Feb-2002  leo branches: 1.2.16;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1 11-Oct-2001  leo branches: 1.1.4; 1.1.6;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 11-Oct-2001  thorpej file cread.c was added on branch kqueue on 2002-01-10 19:40:24 +0000
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 11-Oct-2001  nathanw file cread.c was added on branch nathanw_sa on 2002-02-28 04:08:32 +0000
 1.2.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.16.1 03-Aug-2004  skrll Sync with HEAD
 1.4.92.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.86.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.78.1 04-May-2009  yamt sync with head.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 24-Feb-2002  leo branches: 1.2.118; 1.2.120; 1.2.122;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1 11-Oct-2001  leo branches: 1.1.4; 1.1.6;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 11-Oct-2001  thorpej file cread.h was added on branch kqueue on 2002-01-10 19:40:24 +0000
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 11-Oct-2001  nathanw file cread.h was added on branch nathanw_sa on 2002-02-28 04:08:33 +0000
 1.2.122.1 16-May-2008  yamt sync with head.
 1.2.120.1 18-May-2008  yamt sync with head.
 1.2.118.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 26-Mar-2014  christos kill sprintf
 1.3 18-Mar-2009  cegger branches: 1.3.12; 1.3.22; 1.3.26;
Ansify function definitions w/o arguments. Generated with sed.
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8; 1.1.126; 1.1.134; 1.1.140;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.140.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.134.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.126.1 04-May-2009  yamt sync with head.
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file diskio.c was added on branch kqueue on 2002-03-16 15:56:58 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file diskio.c was added on branch nathanw_sa on 2002-02-28 04:08:33 +0000
 1.3.26.1 18-May-2014  rmind sync with head
 1.3.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 24-Feb-2002  leo branches: 1.1.2; 1.1.8;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file diskio.h was added on branch kqueue on 2002-03-16 15:56:58 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file diskio.h was added on branch nathanw_sa on 2002-02-28 04:08:33 +0000
 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 22-Mar-2002  leo branches: 1.1.2; 1.1.8; 1.1.14;
Add code for reading NetBSD disklabels.
 1.1.14.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.14.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.14.1 03-Aug-2004  skrll Sync with HEAD
 1.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 22-Mar-2002  jdolecek file disklbl.h was added on branch kqueue on 2002-06-23 17:35:22 +0000
 1.1.2.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.1 22-Mar-2002  nathanw file disklbl.h was added on branch nathanw_sa on 2002-04-01 07:39:36 +0000
 1.14 01-Oct-2011  chs fix build errors with gcc 4.5.
 1.13 31-Mar-2009  tsutsui Remove extra whitespace added by a dumb tool.
 1.12 18-Mar-2009  cegger bcopy -> memcpy
 1.11 18-Mar-2009  cegger bzero -> memset
 1.10 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.9 06-Jan-2009  tsutsui branches: 1.9.2;
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
 1.8 28-Apr-2008  martin branches: 1.8.8; 1.8.10;
Remove clause 3 and 4 from TNF licenses
 1.7 11-Dec-2005  christos branches: 1.7.24; 1.7.74; 1.7.76; 1.7.78;
merge ktrace-lwp.
 1.6 28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.5 24-Feb-2002  leo branches: 1.5.16;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.4 14-Oct-2001  leo branches: 1.4.4; 1.4.6;
TOS/MiNT needs unistd.h.
 1.3 13-Oct-2001  leo Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
 1.2 11-Oct-2001  leo Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1 10-Oct-2001  leo Check-point my work on the bootcode.
 1.4.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.4.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.6.1 14-Oct-2001  thorpej file elf.c was added on branch kqueue on 2002-01-10 19:40:25 +0000
 1.4.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.4.4.1 14-Oct-2001  nathanw file elf.c was added on branch nathanw_sa on 2002-02-28 04:08:33 +0000
 1.5.16.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.78.2 04-May-2009  yamt sync with head.
 1.7.78.1 16-May-2008  yamt sync with head.
 1.7.76.1 18-May-2008  yamt sync with head.
 1.7.74.2 17-Jan-2009  mjf Sync with HEAD.
 1.7.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.24.1 15-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.8.10.1 16-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.8.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.8.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.170; 1.1.1.1.178; 1.1.1.1.184;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.184.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.1.1.178.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.1.1.170.1 04-May-2009  yamt sync with head.
 1.3 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.2 24-Feb-2002  leo branches: 1.2.122; 1.2.130; 1.2.136;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.44; 1.1.1.1.48;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.48.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.1.1.44.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.136.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.130.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.122.1 04-May-2009  yamt sync with head.
 1.8 10-Oct-2020  thorpej Rename:
- EM_ALPHA (41) -> EM_OLD_ALPHA
- EM_ALPHA_EXP (36902) -> EM_ALPHA

36902 has been the value in common usage for a long time, and this naming
aligns with binutils, etc.

PR port-alpha/51926
 1.7 03-Jan-2014  dsl Remove the _KERNEL part of these two clones of sys/exec_elf.h
Remove the incorrect (and completely unused everywhere) Elf64_Shalf.
Put a better include guard on arch/epoc32/stand/e32boot/include/elf.h
Should be ok because I can't find any references to KERNEL in these
source trees.
 1.6 28-Aug-2010  joerg branches: 1.6.8; 1.6.18; 1.6.22;
Replace the current usage of Elf64_Half with Elf64_Word and rename
NetBSD specific Elf64_Quarter to Elf64_Half. This restores compatibility
with the common ELF specifications.
 1.5 28-Apr-2008  martin branches: 1.5.20; 1.5.22;
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 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.2 11-Oct-2001  leo branches: 1.2.4; 1.2.6; 1.2.22;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1 10-Oct-2001  leo Check-point my work on the bootcode.
 1.2.22.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.22.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.22.1 03-Aug-2004  skrll Sync with HEAD
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 11-Oct-2001  thorpej file exec_elf.h was added on branch kqueue on 2002-01-10 19:40:27 +0000
 1.2.4.2 11-Oct-2001  leo Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.2.4.1 11-Oct-2001  leo file exec_elf.h was added on branch nathanw_sa on 2001-10-11 07:07:43 +0000
 1.4.78.2 09-Oct-2010  yamt 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.22.1 05-Mar-2011  rmind sync with head
 1.5.20.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.6.22.1 18-May-2014  rmind sync with head
 1.6.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.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.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.170; 1.1.1.1.178; 1.1.1.1.184;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.184.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.1.1.178.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.1.1.170.1 04-May-2009  yamt sync with head.
 1.8 20-Oct-2009  snj Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@.
 1.7 11-Oct-2001  leo branches: 1.7.4; 1.7.126;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.6 10-Oct-2001  leo Check-point my work on the bootcode.
 1.5 07-Jan-2001  leo branches: 1.5.4;
Sync machine types with atari/include/cpu.h
 1.4 19-Feb-1999  leo branches: 1.4.8;
STANDALONE -> _STANDALONE per recent discussion.
 1.3 27-May-1997  leo Make the bootloader 68060 aware.
 1.2 19-Jan-1996  leo Use symbolic constants for ATARI_ANYCPU instead of dropping in a hex-value.
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo Common library for all tostools. (Waldi Ravens and myself)
 1.4.8.1 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.126.1 11-Mar-2010  yamt sync with head
 1.7.4.2 11-Oct-2001  leo Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.7.4.1 11-Oct-2001  leo file kparamb.h was added on branch nathanw_sa on 2001-10-11 07:07:43 +0000
 1.7 07-Nov-2018  maya Don't provide these definitions on netbsd as before, but without relying
on int8_t being a macro.
 1.6 17-Jul-2011  joerg branches: 1.6.52; 1.6.54;
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.5 06-Jan-2009  tsutsui Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
 1.4 24-Feb-2002  leo branches: 1.4.68; 1.4.118; 1.4.122; 1.4.130; 1.4.132;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.3 11-Oct-2001  leo branches: 1.3.4;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.2 10-Oct-2001  leo Check-point my work on the bootcode.
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.44;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.44.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.1.1.44.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.3.4.1 11-Oct-2001  nathanw file libtos.h was added on branch nathanw_sa on 2002-02-28 04:08:34 +0000
 1.4.132.1 16-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.4.130.1 19-Jan-2009  skrll Sync with HEAD.
 1.4.122.1 04-May-2009  yamt sync with head.
 1.4.118.1 17-Jan-2009  mjf Sync with HEAD.
 1.4.68.1 15-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.6.54.1 10-Jun-2019  christos Sync with HEAD
 1.6.52.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.10 25-Sep-2024  rin atari/stand: Rework sysinfo.c v.s. GCC12 -Warray-bounds

sysinfo.c is also used for bootxxx. Convert `-Wno-error=...` into
`#pragma gcc diagnostic ...` to the source file, although this
does not narrow down scope of hack.

Fix atari build this time for sure ;)
 1.9 14-Mar-2009  dsl branches: 1.9.100;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.8 06-Jan-2009  tsutsui branches: 1.8.2;
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.

Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers

Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.

Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
 1.7 28-Apr-2008  martin branches: 1.7.8; 1.7.10;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.24; 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 1.5 28-Jun-2005  junyoung #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h"
 1.4 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.3 24-Feb-2002  leo branches: 1.3.16;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.2 13-Oct-2001  leo branches: 1.2.4; 1.2.6;
Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
 1.1 10-Oct-2001  leo Check-point my work on the bootcode.
 1.2.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 13-Oct-2001  thorpej file sysinfo.c was added on branch kqueue on 2002-01-10 19:40:29 +0000
 1.2.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1 13-Oct-2001  nathanw file sysinfo.c was added on branch nathanw_sa on 2002-02-28 04:08:34 +0000
 1.3.16.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.16.1 03-Aug-2004  skrll Sync with HEAD
 1.6.78.2 04-May-2009  yamt sync with head.
 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.2 17-Jan-2009  mjf Sync with HEAD.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.24.1 15-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1263):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.7.10.1 16-Jan-2009  bouyer Pull up following revision(s) (requested by tsutsui in ticket #274):
sys/arch/atari/stand/xxboot/Makefile.xxboot: revision 1.5
sys/arch/atari/stand/tostools/libtos/libtos.h: revision 1.5
sys/arch/atari/stand/installboot/disklabel.c: revision 1.3
sys/arch/atari/stand/bootxxx/Makefile.bootxxx: revision 1.4, 1.5
sys/arch/atari/stand/libsa/Makefile: revision 1.28
sys/arch/atari/stand/bootxx/start.S: revision 1.1
distrib/utils/sysinst/arch/atari/md.c: revision 1.23
sys/arch/atari/stand/bootxx/Makefile.bootxx: revision 1.8
sys/arch/atari/stand/tostools/libtos/aout.c: revision 1.11
sys/arch/atari/stand/installboot/installboot.h: revision 1.9
sys/arch/atari/stand/bootxxx/bootxxx.c: revision 1.4
sys/arch/atari/stand/Makefile.inc: file removal
distrib/sets/lists/base/md.atari: revision 1.50
sys/arch/atari/stand/Makefile.booters: revision 1.1
sys/arch/atari/stand/bootxx/bootxx.c: revision 1.13
sys/arch/atari/stand/installboot/installboot.c: revision 1.22
sys/arch/atari/stand/tostools/libtos/elf.c: revision 1.9
sys/arch/atari/stand/tostools/libtos/sysinfo.c: revision 1.8
sys/arch/atari/stand/bootxxx/start.S: revision 1.1
Fix PR port-atari/40315: Bootloader fails on Atari TT030
Add asm sources which provide a fixed entry point for raw bootxx and bootxxx
because modern aggressive gcc4 may reorder functions in the same source
and the first function in a C source won't always appear at the beginning
in its object.
Also overhaul various files in the stand directory:
- rename stand/Makefile.inc to stand/Makefile.booters and
explicitly include it from each Makefile because the stand
directory contains non standalone programs like installboot and
Makefile.inc will be included implicitly from all Makefiles in SUBDIRs
- put more common options into Makefile.booters so that
all boot programs use proper options (-Os etc.)
- make standalone boot programs compile without installed ${DESTDIR}:
- create machine and m68k symlinks in ${.OBJDIR} in all boot programs
- set appropriate make environments to suppress errors and warnings
- <string.h> isn't there in _STANDALONE case
- put #ifdef TOSTOOLS (looks equivarent with !_STANDALONE)
to some files in stand/tostools
- use ${LD} ${LINKFLAGS} rather than ${CC} ${LDFLAGS}
- create raw binaries on ${PROG} target rather than on beforeinstall
and stop weird renaming on beforeinstall and afterinstall
- print proper error message if bootxx size is larger than limit
- create ${DESTDIR}/usr/mdec/{milan,std} directories on beforeinstall
in all boot programs
(XXX: how can we put MD /usr/mdec/foo directories into src/etc/mtree?)
- prototype warnsfy
- cleanup Makefiles for readablity and remove unnecessary rules
- no need to use daddr_t in installboot because the AHDI label doesn't
support 64 bit block numbers
Tested by David Ross (PR submitter) on port-atari, and
finally NetBSD/atari on TT030 is now fully functional.
Should be pulled up to netbsd-4 (where gcc4 was initially imported)
and netbsd-5.
Don't install built boot.atari loaders into / of DESTDIR because
there are two variants of boot.atari per machine types (std or milan)
and they should be selected and copied from /usr/mdec/{std,milan} dirs
to /targetroot during installation.
Problem on default installation with sysinst was reported by David Ross.
Remove /boot.atari, which is no longer installed during build
and removed from base.tgz.
Note we must not mark this obsolete because this tertiary bootloader
will be copied into / during installation and it shouldn't be removed
by postinstall(8).
Before installboot(8), check running machine types (milan or others)
via sysctl(3) and copy appropriate tertiary boot.atari loader
from /usr/mdec/{std,milan} into targetroot.
Full fresh installations of 5.0_BETA and 4.0_STABLE with the same change
have been tested by David Ross on port-atari.
Fixes the final portion of PR port-atari/40315, and
pullup requests to both netbsd-4 and netbsd-5 will be sent shortly.
 1.7.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.7.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.8.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.100.1 02-Aug-2025  perseant Sync with HEAD
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 24-Feb-2002  leo branches: 1.3.118; 1.3.120; 1.3.122;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.2 11-Oct-2001  leo branches: 1.2.4; 1.2.6;
Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
 1.1 10-Oct-2001  leo Check-point my work on the bootcode.
 1.2.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.6.1 11-Oct-2001  thorpej file tosdefs.h was added on branch kqueue on 2002-01-10 19:40:30 +0000
 1.2.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1 11-Oct-2001  nathanw file tosdefs.h was added on branch nathanw_sa on 2002-02-28 04:08:34 +0000
 1.3.122.1 16-May-2008  yamt sync with head.
 1.3.120.1 18-May-2008  yamt sync with head.
 1.3.118.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.2 24-Feb-2002  leo branches: 1.2.122; 1.2.130; 1.2.136;
Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.44; 1.1.1.1.48;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.48.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.1.1.44.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.136.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.130.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.122.1 04-May-2009  yamt sync with head.
 1.3 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.2 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.1 07-Jan-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 07-Jan-1996  leo branches: 1.1.1.1.170; 1.1.1.1.178; 1.1.1.1.184;
Common library for all tostools. (Waldi Ravens and myself)
 1.1.1.1.184.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.1.1.178.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.1.1.170.1 04-May-2009  yamt sync with head.

RSS XML Feed