Home | History | Annotate | only in /src/sys/arch/atari/stand/xxboot/sdboot
History log of /src/sys/arch/atari/stand/xxboot/sdboot
RevisionDateAuthorComments
 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

RSS XML Feed