History log of /openbsd/sys/arch/alpha/stand/boot/boot.c (Results 1 – 25 of 30)
Revision Date Author Comments
# e3d38566 16-Jan-2023 deraadt <deraadt@openbsd.org>

roughly cleanup terrible pre-ansi practices
ok miod


# 10b2813d 29-Jan-2021 deraadt <deraadt@openbsd.org>

repair declerations to satisfy -fno-common
ok kettenis


# e4a6744d 26-May-2020 deraadt <deraadt@openbsd.org>

/etc/random.seed reuse can now be detected. The stat +T bit marks the file
(fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and
HWRNG isn't available, the kernel won't get RB_G

/etc/random.seed reuse can now be detected. The stat +T bit marks the file
(fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and
HWRNG isn't available, the kernel won't get RB_GOODSEED indication...

show more ...


# a872426c 25-May-2020 deraadt <deraadt@openbsd.org>

make loadrandom() return 0 for success, -1 for failure. While here,
relax the fstat() check because the system will have left the file
in the right mode.
ok visa kettenis


# c2afdefe 25-May-2020 deraadt <deraadt@openbsd.org>

Pass boothowto from bootblock to kernel


# f65494e6 29-Oct-2019 deraadt <deraadt@openbsd.org>

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 sequenc

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

show more ...


# 2340cfa5 10-Apr-2019 deraadt <deraadt@openbsd.org>

change marks[] array to uint64_t, so the code can track full 64-bit
details from the ELF header instead of faking it.
Proposal from mlarkin, tested on most architectures already


# 54451086 19-Feb-2014 miod <miod@openbsd.org>

Don't try to close(-1) if EPERM.


# a250ccf5 19-Feb-2014 miod <miod@openbsd.org>

/etc/random.seed support.


# 2afebeae 28-Dec-2013 deraadt <deraadt@openbsd.org>

Try to load entropy data from disk:/etc/random.seed, and additionally
use a MD-supplied random function. Then, insert this into the ELF
openbsd.randomdata of the kernel, so that it has entropy right

Try to load entropy data from disk:/etc/random.seed, and additionally
use a MD-supplied random function. Then, insert this into the ELF
openbsd.randomdata of the kernel, so that it has entropy right from
the start. Some help from jsing for the softraid aspects.
Also tested by phessler

show more ...


# 0cfa65d9 05-Jun-2011 miod <miod@openbsd.org>

Update alpha bootblocks to use MI loadfile code instead of rolling our own;
also print a meaningful message if the kernel load address conflicts with the
SRM memory areas, so that we can know which k

Update alpha bootblocks to use MI loadfile code instead of rolling our own;
also print a meaningful message if the kernel load address conflicts with the
SRM memory areas, so that we can know which kernel load address to use.

Requires `make includes' before attempting to build bootblocks.

Tweaks mk@, `nice' deraadt@

show more ...


# 5dc7e580 30-May-2005 deraadt <deraadt@openbsd.org>

even shorter


# b1919fcb 30-May-2005 deraadt <deraadt@openbsd.org>

shrink alpha boot blocks another little bit


# 99fe37a5 01-Dec-2004 deraadt <deraadt@openbsd.org>

remove excessive chattiness from the bootblocks. our goal is to shrink
them to < 5*1024, because the floppies are once again tight


# ea5a669f 05-Jul-2004 deraadt <deraadt@openbsd.org>

remove some stuff to make the blocks slightly smaller. we could go further
still. tested by matthieu


# 29295d1c 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# c4071fd1 14-Mar-2002 millert <millert@openbsd.org>

First round of __P removal in sys


# eb45c5c9 16-May-2001 deraadt <deraadt@openbsd.org>

shrink printf messages


# aed035ab 08-Nov-2000 art <art@openbsd.org>

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much

Merge in big portions of the improvements NetBSD did to their alpha port.
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware
support, possiblity for ELF, etc, etc. Too much to mention.

This is still work in progress. video consoles might be broken, otherwise
we have basically the same functionality as before plus more.

show more ...


# 6f295a11 05-Mar-1998 deraadt <deraadt@openbsd.org>

main returns int


# 2037a1a3 08-Jul-1997 niklas <niklas@openbsd.org>

Load the kernel symbol table for DDB to use


# dfe00690 05-May-1997 millert <millert@openbsd.org>

Updates from NetBSD (cgd):
- seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Make

Updates from NetBSD (cgd):
- seriously clean up makefiles. use libsa/libkern/libz as appropriate,
and don't build the various sources into objs locally by specifying
them directly in the Makefiles.
- move the secondary bootstrap down (to 0x20004000), and add a HEAP_LIMIT
so that we don't exhaust our bootstrap address space (when using the new,
not yet checked in, memory allocator).
- clean up installboot, deal with secondary bootstrap programs not on
'a' partition or 'a' partition not starting at 0.
- add padding to structures in bbinfo.h for future expansion. Add a
netbbinfo structure to allow netboot information to be hard-coded in
network boot blocks, so that they can be made to work even on systems
with firmware which doesn't support the new "ethernet address in boot
device" convention.
- move the sync() calls to the correct place in installboot.c
- remove a kludge in disk.c which was breaking multiple opens/closes
of the disk
- allow netboot ethernet address to be hard-coded into binary so that
machines with old firmware which doesn't pass it in the boot device
can work. Assume that if the ethernet address isn't passed in, it
uses the old (dain-bramaged) 'read' interface works on my 3000/300LX.
- Add setnetbootinfo, a program to hard code an ethernet address into
a network boot.
- move an 'int debug;' into boot.c (it was the only diff between boot.c and
netboot.c), and nuke netboot.c (using boot.c instead for net boot blocks).
- add cd9660 file system ops to the file system ops table in filesystem.c
- if a file name is given (i.e. BOOTED_FILE) is set, boot only that file,
but if not then try to boot "bsd", "bsd.bak", "bsd.old", and
"obsd" (in that order) until one is found or until the list of names
is exhausted.
- add support for reading gzipped kernels.
- use strerror() to print errors, rather than just printing error numbers
- if no disk label exists, fake one up
- slightly relax the block size checks in bootxx.c; they were a bit to paranoid

And local changes:
- don't build a copy of libsa/libkern/libz for each boot prog,
just build a single copy and use it for everything.

show more ...


# 777da4a6 27-Nov-1996 niklas <niklas@openbsd.org>

Make compilable in our env. Involved disabling ELF support,
reordering includes (due to -Wstrict-prototypes) and other -Wall goo


# 1e699572 27-Nov-1996 mickey <mickey@openbsd.org>

include libkern.h prior to stand.h to not to collide m{in,ax} definitions.


# 50ce9ee0 30-Oct-1996 niklas <niklas@openbsd.org>

Merge to NetBSD 961020. Retained our kernel APIs where NetBSD has changed.
-Wall -Wstrict-prototypes -Wmissing-prototypes too.


12