summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused filed.dcs2001-12-031-29/+0
| | | | | PR: kern/32395 Submitted by: Jonathan Mini <mini@haikugeek.com>
* Fix typo.murray2001-12-031-1/+1
| | | | | PR: 32455 Submitted by: "Gary W. Swearingen" <swear@blarg.net>
* Waits for a keypress before rebooting on panic.dcs2001-11-281-0/+3
| | | | | | PR: kern/32351 Submitted by: Jonathan Mini <mini@haikugeek.com> MFC after: 1 week
* Document the "console" setting in loader.conf, suggesting vidconsolerwatson2001-11-271-0/+6
| | | | or comconsole.
* o Add 'kern.maxusers' to the list of commented out sample tunablerwatson2001-11-261-0/+1
| | | | | variables, since that can now be tuned at boot-time without a recompile.
* Bump the CD boot loader up to 1.1 so that the FICL upgrade a while backjhb2001-11-211-0/+1
| | | | | will not fail thinking that the loader version is stale. This lets us use the Forth code on the CD now.
* Upper case the FreeBSD loader prompt.obrien2001-11-192-2/+2
| | | | | | On OFW based machines, it is just too confusing having the firmware and OS loader giving the same prompt. This is a nice compromise that 99% of the users on non-OFW platforms will probably not even notice.
* Lookup the EFI_FPSWA driver and pass the interface pointer through to thepeter2001-11-197-0/+110
| | | | | kernel before we call ExitBootServices(). I've typed the definitions in efifpswa.h from the Intel FPSWA manual (urk).
* Remove bootinfo.bi_kernel. It isn't used by the kernel. struct bootinfopeter2001-11-194-22/+0
| | | | | should go away on ia64, we should be loader metadata based since that is the only way we can boot (loader, skiload).
* Fix a dependency violation, same as in libefi/elf_freebsd.c a while back.peter2001-11-192-0/+2
|
* This is used in C, not C++. functions with no args have func(void) in ourpeter2001-11-191-0/+1
| | | | kernel.
* MFi386: revisions from 1.26 to 1.30.nyan2001-11-172-10/+196
|
* MFi386: revision 1.12nyan2001-11-171-0/+9
|
* Fix a number of misspellings of "dependency" and "dependencies" iniedowse2001-11-161-3/+3
| | | | | | | comments and function names. PR: kern/8589 Submitted by: Rajesh Vaidheeswarran <rv@fore.com>
* Initialize first to -1; this will create a (nearly) empty file on failure,fenner2001-11-071-1/+1
| | | | | | | | instead of looping until the disk is full. This kind of failure can especially happen when a version of awk that doesn't support POSIX character classes is used. Submitted by: David Wolfskill <david@catwhisker.org>
* Remove a few more debugging bits and turn on twiddle output while readingjhb2001-11-071-15/+3
| | | | from the CD. This turns off the dual console output to COM1.
* Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support.iwasaki2001-11-061-0/+9
| | | | | | | | | | | | | | - Add S4BIOS sleep implementation. This will works well if MIB hw.acpi.s4bios is set (and of course BIOS supports it and hibernation is enabled correctly). - Add DSDT overriding support which is submitted by takawata originally. If loader tunable acpi_dsdt_load="YES" and DSDT file is set to acpi_dsdt_name (default DSDT file name is /boot/acpi_dsdt.aml), ACPI CA core loads DSDT from given file rather than BIOS memory block. DSDT file can be generated by iasl in ports/devel/acpicatools/. - Add new files so that we can add our proposed additional code to Intel ACPI CA into these files temporary. They will be removed when similar code is added into ACPI CA officially.
* MFi386: sys/boot/i386/loader/main.c revision 1.25nyan2001-11-061-14/+16
|
* MFi386: sys/boot/i386/libi386/Makefile revision 1.21nyan2001-11-061-2/+2
|
* - If we are booted via cdboot, use bc_add() to instantiate the cd0 devicejhb2001-11-051-14/+16
| | | | | | from the loader. - Cleanup extract_currdev() some and add support for setting the currdev to cd0 when booted via cdboot.
* Hook up the bioscd driver and the cd9660 filesystem.jhb2001-11-051-0/+2
|
* Add a device driver for the BIOS device for CD-ROM's booted via El Toritojhb2001-11-057-21/+424
| | | | | | no emulation mode. Unlike other BIOS devices, this device uses 2048 byte sectors. Also, the bioscd driver does not have to worry about slices or partitions.
* Add a DEVT_CD type for CD drivers.jhb2001-11-051-0/+1
|
* Trim all the extra debugging output including hexdumps, debug messages,jhb2001-11-041-189/+4
| | | | | | etc. The only bit of debugging left is performing dual output to both the screen and COM1. Also, the twiddle is still disabled since it seems to do weird things to the serial dump. cdboot now has 880 bytes to spare.
* Axe the old cdldr.jhb2001-11-042-298/+0
|
* Use the new cdboot instead of cdldr.jhb2001-11-041-2/+1
|
* This is a new CD bootstrap utility designed to replace cdldr. Accordingjhb2001-11-042-119/+594
| | | | | | | | | | | | | | | | | | | | | | | | to the El Torito standard for CD booting, a CD may boot in "No emulation" mode without using a floppy image. In this mode, the BIOS loads a program off of the CD into memory and creates a BIOS device using 2048 byte sectors for the CD. According to the standard, this program can be up to 0xFFFF virtual (512-byte) sectors long. The old cdldr depended on this by having the BIOS load the entire loader and the small cdldr stub as one binary similar to pxeboot so that cdldr didn't have to read the CD to find the loader. However, the NT no emulation loader just uses 1 disk sector (4 virtual sectors), so it seems that at least some BIOS writers just did enough to get NT to boot by only loading 1 sector and ignoring the sector count. Thus, while cdldr should have worked in theory, it doesn't in practice. This replacment fits entirely in 1 sector and includes simple ISO 9660 support. It looks for /boot/loader on the CD and loads it up using the BIOS. This allows us to not have to depend on the limited size of floppy images but use a full GENERIC kernel for CD-ROM installs in the future, among other things. This version of cdboot is a bit bloated as it includes some useful debugging routines that people can pull to use in other x86 assembly modules. Even with all the debugging cruft, we still have 272 bytes to spare.
* Print out 'foo devices:' as the line before displaying a group ofjhb2001-11-041-1/+1
| | | | | | devices in 'lsdev' output rather than printing out a pointer to the print function since the user really could care less about the pointer value. Perhaps this was intended to be a debugging printf?
* Whoops, missed these bits in the previous commit.jhb2001-11-032-2/+4
|
* Add support for sending messages to the serial console which is helpfuljhb2001-11-033-0/+163
| | | | | | when debugging boot problems. It is not on by default but is enabled via the BTX_SERIAL variable. The port and speed can be set via the same variables used by boot2 and the loader.
* Add support for outputting multiple lines when dumping memory during thejhb2001-11-032-4/+26
| | | | | register dump. Change the default to bump 2 lines of output (32 bytes) instead of 1 line (16 byte).
* Add support for trace traps by returning from them just as for breakpointjhb2001-11-032-2/+10
| | | | | traps rather than halting. Ideally, we should avoid printing the 'BTX halted' message for debug register dumps.
* Output a newline at the end of a dump so that there are blank lines betweenjhb2001-11-032-2/+2
| | | | dumps when using breakpoints or tracing.
* Revert rev 1.3 which moved us away from POSIX character classes.obrien2001-11-031-4/+4
| | | | The community feels our base AWK must handle them.
* Revert rev 1.7 which moved us away from POSIX character classes.obrien2001-11-031-15/+18
| | | | The community feels our base AWK must handle them.
* o Add new header <sys/stdint.h>.mike2001-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | o Make <stdint.h> a symbolic link to <sys/stdint.h>. o Move most of <sys/inttypes.h> into <sys/stdint.h>, as per C99. o Remove <sys/inttypes.h>. o Adjust includes in sys/types.h and boot/efi/include/ia64/efibind.h to reflect new location of integer types in <sys/stdint.h>. o Remove previously symbolicly linked <inttypes.h>, instead create a new file. o Add MD headers <machine/_inttypes.h> from NetBSD. o Include <sys/stdint.h> in <inttypes.h>, as required by C99; and include <machine/_inttypes.h> in <inttypes.h>, to fill in the remaining requirements for <inttypes.h>. o Add additional integer types in <machine/ansi.h> and <machine/limits.h> which are included via <sys/stdint.h>. Partially obtain from: NetBSD Tested on: alpha, i386 Discussed on: freebsd-standards@bostonradio.org Reviewed by: bde, fenner, obrien, wollman
* Fixed sioreg.h path.nyan2001-11-021-1/+1
|
* Substitute "[:space:]" with the character constants it expands to.obrien2001-11-011-18/+15
| | | | | | This was a silent 'failure' when using Bell-Labs awk. Submitted by: David Wolfskill <david@catwhisker.org>
* Bell-Labs AWK does not support POSIX "bracket expressions" (POSIXese forobrien2001-11-011-4/+4
| | | | | | | "character classes", basically). So change them to their character representation. Submitted by: David Wolfskill <david@catwhisker.org>
* Fix the ILLEGAL fdisk table that is there for supporting "dangerouslypeter2001-11-012-2/+2
| | | | | | | | | | | | | dedicated" mode. This was specifying that there are 256 (illegal!) heads on the disk. If bioses store that in a byte, and it gets truncated to 0, then that almost certainly causes the infamous divide-by-zero nightmare. This is also most likely the reason why the Thinkpad T20/A20 series were locking up when FreeBSD was installed. This is also the most likely reason why a boot1 being present causes an IA64 box to lock up at boot. (removing the "part4" stuff from boot1.s fixes the IA64 boxes and would most likely have fixed the T20/A20 and some TP600E series thinkpads)
* Add code to copy the enironment and loader metadata into kernel space.jake2001-10-302-2/+320
|
* Add definitions for network support, doesn't work yet.jake2001-10-301-27/+40
| | | | | | Pass the right arguments to the kernel. Replace magic numbers with symbolic constants. Pass the real openfirmware entry point to OF_init.
* Use ENTRY() for defining functions in asm.jake2001-10-302-156/+32
| | | | | | | Remove asm functions to call the openfirmware and kernel entry points; we can just call them directly. Don't use the stack pointer for an intermediate result in setx. Put the stack in the bss.
* Make the openfirmware entry point function pointer non-static so that itjake2001-10-302-1/+3
| | | | can be passed to the kernel.
* Set RB_MULTIPLE (multiple console support) if the kernel is bootedmarcel2001-10-292-0/+6
| | | | with the -D flag.
* Just use ${MACHINE}, it's already special-casing pc98.ru2001-10-251-5/+0
|
* Call ExitBootServices and disable interrupts before we start hackingdfr2001-10-252-22/+24
| | | | the VM registers. This ought to make things slightly more reliable here.
* Add the two sections used for PLT entries to the text and sdata sectionsdfr2001-10-252-0/+4
| | | | | respectively. This makes IPLTLSB relocations work properly (these are generated for weak symbols, particularly for _longjmp).
* Try to get the self-relocator to work with IPLTLSB relocations. Doesn'tdfr2001-10-244-12/+80
| | | | work right though - I can't figure out why.
* Set RB_MULTIPLE (multiple console support) if the kernel is bootedjlemon2001-10-233-0/+9
| | | | with the -D flag.
OpenPOWER on IntegriCloud