summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
AgeCommit message (Collapse)Author
2008-04-20rewrite the serial port handling to manipulate the hardware directlyDavid Gwynne
rather than relying on calls into the bios to work. this is a result of me getting pissed off with solaris and linux being able to cope the serial bios redirection on dracs, iloms, and ilos. trying to do the same thing with openbsds boot loader caused weird behaviour like machine hangs or no visible output. talking to the serial chips directly is more reliable. tested by many ok sthen@ deraadt@
2008-04-19Change ELF loader to use the LMA as the load address for theTobias Weingartner
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.
2008-01-24"read(..., ..., sizeof Y) < sizeof Y" is a dangerous idiom because itKenneth R Westerback
does an unsigned comparison and read() can return -1. Use '!=' instead of '<' since read() can't return more than 'sizeof Y'. Not perfect (that would require a separate test for -1) but a very common usage. ok toby@
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-05handle 64-bit blkno in format stringOtto Moerbeek
2007-11-26few more dribbles of LIBKERN cleanupTheo de Raadt
2007-11-26More LIBKERN bits that go awayTheo de Raadt
2007-11-25typo; ok miod@Martynas Venckus
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
2007-09-13Don't bother bitching if APM does not exist. PleantyTobias Weingartner
enough systems today do not have apm. Also, the existance of apm is given on the probe line, absence means it ain't there.
2007-09-07Comment fix. It's 0x7F ELF, not 0xFF ELF.Tobias Weingartner
2007-07-27We don't want to pass the PXE MAC address to the kernel when bootingTom Cosgrove
from a local disk, since the MAC address causes the kernel to look for root on NFS. Do this by remembering (not adding to boot arguments) the MAC address when opening the PXE device, and clearing this if we happen to load a file off a non-network disk. "works as advertised for me" todd@; "stop sitting on this/no objections" deraadt@
2007-06-27wt(4) was removed a while ago, so don't support booting off it anoymore.Michael Knudsen
i386/amd64 was ok tom zaurus ok drahn
2007-06-25"of of" is wrong - it should be "off of" - but "from" is even nicerTom Cosgrove
2007-06-18Calculate the disklabel checksum *after* filling in all the fields inKenneth R Westerback
the disklabel. ok deraadt@
2007-06-17amd64/standTheo de Raadt
2007-05-31It's the time to squash antique bugs. This has been thereTobias Weingartner
for some time. I can't believe it took a re-read for future functionality plus something I wrote and kjell@ saved from '97 for me to find this. ok tom@
2007-05-31Forgot to commit the changes to this file with the rest of the ELF32+64Tom Cosgrove
pieces. Since this is where the "boot both ELF32 and ELF64" behaviour is turned on for i386, it is quite important. Bump version numbers too. Found by ckuethe@; thanks.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30Pull out the ELF loadfile pieces from the standalone libraries, so thatTom Cosgrove
both 32- and 64-bit versions can be created (previously only one or the other could be built for a given boot loader). Use this to allow the i386 and amd64 boot blocks to boot both ELF32 and ELF64 kernels (i.e. amd64 boot blocks can now load i386 kernels, and vice versa). Obviously the system must support LONG mode in order to successfully run the amd64 kernel once it is loaded. Advice and discussions from/with dale@ (going back three years). Much testing nick@ and todd@; thanks.
2007-05-29remove support for many alternative kernel choices -- only try /bsd andTheo de Raadt
not the other stupid names. that feature was retarded. tested on a few architectures by a few people
2007-05-27When deciding whether to allocate a bounce buffer, we need one ifTom Cosgrove
we are going to read exactly at 1 MB (i.e. fix an off-by-one that is already correct in the amd64 version of this file). ok toby@
2007-04-27Check for Control key held down when starting, and don't read boot.confTom Cosgrove
if it is. This gives a way to recover from "switching to com0" when there's no serial cable handy. Bump version numbers. A similar change will be made to amd64 boot soon. ok toby@ deraadt@
2007-04-13Update install media generation to the new semantics of the -c flag.Todd C. Miller
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.
2007-04-04Thinkpad -> ThinkPad; from Igor SobradoJason McIntyre
ok millert jasper mbalmer
2007-02-12OpenBSD -> .OxJason McIntyre
> -> \*(Gt
2007-01-02Fix the keyboard problem seen on Intel Macs, where only the firstTom Cosgrove
keypress is seen by boot. It appears that on the Intel Mac, we have to issue the "check for keystroke" BIOS call before the "get keystroke" call will get it (unlike any other BIOS I have seen in over 20 years). It would not have been possible to fix this problem without the donation from Steven N. Fettig (steve (at) anywheretechnology.com); many thanks. Bump versions of boot, cdboot and pxeboot accordingly. Testing kettenis@, otto@, and others; ok weingart@.
2006-12-26There is a single 'p', not a double, in 'triple'.Tom Cosgrove
2006-10-31Mention that cdboot won't find boot.conf if you create the CDTom Cosgrove
with 8.3-style filenames. Issue raised by Mikolaj Kucharski, eth0 (at) o2.pl. Jointly written with, and ok, jmc@.
2006-10-30install boot.conf as a section 5 page, not section 8;Jason McIntyre
from mikolaj kucharski; ok mk deraadt krw
2006-10-12Bump versions to note behaviour change of no longer tryingKenneth R Westerback
to boot from NetBSD partitions. Requested by tom@.
2006-10-12Don't try to boot from a NetBSD MBR partition when no OpenBSD MBRKenneth R Westerback
partition is found. Change error message to 'no OpenBSD partition'.
2006-09-26Zap D_REMOVABLE flag from disklabel. If you didn't already know thatKenneth R Westerback
floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@
2006-09-18boot(8) ``machine memory'' support for > 4G.Marco Pfatschbacher
Convert parser to strtoll(3) and use 64bit printf. With help from mickey@ i386 and amd64 tests by me, alpha test by mickey@ OK mickey@, miod@, deraadt@
2006-06-06use _C_LABEL() instead of _Michael Shalayeff
2006-05-21some diskless pointers; ok deraadtJason McIntyre
2006-05-20push a BOOTARG_BOOTMAC (what PXE says is the MAC address of the interfaceTheo de Raadt
we are booting from) out towards the kernel; tested by reyk crank the version too
2006-05-15better wording for the "memory" section;Jason McIntyre
2006-05-13sensible english; ok jmc; from graham.gower@gmail.comTheo de Raadt
2006-03-27kill unused extern in ifdef DEBUG evenMichael Shalayeff
2006-02-14Fix botched format string specifiers. From adobriyan at gmail.com.Aaron Campbell
2006-01-13Fix printf format string due to types changeTodd C. Miller
2006-01-02Correctly set the %di register on PXENV calls. This should helpTom Cosgrove
older PXE clients get a bit further. Prompted by Rolf Sommerhalder's comments on misc@. ok krw@ (thanks) "no objection" mbalmer@ "go for it" fgsch@ "fine" deraadt@
2005-12-30Now that errno.h and sys/errno.h are separate header files there is noTodd C. Miller
need to use the -Derrno=errno workaround added when __errno() was introduced. OK deraadt@
2005-11-27ISOXXX/ISO-XXX -> ISO XXXJason McIntyre
2005-11-14convert and remove the last traces of i386_round_page(),Martin Reindl
i386_trunc_page(), i386_btop() and i386_ptob()
2005-07-30build libkernTodd C. Miller
2005-07-30Add libkern and link it in after libzTodd C. Miller
2005-07-15- add /bsd.rd to FILESJason McIntyre
- for amd64/i386 add /bsd.mp to FILES ok tom@
2005-05-31spelling corrections in comments;Jason McIntyre
from charlie root;