Home | History | Annotate | only in /src/sys/arch/vax/boot/xxboot
History log of /src/sys/arch/vax/boot/xxboot
RevisionDateAuthorComments
 1.22 15-Sep-2020  mrg make build (and run) with GCC 9.
 1.21 11-Dec-2005  christos merge ktrace-lwp.
 1.20 11-Dec-2003  matt Rework things to move common stuff into Makefile.inc.
 1.19 09-Dec-2003  matt Make sure to include <bsd.own.mk> to pick up the definition of HAVE_GCC3
 1.18 08-Dec-2003  matt Move common CFLAGS/AFLAGS to Makefile.inc.
For now, only suppy -mno-asm-pic when not using gcc3.
 1.17 04-Feb-2003  matt branches: 1.17.2;
Add CPPFLAGS=-D__daddr_t=int32_t to shrink primary boot block.
 1.16 05-Nov-2002  thorpej Add -mno-asm-pic to CFLAGS and AFLAGS.
 1.15 15-Jun-2002  matt Make sure to cleanup the ${PROG}.out files
 1.14 09-Jun-2002  matt Add -ffreestanding and LIBC= to stand/boot/*/Makefile. Fix various
asm's to work with gcc-current.
 1.13 29-Mar-2002  matt branches: 1.13.2; 1.13.4;
Add a xxboot_ustarfs for floppies.
 1.12 24-Feb-2002  matt Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
 1.11 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.10 03-May-2001  matt branches: 1.10.2; 1.10.8;
change to let make obj work right with MAKEOBJDIRPREFIX and read-only source
 1.9 19-Jul-2000  matt branches: 1.9.2;
Add support for loading a 2nd stage boot in either a.out or ELF.
Add support for loading a 2nd stage boot directly to it's desired address
if possible.
cleanup use of u_int/size_t.
 1.8 03-Jul-2000  matt Make cross-compile friendly
 1.7 19-Jun-2000  matt Rename ncr[5380] device to si to more consistent with other ports.
Add VAX660 to cputype.h. Remove needs-flag from si & asc entries.
 1.6 22-May-2000  matt branches: 1.6.2;
get rid of a double /
 1.5 20-May-2000  ragge Rewriting of the VAX boot block. Differences:

- Use the RPB for passing boot device info up to kernel, instead of the
old BSD "hack" with an encoded longword (see sys/reboot.h for details)
- Instead of separate drivers for all devices, use the HW-provided ROM
routines as much as possible.
- Add filesystem support for CD9660 also (now when there is space).
- Make everything compile with WARNS=1.

The boot block is now <7K in size and have support for UFS, CD9660 and USTAR.
 1.4 18-Apr-2000  matt Compile -Os instead of -O2 (optimize for space).
 1.3 16-Apr-2000  matt Use objcopy to emit the binary and linked around for debugging.
 1.2 23-Oct-1999  ragge Boot block code fixed to 1) understand SCSI disks and 2) read from a
ustar filesystem (used in installation).
 1.1 06-Mar-1999  ragge branches: 1.1.8; 1.1.10; 1.1.12;
New boot program for vax. Appearance similar to the i386 boot blocks.
 1.1.12.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.10.1 15-Nov-1999  fvdl Sync with -current
 1.1.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.9.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.10.8.6 11-Nov-2002  nathanw Catch up to -current
 1.10.8.5 20-Jun-2002  nathanw Catch up to -current.
 1.10.8.4 17-Apr-2002  nathanw Catch up to -current.
 1.10.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.10.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.10.8.1 03-May-2001  nathanw file Makefile was added on branch nathanw_sa on 2002-01-08 00:28:29 +0000
 1.10.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.10.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.10.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.13.4.2 26-Jan-2003  jmc Pullup revisions 1.13-1.14 and 1.15-1.16 (requested by he in ticket #1072)
Add -mno-asm-pic to CFLAGS and AFLAGS, and add -ffreestanding and
empty LIBC setting to bootloader Makefiles.
 1.13.4.1 18-Jun-2002  lukem Pull up revision 1.15 (requested by matt in ticket #287):
Make sure to cleanup the ${PROG}.out files
 1.13.2.1 15-Jul-2002  gehenna catch up with -current.
 1.17.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1 03-Aug-2004  skrll Sync with HEAD
 1.2 16-Apr-2000  matt This should have never been checked in. it's what this directory is supposed
to make. opps.
 1.1 06-Mar-1999  ragge branches: 1.1.8;
New boot program for vax. Appearance similar to the i386 boot blocks.
 1.1.8.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.39 25-Apr-2022  mlelstv libsa now needs ioctl support to handle media with large sectors.
Provide dummy functions.
 1.38 01-May-2018  ragge Enable ffsv2 in boot.
 1.37 28-Jun-2013  matt branches: 1.37.32;
ufs -> ffsv1 (ffsv2 is commentout due to size limitations)
 1.36 18-Sep-2009  mhitch branches: 1.36.12; 1.36.22;
Explicitly include sys/exec_aout.h.
 1.35 23-Mar-2009  tsutsui Revert kludge in previous.
The warning was triggered by __builtin_memcpy() on vax, and
it has been disabled in libkern.h for _STANDALONE programs.
 1.34 19-Mar-2009  he It seems gcc is unhappy about a literal 0 as a pointer argument
to memcpy(). Work around that by using a local variable instead.
(This looks a bit dubious, but who am I to judge the restrictions
in the standalone environment on the vax -- this should not change
the semantics of what was here before.)
 1.33 18-Mar-2009  cegger bcopy -> memcpy
 1.32 18-Mar-2009  cegger bzero -> memset
 1.31 18-Mar-2009  cegger bcmp -> memcmp
 1.30 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.29 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.28 05-Mar-2007  christos branches: 1.28.44; 1.28.52; 1.28.58;
another caddr_t botch
 1.27 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.26 01-Jul-2006  mrg branches: 1.26.10;
fix pointer signedness and build with GCC4.
 1.25 08-Jun-2006  he branches: 1.25.2;
Get rid of another instance of an lvalue cast.
 1.24 08-Mar-2006  sekiya branches: 1.24.4;
The network bootloader entry point should be nisse(), not start(). Fixes a
very long-standing netboot issue.

Patch contributed by Hans Rosenfeld.
 1.23 27-Jan-2006  he branches: 1.23.2; 1.23.4; 1.23.6; 1.23.8;
Track latest changes elsewhere: free() is now dealloc(), and alloc/dealloc
size argument is now a size_t.
 1.22 24-Dec-2005  perry branches: 1.22.2;
bare asm -> __asm
 1.21 11-Dec-2005  christos merge ktrace-lwp.
 1.20 27-Jun-2005  junyoung branches: 1.20.2;
Use the form of #include <...> rather than #include "..." for headers of
which paths don't start from the current directory.
 1.19 27-Jun-2005  junyoung Remove trailing spaces.
 1.18 06-Jan-2004  matt Add proper boot/autoconf support for SDN devices. Take from Hugh Graham;
see http://mail-index.netbsd.org/port-vax/2002/06/28/0005.html
 1.17 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.16 29-Mar-2002  matt branches: 1.16.10;
Add a xxboot_ustarfs for floppies.
 1.15 24-Feb-2002  matt Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
 1.14 09-Nov-2000  matt branches: 1.14.4; 1.14.8;
Fix a thinko or two i made a few days ago. I could have sworn i compiled
this. :)
 1.13 03-Nov-2000  simonb Use the canonical RF_PROTECTED_SECTORS #define hack.
 1.12 02-Nov-2000  matt Add code to read the disklabel and add the beginning offset for A. Add
support for booting off a RAID root parition.
 1.11 19-Jul-2000  matt Add support for loading a 2nd stage boot in either a.out or ELF.
Add support for loading a 2nd stage boot directly to it's desired address
if possible.
cleanup use of u_int/size_t.
 1.10 10-Jul-2000  ragge Add code that allows the boot blocks to be loaded by VMB.EXE, and
also have optional MTPR printf available.
 1.9 04-Jun-2000  ragge branches: 1.9.2;
Adapt to mba changes. Fix assembler buf (EDIV uses 64-bit arg, not 32).
 1.8 23-May-2000  matt branches: 1.8.2;
Allow for boot.vax and netbsd.vax when booting. this allows a multi
architecture CD to be made which includes VAX support.
 1.7 21-May-2000  ragge 11/750 fixes:
- Set the correct adapter address in RPB for Unibus devices.
- Repair the disk read routines for HP disks. ROM routines do not work
on HP disks, therefore use a small home-written routine.
 1.6 20-May-2000  ragge Rewriting of the VAX boot block. Differences:

- Use the RPB for passing boot device info up to kernel, instead of the
old BSD "hack" with an encoded longword (see sys/reboot.h for details)
- Instead of separate drivers for all devices, use the HW-provided ROM
routines as much as possible.
- Add filesystem support for CD9660 also (now when there is space).
- Make everything compile with WARNS=1.

The boot block is now <7K in size and have support for UFS, CD9660 and USTAR.
 1.5 22-Apr-2000  ragge Recognize RL02 as boot device.
 1.4 18-Apr-2000  ragge Handle NCR5394 SCSI as NCR5380. (Doesn't matter, it will use the ROM
routines anyway).
 1.3 16-Apr-2000  matt Add missing cases for MARIAH/SOC/NVAX and fix a comment or two.
 1.2 23-Oct-1999  ragge Boot block code fixed to 1) understand SCSI disks and 2) read from a
ustar filesystem (used in installation).
 1.1 06-Mar-1999  ragge branches: 1.1.8; 1.1.10; 1.1.12;
New boot program for vax. Appearance similar to the i386 boot blocks.
 1.1.12.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.10.1 15-Nov-1999  fvdl Sync with -current
 1.1.8.2 22-Nov-2000  bouyer Sync with HEAD.
 1.1.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.8.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.9.2.1 27-Jul-2000  matt Pullup revision 1.11
Add support for loading ELF 2nd stage bootstrap
 1.14.8.2 17-Apr-2002  nathanw Catch up to -current.
 1.14.8.1 28-Feb-2002  nathanw Catch up to -current.
 1.14.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.14.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.16.10.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.16.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.16.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.16.10.1 03-Aug-2004  skrll Sync with HEAD
 1.20.2.3 03-Sep-2007  yamt sync with head.
 1.20.2.2 30-Dec-2006  yamt sync with head.
 1.20.2.1 21-Jun-2006  yamt sync with head.
 1.22.2.1 01-Feb-2006  yamt sync with head.
 1.23.8.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.23.6.3 11-Aug-2006  yamt sync with head
 1.23.6.2 26-Jun-2006  yamt sync with head.
 1.23.6.1 13-Mar-2006  yamt sync with head.
 1.23.4.1 22-Apr-2006  simonb Sync with head.
 1.23.2.1 09-Sep-2006  rpaulo sync with head
 1.24.4.1 19-Jun-2006  chap Sync with head.
 1.25.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.26.10.1 12-Mar-2007  rmind Sync with HEAD.
 1.28.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.28.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.28.44.2 11-Mar-2010  yamt sync with head
 1.28.44.1 04-May-2009  yamt sync with head.
 1.36.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.36.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.37.32.1 02-May-2018  pgoyette Synch with HEAD
 1.7 06-Apr-2020  snj fix comment in typo
 1.6 22-May-2017  ragge branches: 1.6.10;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.5 04-Apr-2013  martin branches: 1.5.12;
Rearrange primary bootstrap slightly to free up all space between the disk
label and the uVAX rom boot parameter block.
 1.4 11-Dec-2005  christos branches: 1.4.88; 1.4.112; 1.4.118; 1.4.122;
merge ktrace-lwp.
 1.3 21-Oct-2005  he Make it possible to use <sys/disklabel.h> from assembly source by
introducing OMIT_DKTYPENUMS and OMIT_FSTYPENUMS, which omits the
declaration of the enums. Use this in the vax boot code to make
it build again. Also use __CONCAT() instead of ##.
 1.2 10-Nov-2003  wiz branches: 1.2.16; 1.2.18;
Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.1 24-Feb-2002  matt branches: 1.1.2; 1.1.8; 1.1.20;
Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
 1.1.20.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.20.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.20.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.20.1 03-Aug-2004  skrll Sync with HEAD
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 24-Feb-2002  jdolecek file start.S was added on branch kqueue on 2002-03-16 16:00:12 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 24-Feb-2002  nathanw file start.S was added on branch nathanw_sa on 2002-02-28 04:12:28 +0000
 1.2.18.1 26-Oct-2005  yamt sync with head
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.4.122.2 03-Dec-2017  jdolecek update from HEAD
 1.4.122.1 23-Jun-2013  tls resync from head
 1.4.118.1 20-Apr-2013  bouyer Pull up following revision(s) (requested by martin in ticket #865):
sys/arch/vax/include/disklabel.h: revision 1.7
sys/arch/vax/boot/xxboot/start.S: revision 1.5
sys/sys/bootblock.h: revision 1.55
sys/sys/disklabel.h: revision 1.113
usr.sbin/installboot/arch/vax.c: revision 1.14
usr.sbin/installboot/arch/vax.c: revision 1.15
sys/kern/sys_generic.c: revision 1.129
Revert VAX MAXPARTITION bump to 16, adjusting it to 12 instead. Fix bootblocks
and installboot for VAX 780 and other machines booting via VMB.EXE.
 1.4.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.4.88.1 12-Jun-2013  msaitoh Pull up following revision(s) (requested by martin in ticket #1856):
sys/arch/vax/boot/xxboot/start.S: revision 1.5
sys/sys/bootblock.h: revision 1.55
sys/sys/disklabel.h: revision 1.113
usr.sbin/installboot/arch/vax.c: revision 1.14-1.15
Rearrange primary bootstrap slightly to free up all space between the disk
label and the uVAX rom boot parameter block.
Calculate the disklabel size (for asm code) dynamically based on MAXPARTITIONS.
Adapt to new vax primary bootstrap layout.
Fix installboot for VAX, as discussed on port-vax. Problem pointed out
by Jonny Billquist, thanks to Marl Pizzolato for patiently explaining
the various ways of booting a vax to me.
Now VAX 780 can boot directly from VMB.EXE again.
Provide an empty __CTASSERT() for toolbuilds
 1.5.12.1 28-Aug-2017  skrll Sync with HEAD
 1.6.10.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12 24-Feb-2002  matt Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
 1.11 02-Nov-2000  matt branches: 1.11.4; 1.11.8;
Add code to read the disklabel and add the beginning offset for A. Add
support for booting off a RAID root parition.
 1.10 19-Jul-2000  matt Add support for loading a 2nd stage boot in either a.out or ELF.
Add support for loading a 2nd stage boot directly to it's desired address
if possible.
cleanup use of u_int/size_t.
 1.9 13-Jul-2000  matt Use <machine/asm.h>
 1.8 10-Jul-2000  ragge Add code that allows the boot blocks to be loaded by VMB.EXE, and
also have optional MTPR printf available.
 1.7 19-Jun-2000  ragge Variable "from" must be in first block read from disk, otherwise it will be
overwritten on non-VMB machines.
 1.6 17-Jun-2000  matt Adjust this a bit so that the primary entry point is 0x200, not 0x0a.
 1.5 22-May-2000  matt branches: 1.5.2;
cpp can be so annoying. to appease it, can't -> cannot
 1.4 21-May-2000  ragge On the 11/750, the stack will be placed by ROM in the code area.
Start with moving it to a safe place.
 1.3 20-May-2000  ragge Rewriting of the VAX boot block. Differences:

- Use the RPB for passing boot device info up to kernel, instead of the
old BSD "hack" with an encoded longword (see sys/reboot.h for details)
- Instead of separate drivers for all devices, use the HW-provided ROM
routines as much as possible.
- Add filesystem support for CD9660 also (now when there is space).
- Make everything compile with WARNS=1.

The boot block is now <7K in size and have support for UFS, CD9660 and USTAR.
 1.2 23-Oct-1999  ragge Boot block code fixed to 1) understand SCSI disks and 2) read from a
ustar filesystem (used in installation).
 1.1 06-Mar-1999  ragge branches: 1.1.8; 1.1.10; 1.1.12;
New boot program for vax. Appearance similar to the i386 boot blocks.
 1.1.12.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.10.1 15-Nov-1999  fvdl Sync with -current
 1.1.8.2 22-Nov-2000  bouyer Sync with HEAD.
 1.1.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.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.11.8.1 28-Feb-2002  nathanw Catch up to -current.
 1.11.4.1 16-Mar-2002  jdolecek Catch up with -current.

RSS XML Feed