History log of /openbsd-current/sys/arch/hppa/stand/boot/conf.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.37 09-Dec-2020 krw

Use daddr_t and not daddr32_t in boot media.

At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks.

More daddr32_t terminations with extreme prejudice to follow.

Tested by various, in snaps for a few days.

ok deraadt@


Revision tags: OPENBSD_6_8_BASE
# 1.36 26-May-2020 deraadt

increment version numbers, due to recent RB_GOODSEED and fchmod +T changes


Revision tags: OPENBSD_6_7_BASE
# 1.35 12-Mar-2020 otto

Allow hppa boot(8) to read from an ffs2 filesystem; ok kettenis@


# 1.34 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_6_BASE
# 1.33 04-Aug-2019 deraadt

crank version, following fchmod change


# 1.32 03-Aug-2019 deraadt

In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


# 1.36 26-May-2020 deraadt

increment version numbers, due to recent RB_GOODSEED and fchmod +T changes


Revision tags: OPENBSD_6_7_BASE
# 1.35 12-Mar-2020 otto

Allow hppa boot(8) to read from an ffs2 filesystem; ok kettenis@


# 1.34 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_6_BASE
# 1.33 04-Aug-2019 deraadt

crank version, following fchmod change


# 1.32 03-Aug-2019 deraadt

In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


# 1.35 12-Mar-2020 otto

Allow hppa boot(8) to read from an ffs2 filesystem; ok kettenis@


# 1.34 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_6_BASE
# 1.33 04-Aug-2019 deraadt

crank version, following fchmod change


# 1.32 03-Aug-2019 deraadt

In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


# 1.34 29-Oct-2019 deraadt

Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdata
section, which has grown a fair bit with the introduction of retguard.
Mortimer discovered the repeated 512-byte sequence as retguard keys, and
this resolves the issue. (Chacha does not fit on the media, so 1.5K early
drop RC4 is hopefully sufficient in our KARL link universe)
Version crank the bootblocks. sysupgrade -s will install new bootblocks.
ok djm mortimer


Revision tags: OPENBSD_6_6_BASE
# 1.33 04-Aug-2019 deraadt

crank version, following fchmod change


# 1.32 03-Aug-2019 deraadt

In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


# 1.33 04-Aug-2019 deraadt

crank version, following fchmod change


# 1.32 03-Aug-2019 deraadt

In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -x
so the file cannot be re-executed upon the next boot. This provides a
stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade.
Now various forms of upgrade failure will reboot into /bsd, which is probably
more recoverable. Performing fchmod -x depends on (1) use of MI boot.c
(not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality
in the IO layer. Most architectures have this support now.

Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will
remain in the tree while refinements happen for some of the laggard
architectures.

based upon a discussion florian
tested in snapshots for more than a week without any complaints


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_5_BASE
# 1.31 10-Apr-2019 deraadt

crank versions


# 1.30 08-Apr-2019 florian

crank version; looks good deraadt


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.29 08-Sep-2017 deraadt

If you use sys/param.h, you don't need sys/types.h


Revision tags: OPENBSD_6_1_BASE
# 1.28 13-Sep-2016 jasper

crank bootloader version after .SUNW_ctf change

as discussed with jsing@ it's easier this way to ensure people have
bootblocks capable of loading the section


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.27 28-Dec-2013 deraadt

crank the version


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.26 17-Apr-2011 kettenis

Tweak the behaviour of boot(8) on hppa. Normal boots now will give you a
chance to interrupt the boot procedure before booting the default kernel,
just like (most) of our other hardware platforms. Interactive boots, where
you interrupt the firmware boot procedure and answer "Y" to the
"Interact with IPL?" question will now wait for human intervention at the
boot> prompt (without a timeout). Should reduce frustration when trying to
boot an alternative kernel.

ok deraadt@, miod@, jsing@, todd@


Revision tags: OPENBSD_4_9_BASE
# 1.25 06-Dec-2010 jasper

- properly remove NENTS now after fixing the fallout.

ok deraadt@


# 1.24 06-Dec-2010 jasper

- partially revert previous NENTS removal for arches which got busted.


# 1.23 06-Dec-2010 jasper

- drop NENTS(), which was yet another copy of nitems().
no binary change


ok deraadt@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.22 19-Apr-2008 weingart

Change ELF loader to use the LMA as the load address for the
various segments. Hopefully this will help remove various
hacks in the boot loader in the future. This should have no
effect on most architectures (as we tend to have LMA == VMA).

ok drahn@, soft ok's various others.


Revision tags: OPENBSD_4_3_BASE
# 1.21 04-Mar-2008 deraadt

crank version #


# 1.20 26-Dec-2007 kettenis

Teach the hppa bootloader how to boot 64-bit kernels.

ok miod@, deraadt@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE SMP_SYNC_A SMP_SYNC_B
# 1.19 07-Apr-2004 mickey

update copyright; miod@ is fine w/ files where he holds it too


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A
# 1.18 15-Apr-2003 mickey

rearrange devsw to place dk in the beginning. necessary glue hookups in cdboot


Revision tags: OPENBSD_3_3_BASE
# 1.17 14-Jan-2003 mickey

up the boot version after recent changes


# 1.16 14-Jan-2003 mickey

make the lif be tried the last after ufs and cd9660 get a chance


Revision tags: UBC_SYNC_B
# 1.15 24-Oct-2002 mickey

use loadfile


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.14 02-Mar-2002 mickey

bump the version after recent addition


# 1.13 02-Feb-2002 mickey

missing NULL


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE UBC_BASE
# 1.12 30-May-2000 mickey

branches: 1.12.8;
elf_ldsym, increase boot minor version


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.11 14-Aug-1999 todd

branches: 1.11.4;
debugging off by default. ok mickey@


# 1.10 22-Jun-1999 mickey

once it proved itself to work on everything we can get to, bump a version to 1/2 (;


# 1.9 06-May-1999 mickey

no lifvar.h anymore


# 1.8 20-Apr-1999 mickey

fix prev commit blowup:
no ldsym for now
s/sd/dk/ since it's not always a disk, not even scsi (:
bump a version, things changed


# 1.7 20-Apr-1999 mickey

Makefile


Revision tags: OPENBSD_2_5_BASE
# 1.6 25-Jan-1999 mickey

call diskless kernel "bsd" so it would be loaded even we have
problems w/ kbd on PDC console device.
remove neva-gonna-b-there stuff from conf.c
some improvements to srt0.S code, use constants defined in machine/ files.


Revision tags: OPENBSD_2_4_BASE
# 1.5 29-Sep-1998 mickey

update config
include (gzipped) diskless kernel if compiled in LIF volume


# 1.4 14-Jul-1998 mickey

add som support


# 1.3 13-Jul-1998 mickey

since i blew up prev commit msg, here it is:
upgrade to new coming stand/exec framework


# 1.2 13-Jul-1998 mickey

libsa/itecons.c


# 1.1 23-Jun-1998 mickey

branches: 1.1.1;
Initial revision