aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Save %cx around calls to the BIOS to read data to workaround bugs inJohn Baldwin2004-01-251-1/+4
| | | | | | | | | | certain BIOSs when booting from a USB CD-ROM. Also, fix the twiddle to actually twiddle. Approved by: re Notes: svn path=/releng/5.2/; revision=124941
* MFC rev 1.9:Scott Long2004-01-101-0/+1
| | | | | | | | | Disable the APIC when selection the 'Safe Boot' option. Approved by: rwatson Notes: svn path=/releng/5.2/; revision=124325
* This commit was manufactured by cvs2svn to create branch 'RELENG_5_2'.cvs2svn2003-12-0748-10166/+0
| | | | Notes: svn path=/releng/5.2/; revision=123193
* With the beastie menu a problem was introduced in which selecting aDaniel C. Sobral2003-11-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different kernel to boot with kernel="NAME" would load the kernel and loader.conf-selected modules from /boot/NAME, but it would not change module_path. So, for instance, the automatically loaded acpi.ko would come from /boot/kernel/acpi.ko, *always*. Mind you, this happened for unassisted boot. If you interrupted, typed "unload" and then "boot NAME", it would Do The Right Thing. The source of the problem is the double initialization with beastie's loader.rc. One would happen inside "start", and would load the kernel. The next one would happen later in the loader.rc script, resetting module_path. Because module_path is set to the Right Value by the functions in support.4th that actually load the kernel, when beastie.4th proceeded to boot module_path would remain wrong, as the kernel was already loaded. This can be corrected by removing either initialization, and also by changing the command used by beastie.4th from "boot" to "boot-conf", which makes sure you use the right kernel and modules. I chose to remove the second initialization, since this let you interrupt (or confirm) boot before beastie even comes up. I avoid also doing the boot-conf change because that would simply cause the kernel and modules to be loaded twice (in fact, that was my original patch, until, in writing this very commit message, I saw the error of my ways). This commit changes the semantics of module loading when using the beastie menu. Now it does what one would expect it to, but not what it was actually doing, so something may break for unusual setups depending on broken behavior. As our japanese friends so nicely put it, shikata ga nakatta. :-) Approved by: re (scottl) Notes: svn path=/head/; revision=122942
* Update the size of the OS string table that wasn't updated in the previousJohn Baldwin2003-11-201-1/+1
| | | | | | | | | | commit that removed the UNIX entry. Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz> Approved by: re (rwatson) Notes: svn path=/head/; revision=122923
* When rebooting the machine jump to 0xf000:0xfff0 instead of 0xffff:0x0.Poul-Henning Kamp2003-11-162-2/+2
| | | | | | | | | | | | | While we end up the same place, we end up with two different CS register values after the jump and 0xf000 is compatible with the hardware reset value. This makes a difference if the BIOS does a near jump before a far jump. Detective work and patch by: Adrian Steinmann <ast@marabu.ch> Notes: svn path=/head/; revision=122806
* MFi386: revision 1.13.Yoshihiro Takahashi2003-11-152-2/+2
| | | | Notes: svn path=/head/; revision=122753
* Changed the RB_PAUSE flag from 0x40000 to 0x100000 and marked the oldBruce Evans2003-11-152-4/+26
| | | | | | | | | | | | | | | | | | | | | value as reserved for internal use in boot blocks, because RB_PAUSE broke binary compatibility by usurping the RB_DUAL flag. Probably no one except me has boot blocks for which this matters, since most boot blocks based on biosboot including pc98's boot2 can't boot elf kernels, and /boot/loader doesn't properly pass flags set by the previous stage. reboot.h: Also mark the historical RB_PROBEKBD flag (0x80000) as reserved for internal use in boot blocks. boot2.c: Added comments to inhibit usurping of other flags. Approved by: guido, imp MFC after: 1 week Notes: svn path=/head/; revision=122749
* Set RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.Jake Burkholder2003-11-111-4/+6
| | | | | | | | | This ensures that uart gets a higher console priority than syscons when a serial console is being used. Testing against the "console" environment variable doesn't make sense since we only have one loader console driver. Notes: svn path=/head/; revision=122499
* Include <sys/reboot.h> the definition of RB_BOOTINFO. The previousBruce Evans2003-11-112-0/+4
| | | | | | | | | commit broke the world because it depended on namespace pollution that was only in my version of <machine/bootinfo.h>. The include was removed in rev.1.63 after the last reference to it went away in rev.1.61. Notes: svn path=/head/; revision=122463
* Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43. Fixed wrongBruce Evans2003-11-102-4/+4
| | | | | | | | | | | | | | | | comment about this flag in rev.1.61. It is not historical like the comment said; it is the flag that says that most of what is laboriously put in the bootinfo struct is actually there. Newer kernels were bootable by even the broken boot2 without losing anything except the symbol table, but older kernels need at least the memory sizes. Restoring the "|" with RB_BOOTINFO that was lost in rev.1.43 costs 5 bytes. The fix can be done in only 4 bytes by fixing some code that was removed in rev.1.61 (put RB_BOOTINFO back in in the initial value of "opts" and fix RBX_MASK to not clobber it.) Notes: svn path=/head/; revision=122433
* Implement PAL_HALT_LIGHT now that the kernel halts the processorMarcel Moolenaar2003-11-092-0/+18
| | | | | | | when idle. All we have to do is return. Notes: svn path=/head/; revision=122351
* Do not strip skiload when installed. The stripped binary does not loadMarcel Moolenaar2003-11-092-0/+2
| | | | | | | in the simulator. Notes: svn path=/head/; revision=122350
* Fix an incorrect quote character in an M4 test conditon. Basically, oneJohn Baldwin2003-11-062-2/+2
| | | | | | | | of the verbose print statements that BTXLDR_VERBOSE enables wasn't properly enabled. Notes: svn path=/head/; revision=122177
* Override the root server address if an IP address is specified inIan Dowse2003-11-031-7/+9
| | | | | | | | | | | | the root path. This is reported to make non-PXE netbooting, such as is used on sparc64 systems, work correctly when the TFTP server is not the same as the root server. PR: kern/57328 Submitted by: Per Kristian Hove <Per.Hove@math.ntnu.no> Notes: svn path=/head/; revision=121973
* Directly call the 'reboot' word instead of indirectly evaluating it.Scott Long2003-10-281-1/+1
| | | | Notes: svn path=/head/; revision=121632
* Directly call the 'boot' word instead of indirectly evaluating it.Scott Long2003-10-271-7/+7
| | | | | | | Submitted by: dcs Notes: svn path=/head/; revision=121618
* Don't repeat selected defines from ns16550.h or sioreg.h. JustBruce Evans2003-09-162-40/+2
| | | | | | | | include ns16550.h. The missing installation of ns16550.h was fixed long ago and the misplaced defines in sioreg.h were fixed recently. Notes: svn path=/head/; revision=120118
* Apply Aleksander Fafula's crayons to the beastie. Add the this line toScott Long2003-09-131-1/+38
| | | | | | | | | /boot/loader.conf to see the pretty colors =-) loader_color="YES" Notes: svn path=/head/; revision=120031
* Use __FBSDID().David E. O'Brien2003-09-0834-65/+95
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119880
* Add BOOT_PXELDR_ALWAYS_SERIAL option which forces serial console.Poul-Henning Kamp2003-09-033-0/+15
| | | | Notes: svn path=/head/; revision=119714
* Use __FBSDID().David E. O'Brien2003-08-2521-49/+74
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119483
* Use __FBSDID().David E. O'Brien2003-08-2528-73/+95
| | | | | | | Also some minor copyright style cleanups. Notes: svn path=/head/; revision=119482
* Many newer CF do not handle having the entire track read from them atWarner Losh2003-08-222-0/+8
| | | | | | | | | | | | | boot time. Instead, read it a sector at a time. While this sounds like a significant slowdown, I've not been able to measure any signficant difference. Submitted by: luigi Reviewed by: jhb, sam (both a while ago) MFC After: 3 days Notes: svn path=/head/; revision=119253
* FICL doesn't build on PowerPC yet, so disable.David E. O'Brien2003-08-163-21/+21
| | | | Notes: svn path=/head/; revision=118982
* Consistently use the BSD u_int and u_short instead of the SYSV uint andJohn Baldwin2003-08-071-1/+1
| | | | | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c) Notes: svn path=/head/; revision=118607
* Null terminate the OEM hint. This rids my laptop of the smiley face thatNate Lawson2003-08-071-0/+1
| | | | | | | would follow the 6 valid chars of the table entry. Notes: svn path=/head/; revision=118604
* Fix asm string newlines to keep gcc3.3 happy. Use register prefixesPeter Grehan2003-08-052-108/+108
| | | | | | | to make the asm a bit more readable. Notes: svn path=/head/; revision=118485
* Don't hardcode unit 0 for the current device if we're loaded from anMarcel Moolenaar2003-08-024-35/+31
| | | | | | | | | | | | | | | EFI file system. When booting from a CD and there's already an EFI system partition on the disk, setting the current device to unit 0 will select the harddisk. This invariably breaks installing FreeBSD when other operating systems have been installed before. We obviously want to do the same when we're booting over the network. Maybe later. Based on a patch (from memory) from: arun Notes: svn path=/head/; revision=118346
* Fix the ski loader, broken by the gcc upgrade. Update the linkerMarcel Moolenaar2003-07-178-262/+230
| | | | | | | | | script to match the one for the EFI loader and rewrite __start() in assembly to have gp defined without getting in the way of the compiler. Notes: svn path=/head/; revision=117677
* Have the linker script look more like the default linker scriptMarcel Moolenaar2003-07-172-92/+78
| | | | | | | | on ia64. This fixes the breakage caused by the gcc upgrade that resulted in a broken executable. Notes: svn path=/head/; revision=117676
* Add include file so this builds with new acpicaNate Lawson2003-07-131-0/+1
| | | | | | | Reported by: Kevin Oberman <oberman@es.net> Notes: svn path=/head/; revision=117529
* Fixed build error with GCC 3.3.1Yoshihiro Takahashi2003-07-131-3/+3
| | | | Notes: svn path=/head/; revision=117511
* NFS support should be conditional on LOADER_NFS_SUPPORT, notThomas Moestl2003-07-111-1/+1
| | | | | | | LOADER_NET_SUPPORT. Notes: svn path=/head/; revision=117448
* Revert non-style part of the recent two deltas that dealt withRuslan Ermilov2003-07-022-10/+2
| | | | | | | | using as(1) to compile plain assembler source files; bsd.lib.mk has been fixed (in revision 1.147). Notes: svn path=/head/; revision=117160
* sys/ia64/ia64/pal.s has been repocopied to pal.S.Ruslan Ermilov2003-07-021-1/+1
| | | | | | | | Approved by: marcel Repocopied by: joe Notes: svn path=/head/; revision=117158
* pal_stub.s has been repo-copied to pal_stub.S.Ruslan Ermilov2003-07-022-66/+1
| | | | | | | | Approved by: marcel Repocopied by: joe Notes: svn path=/head/; revision=117156
* Add the beastie_disable variable which allows to turn the beastieChristian Brueffer2003-07-011-0/+1
| | | | | | | | | boot menu on and off. Reviewed by: scottl Notes: svn path=/head/; revision=117090
* bsd.lib.mk,v 1.143 no longer uses ld(1) directly to stripRuslan Ermilov2003-06-301-1/+0
| | | | | | | | | | symbols from intermediate object files, so these hacks to get AMD64 compile are no longer needed. Tested on: sledge.FreeBSD.org Notes: svn path=/head/; revision=117081
* Switch to using bsd.prog.mk; this gives us back the standardRuslan Ermilov2003-06-302-10/+4
| | | | | | | .s.o transformation rule. Notes: svn path=/head/; revision=117075
* MFi386: revision 1.16.Ruslan Ermilov2003-06-301-10/+4
| | | | Notes: svn path=/head/; revision=117053
* Revision 1.13, besides its useful part, replaced bsd.prog.mk byRuslan Ermilov2003-06-301-10/+4
| | | | | | | | | | | | | | | | | | | | | bsd.lib.mk and thus broke the build since AFLAGS were not taken into considered anymore, as bsd.lib.mk currently has wrong .s.o rule that uses cc(1) instead of as(1). Revision 1.14 reverted to using as(1), and revision 1.15 brought AFLAGS back to the business, but revision 1.14 also broke "make clean". To fix this, but not break anything that was fixed in revisions 1.13-1.15, we revert mostly to revision 1.13 except for switching back to using bsd.prog.mk. This gives us back the default .s.o rule from sys.mk that uses as(1), and fixes "make clean" by restoring the full contents of OBJS. Also fixed LDFLAGS. Notes: svn path=/head/; revision=117052
* Capitalize an occurrence of 'ficl' for consistency.Christian Brueffer2003-06-291-1/+1
| | | | | | | | Submitted by: Andre Guibert de Bruet <andy@siliconlandmark.com> MFC after: 3 days Notes: svn path=/head/; revision=117044
* Build on amd64. Yes, I know this isn't particularly nice.Peter Wemm2003-06-269-8/+59
| | | | Notes: svn path=/head/; revision=116864
* When looking for the ':' separator in the root path, don't go pastIan Dowse2003-06-161-2/+2
| | | | | | | | | | | | | the terminating '\0'. Since the initialisation of rootpath in libstand/bootp.c may copy junk into the rest of the buffer, it was possible for the code to find a ':' after the '\0' and do the wrong thing. Reviewed by: ps MFC after: 1 week Notes: svn path=/head/; revision=116451
* Remember to release the loader's heap.Jake Burkholder2003-06-151-1/+7
| | | | | | | Reviewed by: tmm Notes: svn path=/head/; revision=116415
* Don't start the beastie menu if the 'beastie_disable' variable is set toScott Long2003-06-101-1/+11
| | | | | | | | | | 'YES'. If the user selects to escape to the loader prompt, set 'autoboot_delay' to 'NO' so that the prompt timer doesn't run. Notes: svn path=/head/; revision=116175
* Add help file for pc98.Yoshihiro Takahashi2003-06-082-1/+47
| | | | Notes: svn path=/head/; revision=116003
* Enable new boot menu.Yoshihiro Takahashi2003-06-081-1/+2
| | | | Notes: svn path=/head/; revision=116002
* Don't load the acpi module.Yoshihiro Takahashi2003-06-082-1/+34
| | | | Notes: svn path=/head/; revision=116001