Home | History | Annotate | only in /src/sys/arch/atari/stand/xxboot
History log of /src/sys/arch/atari/stand/xxboot
RevisionDateAuthorComments
 1.3 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.2 13-Oct-2001  leo branches: 1.2.4;
Add an address for the 3rd level boot.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo branches: 1.1.1.1.44;
NetBSD/Atari bootcode by Waldi Ravens.
 1.1.1.1.44.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 13-Oct-2001  leo Add an address for the 3rd level boot.
 1.2.4.1 13-Oct-2001  leo file LOADADDR was added on branch nathanw_sa on 2001-10-13 19:55:08 +0000
 1.1 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.8 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.7 13-Aug-2002  leo For some reason, things stopped working without explicitely adding a rule
to link the bootblocks... Found and fix provided by Thomas Gerner.
 1.6 15-Apr-2002  leo branches: 1.6.2; 1.6.4;
Fix PR-16305. Make the 'end' symbol local.
 1.5 22-Sep-2001  tv branches: 1.5.4;
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
now in bsd.own.mk).
 1.4 05-Sep-2001  thomas branches: 1.4.2;
Make the bootblocks build with ELF assembler.
 1.3 09-May-1997  mycroft branches: 1.3.36;
Eliminate bogus redefinitions of standard targets.
 1.2 17-Apr-1997  thorpej STRIP -> STRIPFLAG
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.3.36.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.36.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.36.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.36.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.5.4.3 27-Aug-2002  nathanw Catch up to -current.
 1.5.4.2 17-Apr-2002  nathanw Catch up to -current.
 1.5.4.1 22-Sep-2001  nathanw file Makefile.inc was added on branch nathanw_sa on 2002-04-17 00:02:46 +0000
 1.6.4.1 17-Aug-2002  lukem Pull up revision 1.7 (requested by leo in ticket #672):
For some reason, things stopped working without explicitely adding a rule
to link the bootblocks... Found and fix provided by Thomas Gerner.
 1.6.2.1 30-Aug-2002  gehenna catch up with -current.
 1.6 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.5 06-Jan-2009  tsutsui branches: 1.5.14; 1.5.24; 1.5.28;
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 11-Dec-2005  christos branches: 1.4.24; 1.4.74; 1.4.78; 1.4.86; 1.4.88;
merge ktrace-lwp.
 1.3 12-Mar-2004  jmc Toolize and use install to make mdec/std so it's in METALOG. Now a make release
works once again for atari
 1.2 28-Jun-2003  he branches: 1.2.2;
Use ${.CURDIR} when referring to source tree include directories.
 1.1 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 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.88.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.86.1 19-Jan-2009  skrll Sync with HEAD.
 1.4.78.1 04-May-2009  yamt sync with head.
 1.4.74.1 17-Jan-2009  mjf Sync with HEAD.
 1.4.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.5.28.1 18-May-2014  rmind sync with head
 1.5.24.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.14.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 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.5 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.4 28-Dec-1996  leo - The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.3 26-Dec-1996  leo Correct the IDE port-addresses and data transfer method so this will work
both Hades & Falcon.
 1.2 20-Mar-1996  leo Belongs to the last changes made to the ??boot/??boot.s files I did
yesterday.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.7 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.3 11-Dec-2005  christos branches: 1.3.112; 1.3.122; 1.3.128;
merge ktrace-lwp.
 1.2 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.1 23-May-2003  leo branches: 1.1.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3.128.1 18-May-2014  rmind sync with head
 1.3.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 sdb00t.ahdi.S was added on branch ktrace-lwp on 2004-08-03 10:33:27 +0000
 1.6 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.5 23-May-2003  leo branches: 1.5.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.4 15-Apr-2002  leo Fix PR-16305. Make the 'end' symbol local.
 1.3 05-Sep-2001  thomas branches: 1.3.6;
Make the bootblocks build with ELF assembler.
 1.2 28-Dec-1996  leo branches: 1.2.42;
- The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.3.6.1 05-Sep-2001  nathanw file sdb00t.ahdi.s was added on branch nathanw_sa on 2002-04-17 00:02:46 +0000
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.10 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.9 11-Dec-2005  christos branches: 1.9.112; 1.9.122; 1.9.128;
merge ktrace-lwp.
 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 23-May-2003  leo branches: 1.7.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.128.1 18-May-2014  rmind sync with head
 1.9.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 wdb00t.ahdi.S was added on branch ktrace-lwp on 2004-08-03 10:33:27 +0000
 1.6 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.5 15-Apr-2002  leo branches: 1.5.10;
Fix PR-16305. Make the 'end' symbol local.
 1.4 05-Sep-2001  thomas branches: 1.4.6;
Make the bootblocks build with ELF assembler.
 1.3 28-Dec-1996  leo branches: 1.3.42;
- The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.2 26-Dec-1996  leo Correct the IDE port-addresses and data transfer method so this will work
both Hades & Falcon.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.3.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.4.6.1 05-Sep-2001  nathanw file wdb00t.ahdi.s was added on branch nathanw_sa on 2002-04-17 00:02:46 +0000
 1.5.10.1 03-Aug-2004  skrll Sync with HEAD
 1.7 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.3 11-Dec-2005  christos branches: 1.3.112; 1.3.122; 1.3.128;
merge ktrace-lwp.
 1.2 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.1 23-May-2003  leo branches: 1.1.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3.128.1 18-May-2014  rmind sync with head
 1.3.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 xxboot.ahdi.S was added on branch ktrace-lwp on 2004-08-03 10:33:27 +0000
 1.7 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.6 15-Apr-2002  leo branches: 1.6.10;
Fix PR-16305. Make the 'end' symbol local.
 1.5 05-Sep-2001  thomas branches: 1.5.6;
Make the bootblocks build with ELF assembler.
 1.4 08-Jan-1997  leo branches: 1.4.42;
Adjust 'fill'.
 1.3 28-Dec-1996  leo - The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.2 18-Mar-1996  leo Take care of the case that <start_of_video> < <memtop>
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.4.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.5.6.1 05-Sep-2001  nathanw file xxboot.ahdi.s was added on branch nathanw_sa on 2002-04-17 00:02:47 +0000
 1.6.10.1 03-Aug-2004  skrll Sync with HEAD
 1.4 04-Mar-2018  tsutsui Provide wdboot as a copy of sdboot for Milan.

It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.
 1.3 28-Jun-2003  he branches: 1.3.188;
Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.3.188.1 13-Mar-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #624):
sys/arch/atari/stand/xxboot/sdboot/milan/Makefile: revision 1.4
sys/arch/atari/dev/nvram.c: revision 1.21
sys/arch/atari/conf/MILAN.in: revision 1.28
sys/arch/atari/atari/pmap_bootstrap.c: revision 1.9
sys/dev/isa/fd.c: revision 1.111
sys/arch/atari/atari/bus.c: revision 1.60
sys/arch/atari/stand/xxboot/ahdi-xxboot/milan/Makefile: revision 1.4
sys/arch/atari/atari/locore.s: revision 1.111
sys/arch/atari/isa/isa_machdep.c: revision 1.41
distrib/sets/lists/base/md.atari: revision 1.55
sys/arch/atari/pci/pci_machdep.c: revision 1.55
sys/arch/atari/pci/pci_machdep.c: revision 1.56
sys/arch/atari/include/vmparam.h: revision 1.32
sys/arch/atari/isa/isa_milan.c: revision 1.15
sys/arch/atari/isa/isa_milan.c: revision 1.16
sys/arch/atari/atari/bus.c: revision 1.59
sys/arch/atari/atari/atari_init.c: revision 1.101
sys/arch/atari/pci/pci_milan.c: revision 1.15
Fix I/O access failures for regions allocated by bus_space_map(9) on Milan.

Passing to PMAP_WIRED against I/O spaces seems problematic,
probably after yamt-km branch merge, which was committed
between NetBSD 3.0 and NetBSD 4.0.
(i.e. ISA and PCI devices on Milan didn't work after 4.0 release)

XXX:
According to pmap(9) man page, the "flags" arg for pmap_enter(9)
doesn't take VM_PROT_READ and VM_PROT_WRITE, but pmap_enter()
implementation in sys/arch/m68k/m68k/pmap_motolora.c historically
checks them.

Fix silent hang during config_console() (before consinit()) on Milan.
config_console() was a dirty hack used by ancient m68k ports
to probe and initialize console devices before "real" configure(9),
using subset of configure(9) functions.

In that case, most device specific data (except I/O access method)
are not initialized so we must not access device specific device_t and
softc structures in config_console() cases.

Fix silent hang after isa_intr_establish() on Milan.
The problems (wrong macro replacements) were slipped in rev 1.107:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/atari/atari/locore.s#rev1.107
Handle yet another atari specific quirk in the MI ISA fdc(4)/fd(4) driver.
This makes fd(4) drive(s) (which is necessary for installation)
properly attached on Milan.
atari uses "fdcisa" and "fdisa" for ISA fdc to co-exist other fd(4)
drivers, on-board (atari/dev/fd.c) one and Hades (atari/dev/hdfd.c) one.

Use a proper PSL value to be passed to splx(9) functions.
This should have been changed on yamt-splraiseipl branch merge
back in 2006, which made MI IPL_xxx values independent from
m68k MD PSL values for the %sr register.

Restore piixide(4) for Milan and disable other pciide devices.
piixide was removed in rev 1.18 and the log message said
"because Intel IDE disk controllers only exist as part of
Intel chipsets for x86 systems" but the Milan actually has
the Intel 82371FB southbridge on its board.
Other pciide devices are unlikely necessary for the default
kernel for such a rare machine.
Also fix pasto in comment.

Skip NVRAM checksum check and re-initialization on Milan.
Milan's firmware seems to use different check method.

Ack EOI for IRQ_SLAVE of the master PIC after ack for IRQ of the slave PIC.
I'm not sure if there are possible races in the original code, but
this is what i8259_asm_ack2() in sys/arch/x86/include/i8259.h does
and it looks this change makes a Milan kernel a bit stable.
Replace CRTC register values with ones taken from sys/dev/ic/vga_subr.c.
This fixes noise around column 3 and 4 and makes screen output clearer
on Milan with S3 Trio64V.

Explicitly setup the secondary IDE interrupt of PIIX on Milan.
The secondary IDE interrupt is connected to MBIRQ0 on PIIX, but
the Milan's ROM bootloader (at least version 0.99.7) doesn't seem
to setup the MBIRQ0 register to route it to IRQ15.

On Milan, also explicitly disable MBIRQ1 on PIIX.
Milan's ROM bootloader v1.2 and v1.4 incorrectly set MBIRQ0 connected
to the secondary IDE to IRQ14 (not 15) and unused MBIRQ1 to IRQ15,
so both IDE channels don't work properly.

Add dumb memory probe routines for Milan to use all available memory.
Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3.
(bootloader ROM fails to load TOS with 128MBx4)
No particular comment on port-atari@:
http://mail-index.netbsd.org/port-atari/2018/02/09/msg000580.html

Provide wdboot as a copy of sdboot for Milan.
It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.

Fix another possible out of bounds.

Replace bus_dmamap_sync(9) op with a newer one taken from m68k/bus_dma.c.
This could fix memory corruption issue caused by PREREAD ops with regions
whose boundaries are not aligned at cacheline size.
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.7 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.3 11-Dec-2005  christos branches: 1.3.112; 1.3.122; 1.3.128;
merge ktrace-lwp.
 1.2 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.1 23-May-2003  leo branches: 1.1.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3.128.1 18-May-2014  rmind sync with head
 1.3.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 fdboot.S was added on branch ktrace-lwp on 2004-08-03 10:33:27 +0000
 1.6 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.5 15-Apr-2002  leo branches: 1.5.10;
Fix PR-16305. Make the 'end' symbol local.
 1.4 05-Sep-2001  thomas branches: 1.4.6;
Make the bootblocks build with ELF assembler.
 1.3 28-Dec-1996  leo branches: 1.3.42;
- The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.2 18-Mar-1996  leo Take care of the case that <start_of_video> < <memtop>
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.3.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.4.6.1 05-Sep-2001  nathanw file fdboot.s was added on branch nathanw_sa on 2002-04-17 00:02:47 +0000
 1.5.10.1 03-Aug-2004  skrll Sync with HEAD
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.7 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.3 11-Dec-2005  christos branches: 1.3.112; 1.3.122; 1.3.128;
merge ktrace-lwp.
 1.2 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.1 23-May-2003  leo branches: 1.1.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3.128.1 18-May-2014  rmind sync with head
 1.3.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 sdboot.S was added on branch ktrace-lwp on 2004-08-03 10:33:27 +0000
 1.6 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.5 15-Apr-2002  leo branches: 1.5.10;
Fix PR-16305. Make the 'end' symbol local.
 1.4 05-Sep-2001  thomas branches: 1.4.6;
Make the bootblocks build with ELF assembler.
 1.3 28-Dec-1996  leo branches: 1.3.42;
- The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.2 18-Mar-1996  leo Take care of the case that <start_of_video> < <memtop>
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.3.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.4.6.1 05-Sep-2001  nathanw file sdboot.s was added on branch nathanw_sa on 2002-04-17 00:02:47 +0000
 1.5.10.1 03-Aug-2004  skrll Sync with HEAD
 1.4 04-Mar-2018  tsutsui Provide wdboot as a copy of sdboot for Milan.

It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.
 1.3 28-Jun-2003  he branches: 1.3.188;
Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.3.188.1 13-Mar-2018  martin Pull up following revision(s) (requested by tsutsui in ticket #624):
sys/arch/atari/stand/xxboot/sdboot/milan/Makefile: revision 1.4
sys/arch/atari/dev/nvram.c: revision 1.21
sys/arch/atari/conf/MILAN.in: revision 1.28
sys/arch/atari/atari/pmap_bootstrap.c: revision 1.9
sys/dev/isa/fd.c: revision 1.111
sys/arch/atari/atari/bus.c: revision 1.60
sys/arch/atari/stand/xxboot/ahdi-xxboot/milan/Makefile: revision 1.4
sys/arch/atari/atari/locore.s: revision 1.111
sys/arch/atari/isa/isa_machdep.c: revision 1.41
distrib/sets/lists/base/md.atari: revision 1.55
sys/arch/atari/pci/pci_machdep.c: revision 1.55
sys/arch/atari/pci/pci_machdep.c: revision 1.56
sys/arch/atari/include/vmparam.h: revision 1.32
sys/arch/atari/isa/isa_milan.c: revision 1.15
sys/arch/atari/isa/isa_milan.c: revision 1.16
sys/arch/atari/atari/bus.c: revision 1.59
sys/arch/atari/atari/atari_init.c: revision 1.101
sys/arch/atari/pci/pci_milan.c: revision 1.15
Fix I/O access failures for regions allocated by bus_space_map(9) on Milan.

Passing to PMAP_WIRED against I/O spaces seems problematic,
probably after yamt-km branch merge, which was committed
between NetBSD 3.0 and NetBSD 4.0.
(i.e. ISA and PCI devices on Milan didn't work after 4.0 release)

XXX:
According to pmap(9) man page, the "flags" arg for pmap_enter(9)
doesn't take VM_PROT_READ and VM_PROT_WRITE, but pmap_enter()
implementation in sys/arch/m68k/m68k/pmap_motolora.c historically
checks them.

Fix silent hang during config_console() (before consinit()) on Milan.
config_console() was a dirty hack used by ancient m68k ports
to probe and initialize console devices before "real" configure(9),
using subset of configure(9) functions.

In that case, most device specific data (except I/O access method)
are not initialized so we must not access device specific device_t and
softc structures in config_console() cases.

Fix silent hang after isa_intr_establish() on Milan.
The problems (wrong macro replacements) were slipped in rev 1.107:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/atari/atari/locore.s#rev1.107
Handle yet another atari specific quirk in the MI ISA fdc(4)/fd(4) driver.
This makes fd(4) drive(s) (which is necessary for installation)
properly attached on Milan.
atari uses "fdcisa" and "fdisa" for ISA fdc to co-exist other fd(4)
drivers, on-board (atari/dev/fd.c) one and Hades (atari/dev/hdfd.c) one.

Use a proper PSL value to be passed to splx(9) functions.
This should have been changed on yamt-splraiseipl branch merge
back in 2006, which made MI IPL_xxx values independent from
m68k MD PSL values for the %sr register.

Restore piixide(4) for Milan and disable other pciide devices.
piixide was removed in rev 1.18 and the log message said
"because Intel IDE disk controllers only exist as part of
Intel chipsets for x86 systems" but the Milan actually has
the Intel 82371FB southbridge on its board.
Other pciide devices are unlikely necessary for the default
kernel for such a rare machine.
Also fix pasto in comment.

Skip NVRAM checksum check and re-initialization on Milan.
Milan's firmware seems to use different check method.

Ack EOI for IRQ_SLAVE of the master PIC after ack for IRQ of the slave PIC.
I'm not sure if there are possible races in the original code, but
this is what i8259_asm_ack2() in sys/arch/x86/include/i8259.h does
and it looks this change makes a Milan kernel a bit stable.
Replace CRTC register values with ones taken from sys/dev/ic/vga_subr.c.
This fixes noise around column 3 and 4 and makes screen output clearer
on Milan with S3 Trio64V.

Explicitly setup the secondary IDE interrupt of PIIX on Milan.
The secondary IDE interrupt is connected to MBIRQ0 on PIIX, but
the Milan's ROM bootloader (at least version 0.99.7) doesn't seem
to setup the MBIRQ0 register to route it to IRQ15.

On Milan, also explicitly disable MBIRQ1 on PIIX.
Milan's ROM bootloader v1.2 and v1.4 incorrectly set MBIRQ0 connected
to the secondary IDE to IRQ14 (not 15) and unused MBIRQ1 to IRQ15,
so both IDE channels don't work properly.

Add dumb memory probe routines for Milan to use all available memory.
Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3.
(bootloader ROM fails to load TOS with 128MBx4)
No particular comment on port-atari@:
http://mail-index.netbsd.org/port-atari/2018/02/09/msg000580.html

Provide wdboot as a copy of sdboot for Milan.
It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.

Fix another possible out of bounds.

Replace bus_dmamap_sync(9) op with a newer one taken from m68k/bus_dma.c.
This could fix memory corruption issue caused by PREREAD ops with regions
whose boundaries are not aligned at cacheline size.
 1.3 28-Jun-2003  he Somehow all these tiny Makefiles had their contents replicated.
Pare back down to just one copy.
 1.2 23-May-2003  leo usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.1 23-May-2003  leo branches: 1.1.1;
Initial revision
 1.1.1.1 23-May-2003  leo usr/mdec reorg for Milan support
 1.10 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.9 11-Dec-2005  christos branches: 1.9.112; 1.9.122; 1.9.128;
merge ktrace-lwp.
 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 23-May-2003  leo branches: 1.7.2;
usr/mdec reorg for Milan support.
Note that installboot needs reworking too. Installing bootblocks on -current
is no longer possible until this is done.
nolonger
 1.6 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.5 23-Jul-2000  jdc branches: 1.5.4; 1.5.8;
Make these work with obj directories.
 1.4 13-Feb-1999  lukem branches: 1.4.8; 1.4.18;
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.3 29-Jun-1996  leo Define LIBCRT0. This tries to defeat the attempts of bsd.prog.mk to add
${DESTDIR}/....crt0 to the link rule when $DESTDIR is set.
 1.2 14-May-1996  leo branches: 1.2.4;
Update to make this work correctly when using an obj-directory.
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.2.4.1 30-Jun-1996  jtc Pulled up rev 1.3 by request from Leo Weppelman
 1.4.18.1 24-Jul-2000  jdc Make these work with obj directories.
Agreed with Leo Weppelman.
Approved by Jason R Thorpe.
 1.4.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.1 08-Jan-2002  nathanw Catch up to -current.
 1.5.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.128.1 18-May-2014  rmind sync with head
 1.9.122.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.112.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3 26-Jun-2022  tsutsui Unifdef __ELF__.
 1.2 11-Dec-2005  christos 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 wdboot.S was added on branch ktrace-lwp on 2004-08-03 10:33:35 +0000
 1.7 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.6 15-Apr-2002  leo branches: 1.6.10;
Fix PR-16305. Make the 'end' symbol local.
 1.5 05-Sep-2001  thomas branches: 1.5.6;
Make the bootblocks build with ELF assembler.
 1.4 28-Dec-1996  leo branches: 1.4.42;
- The Hades bios does not pass a 'bootpreference' in d5. Deal with it by
getting the 'bootpreference' ourselves when it is not set to any legal
value.
- Because the relation between memtop/membot and the video base does not
hold on the Hades, skip testing on it.
 1.3 26-Dec-1996  leo Correct the IDE port-addresses and data transfer method so this will work
both Hades & Falcon.
 1.2 18-Mar-1996  leo Take care of the case that <start_of_video> < <memtop>
 1.1 29-Feb-1996  leo branches: 1.1.1;
Initial revision
 1.1.1.1 29-Feb-1996  leo NetBSD/Atari bootcode by Waldi Ravens.
 1.4.42.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.42.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 17-Apr-2002  nathanw Catch up to -current.
 1.5.6.1 05-Sep-2001  nathanw file wdboot.s was added on branch nathanw_sa on 2002-04-17 00:02:48 +0000
 1.6.10.1 03-Aug-2004  skrll Sync with HEAD

RSS XML Feed