summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
AgeCommit message (Collapse)Author
2014-07-08This is bootblock code. Don't pull in uvm header files to deal withTheo de Raadt
page rounding! Disgusting. Instead, define local copies of those macros.
2014-06-09Remove {amd64,i386}/stand/installboot - we now use usr.sbin/installbootJoel Sing
and these have been unhooked from the build for a while now.
2014-05-20remove irrelevant, outdated, and misleading sentence suggesting thatAlexander Hall
you need to set up a local mirror for the install sets brought to attention by pascal@ ok krw@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-13Unhook httpd(8) from build; man page bitsFlorian Obser
tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
2014-02-18Bump version numbers.Joel Sing
2014-02-18Actually check to see if the CPU supports tsc, rather than assuming thatJoel Sing
it does and triggering an illegal instruction trap when it does not. Found the hard way and fix tested by nick@
2014-01-20These fd0 testing things are not usedTheo de Raadt
2014-01-20Unlink the old amd64/i386 installboot.Joel Sing
2014-01-18Fix comment re size of input buffer.Joel Sing
2014-01-06document random buffer must be multiple of 4 in sizeTheo de Raadt
2014-01-02crank version after random instruction fix from jsingTheo de Raadt
2014-01-02Simplify things slightly by using four byte indexing.Joel Sing
2014-01-02Ensure that we preserve callee-save registers.Joel Sing
2013-12-28Further clean up and unification of the amd64 and i386 boot(8) makefiles.Joel Sing
2013-12-28crank the versionTheo de Raadt
2013-12-28Try to load entropy data from disk:/etc/random.seed, and additionallyTheo de Raadt
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
2013-12-28If we fail to decrypt the softraid keys, return EPERM rather than fallingJoel Sing
through and failing when we attempt to read and validate the disklabel. Also return ENOTSUP rather than EPERM if an attempt is made to write to a softraid volume.
2013-12-28Use preprocessor symbols where possible.Theo de Raadt
2013-12-28Add initial implementations of early MD random, for use in the boot code.Joel Sing
This makes use of rdrand if the CPU supports it, otherwise we fall back to using rdtsc. Further development will happen in the tree. Tested by phessler@ ok deraadt@
2013-11-13Use DL_GETPOFFSET() to get partition offset, except where weKenneth R Westerback
explicitly check p_offseth before assigning p_offset to local variables. Add missing check for p_offseth.
2013-11-06Document 'machine boot' in boot(8) on i386 and amd64.Bryan Steele
"fine" deraadt@
2013-11-05Sigh. How many typos can be made in one diff. Fix DL_SETPSOFFSET() toKenneth R Westerback
be DL_SETPOFFSET().
2013-11-05DL_SETDSIZE() and DL_SETPSIZE() are not the same thing. Use the latterKenneth R Westerback
to set partition size. Fixes tree breakage found by Scott McEachern.
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withKenneth R Westerback
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of the value.
2013-10-28Document softraid boot process for i386/amd64.Stefan Sperling
Requested by Adam Thompson. suggestions and ok deraadt, earlier version ok jmc
2013-10-25some cleanup for "machine memory";Jason McIntyre
2013-10-23Crank bootblock versions after last commitMike Larkin
2013-10-23Allow uppercase "K/M/G" specification in "machine memory" boot command.Mike Larkin
ok guenther, dlg, deraadt
2013-10-20Add i386/amd64 boot(8) support for keydisk-based softraid crypto volumes.Stefan Sperling
So far, only passphrase-based crypto volumes were bootable. Full disk encryption with keydisks required a non-crypto partition to load the kernel. The bootloader now scans all BIOS-visible disks for RAID partitions and automatically associates keydisk partitions with their crypto volume. Attempting to boot from a volume without its keydisk currently results in a passphrase prompt (this might be changed in the future). There is no need to re-create existing volumes. Moving the root partition onto the crypto disk and running installboot(8) is all that's needed. help & ok jsing
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-02Revert previous: libsa/ufs.c was fixed to not use big types when notPhilip Guenther
necessary. If something crawls in again that needs these we want to know ok deraadt@
2013-04-23Include udivdi3/umoddi3 when compiling the amd64/i386 boot blocks - theyJoel Sing
are needed for the upcoming type changes. ok deraadt@
2013-04-23tedu unused makefiles.Joel Sing
2013-04-23Remove softraid boot support from fdboot (again).Joel Sing
2013-04-04zap redundant assignmentsAlexander Hall
2013-03-23Avoid using DEV_BSHIFT, and use DEV_BSIZE instead.Theo de Raadt
2013-03-21NBPG -> PAGE_SIZE, PGSHIFT -> PAGE_SHIFT, PGOFSET -> PAGE_MASKTheo de Raadt
2013-01-18fix bogus dependencies, and allow mkdep to runMarc Espie
checked on amd64 by rpe@ okay jsing@
2013-01-18Generate assym.h where we need it, instead of reaching around into otherJoel Sing
object directories.
2013-01-18Clean up/standardise makefiles for i386/stand.Joel Sing
2013-01-16properly distinguish /boot and biosboot in informational and error messagesChristian Weisgerber
ok guenther@
2013-01-02Zero out sbv_maskkey to make it boot when there's a softraid cryptoMartynas Venckus
partition. OK jsing@.
2012-11-01Fix merge errors.Joel Sing
Found the hard way by deraadt@
2012-10-31Unbreak build on !i386.Joel Sing
Pointed out by deraadt@
2012-10-31Bump version numbers.Joel Sing
2012-10-31Enable softraid boot support for cdboot(8) and pxeboot(8).Joel Sing
2012-10-31Make cdboot(8) and pxeboot(8) work correctly when it is larger than 64KB inJoel Sing
size. When relocating use blocks that are a maximum of 32KB in size and increment the segment registers after relocating each block. This keeps us within the confines of the %cx register and the real mode segmented addressing.
2012-10-31Save and restore %ebx across the call to read. Otherwise we load the firstJoel Sing
64KB segment at 0x7c00 and any additional 64KB segments over top of each other at 0x10000.
2012-10-31Bump i386 boot(8) version.Joel Sing