summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
AgeCommit message (Collapse)Author
2016-01-12naddy observed the TSC fallback code could encounter (high word) %edxTheo de Raadt
being 0; after multiply there is no perturbance to the from-disk entropy buffer. Further investigation showed perturbance was biased towards the lower bytes of a word. Compensate for this with a hocus pocus bit-spreading operation which applies a result byte by byte. discussion with kettenis, tb, mlarkin, naddy ok naddy
2016-01-10match up code and comments, add missing $OpenBSD$; ok jsing@ a while agoChristian Weisgerber
2016-01-07We want the first, not the last, OpenBSD partition in the MBR.Kenneth R Westerback
2015-11-23downfalls -> pitfallsmmcc
2015-10-28Support backspace in softraid boot passphrase prompt.Joel Sing
From uwe@
2015-10-08After replacement alloca() with alloc(), out-of-heap happened when bootingYASUOKA Masahiko
on a large block size (32K) partition. Increase the HEAP_LIMIT from 0x90000 to 0xA0000. try this, deraadt
2015-10-0816 years after E801 memprobe was disabled, probably safe to delete it.Ted Unangst
ok deraadt jung kettenis ratchov
2015-10-08Simpify some code by noting that DOSBBSECTOR is 0, so "if (n >Kenneth R Westerback
n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".
2015-10-01Use DOS_LABELSECTOR rather than LABELSECTOR to indicate offset into anKenneth R Westerback
OpenBSD partition when accessing the disklabel. For these files both are '1', but this makes the usage consistent across all archs. ok guenther@ miod@
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-18Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which isMiod Vallat
supposed to create a userland binary in order to test non-boot related functionality. This feature has been bitrotting in a non-compiling state for years, and causes a too-many-ifdefs disease now that there are intrusive EFI changes. No functional change.
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-09-02Fix the bios boot to pass the bootargs properly.YASUOKA Masahiko
ok deraddt
2015-09-02alloca() no longer neededTheo de Raadt
2015-09-02Bring the boot changes on amd64 to i386. alloca is deleted.YASUOKA Masahiko
Also fix the boot from BIOS and bump the version. input and ok deraadt
2015-07-21A few more daddr_t fixes. Rename 'phys_off' variables to 'offset'Kenneth R Westerback
since they are now relative to chunks. Use 'blkno' as normal variable name for daddr_t items rather than mix of 'blkno, blk, offset. Change field name ssd_data_offset to ssd_data_blkno since it is a block and not byte quantity. No intentional functional change.
2015-07-19Use DEV_BSIZE instead of 512 where appropriate. Use DL_SECTOBLK()Kenneth R Westerback
where appropriate. Noop for disks with 512-byte sectors. i.e. the only kind currently allowed in softraid volumes. But starts laying the groundwork to allow disks with other sector sizes. ok jsing@
2015-06-22document that boot.conf can contain comments;Jason McIntyre
from tilo stritzky thanks miod for help with the diff, and who also noted that leading whitespace gets stripped too;
2015-05-29Nuke annoying whitespace nits to shrink some future diffs.Kenneth R Westerback
2015-01-24correct the syntax description of the boot command; ok jmc@Christian Weisgerber
2014-11-19Only keep {recv,send}udp() in the pxe-specific code, the remainder of whatMiod Vallat
used to be local net.c (renamed to pxe_udp.c) can now be obtained from libsa's net.c rather than being duplicated. No functional change.
2014-11-18Nuke some obvious #include duplications.Kenneth R Westerback
ok espie@ deraadt@ millert@ tedu@
2014-09-23Fix constraint.Brad Smith
We need a register here, and not a generic memory reference. We get lucky with GCC that it chooses a register for "p", but we can't blame clang for choosing a memory reference if we allow it to do so. Pointed out by LLVM. time.c:80:17: error: unexpected token in memory operand ok kettenis@
2014-08-21Kill the remaining <netinet/in_systm.h> inclusion!Martin Pieuchot
2014-07-15mode 644 for installing these filesTheo de Raadt
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-07-12revert more free falloutTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
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@