aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Because the BTX mini-kernel now uses flat memory mode and clientsRuslan Ermilov2006-10-295-10/+10
| | | | | | | | | | | | | | | | | | | are no longer limited to a virtual address space of 16 megabytes, only mask high two bits of a virtual address. This allows to load larger kernels (up to 1 gigabyte). Not masking addresses at all was a bad idea on machines with less than >3G of memory -- kernels are linked at 0xc0xxxxxx, and that would attempt to load a kernel at above 3G. By masking only two highest bits we stay within the safe limits while still allowing to boot larger kernels. (This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c rev. 1.71.) Prodded by: jhb Tested by: nyan (pc98) Notes: svn path=/head/; revision=163765
* Adopt comments borrowed from aout_freebsd.c.Ruslan Ermilov2006-10-262-2/+2
| | | | Notes: svn path=/head/; revision=163708
* Restore support for -c and -d that were treacherously murdered inRuslan Ermilov2006-10-262-4/+8
| | | | | | | | | | rev. 1.58. (This only costs us four bytes.) Prodded by: bde MFC after: 3 days Notes: svn path=/head/; revision=163707
* Back out rev. 1.71 as it breaks directly loading (i386) kernels.Ruslan Ermilov2006-10-262-6/+6
| | | | | | | | | OK'ed by: jhb PR: i386/96430, i386/104709 MFC after: 3 days Notes: svn path=/head/; revision=163706
* Don't descend into at91 until we sort out the boot loader issues more generallyWarner Losh2006-10-231-1/+1
| | | | Notes: svn path=/head/; revision=163617
* MFp4: default to not loading the fpgaWarner Losh2006-10-215-5/+170
| | | | Notes: svn path=/head/; revision=163598
* MFp4: Update to smaller code footprint.Warner Losh2006-10-215-17/+67
| | | | Notes: svn path=/head/; revision=163597
* MFp4: Move to smaller code footprint.Warner Losh2006-10-212-20/+20
| | | | Notes: svn path=/head/; revision=163596
* MFp4: Move to smaller code. This was somehow forgotten before.Warner Losh2006-10-211-5/+5
| | | | Notes: svn path=/head/; revision=163595
* There's no fpga.c, so omit it.Warner Losh2006-10-201-1/+1
| | | | Notes: svn path=/head/; revision=163542
* MFp4:Warner Losh2006-10-2025-1050/+1157
| | | | | | | | | | | Massive update. The highlights: o dramatically cut memory usage by writing better, less intertwingled code. o implement booting off mmc/sd cards (sd only tested one at the moment) o start to split out board specific stuff for boot2. Notes: svn path=/head/; revision=163533
* Replace a rarely used "depuration" with "debugging".Ruslan Ermilov2006-10-133-3/+3
| | | | | | | | | PR: docs/85127 Submitted by: Gary W. Swearingen (partially) MFC after: 3 days Notes: svn path=/head/; revision=163327
* more sun4v fallout - missed addKip Macy2006-10-091-0/+143
| | | | | | | Approved by: rwatson (mentor) Notes: svn path=/head/; revision=163154
* unbreak sparc64 loader buildKip Macy2006-10-091-1/+0
| | | | | | | | | | | re-add accidentally deleted asi value remove sun4v only header include Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163151
* add sun4v support to the sparc64 boot loaderKip Macy2006-10-095-10/+1109
| | | | | | | | | Approved by: rwatson (mentor) Reviewed by: jmg Tested by: kris, dwhite, and jmg Notes: svn path=/head/; revision=163145
* - Update URL of Intel documentationPav Lucistnik2006-10-071-1/+1
| | | | | | | | Submitted by: Rob <spamrefuse@yahoo.com> on freebsd-doc MFC after: 3 days Notes: svn path=/head/; revision=163070
* - Fix a couple of improper uses of leal in the previous space savingJohn Baldwin2006-10-051-5/+7
| | | | | | | | | | | | | | | | | | commits. For some reason I thought the scale factor was a shift count rather than the multiplicand (that is, I thought leal (%eax,%edx,4) was going to generate %eax + %edx << 4 rather than %eax + %edx * 4). What I need is to multiply by 16 to convert a real-mode (seg, offset) tuple into a flat address. However, the max multiplicand for scaled/index addressing on i386 is 8, so go back to using a shl and an add. - Convert two more inter-register mov instructions where we don't need to preserve the source register to xchg instructions to keep our space savings. Tested by: Ian FREISLICH if at hetzner.co.za MFC after: 1 week Notes: svn path=/head/; revision=163032
* Add module loading option for Intel High Definition Audio ControllerAriff Abdullah2006-10-011-0/+1
| | | | | | | - snd_hda(4) Notes: svn path=/head/; revision=162934
* Add snd_envy24ht and remove the snd_ak4* module.Alexander Leidinger2006-09-301-1/+2
| | | | Notes: svn path=/head/; revision=162890
* Fix WARNS=2 warnings.Ruslan Ermilov2006-09-291-0/+2
| | | | Notes: svn path=/head/; revision=162815
* Fix most of the WARNS=2 warnings.Ruslan Ermilov2006-09-294-6/+5
| | | | Notes: svn path=/head/; revision=162814
* Oops, add return values for the smap command function. We must have theJohn Baldwin2006-09-291-1/+2
| | | | | | | | | warnings set weird or something because gcc didn't warn about this at all. Submitted by: ru Notes: svn path=/head/; revision=162813
* Tweak the code to handle intercepting BIOS calls to int 0x15 to shaveJohn Baldwin2006-09-281-17/+10
| | | | | | | | | | | | | | | another 16 bytes off of BTX (and thus boot2): - Compare against the value of %eax that is saved on the stack instead of loading it into %eax (which requires saving the current %eax on the stack). - Use %ch to examine the keyboard flag state in the BIOS to see if Ctrl-Alt-Del is pressed instead of %al so we don't have to save %eax on the stack anymore. MFC after: 1 week Notes: svn path=/head/; revision=162745
* Optimize the int 15/87 handler for space to shave another 16 bytes off ofJohn Baldwin2006-09-281-31/+17
| | | | | | | | | | | | | | | | | | | | BTX (and thus boot2): - Don't bother saving %eax, %ebx, or %ecx as it is not necessary. - Use a more compact sequence to load the base value out of a GDT entry by loading the contiguous low 24 bits into the upper 24 bits of %eax, loading the high 8 bits into %al, and using a ror to rotate the bits (2 mov's and a ror) rather than loading the pieces in smaller chunks (3 mov's and a shl). - Use movzwl + leal instead of movl + movw + shll + addl. - Use 'xchgl %eax,%foo' rather than 'movl %eax,%foo' for cases where it's ok to trash %eax. xchgl %eax, foo is a 1-byte opcode whereas the mov is a 2-byte opcode. - Use movzwl rather than xorl + movw. MFC after: 1 week Notes: svn path=/head/; revision=162744
* Add an 'smap' command that dumps out the BIOS SMAP.John Baldwin2006-09-282-0/+22
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=162743
* Ignore a sub-topic match if it is inside the command description.John Baldwin2006-09-281-0/+3
| | | | | | | | | | Otherwise, merge-help can get confused by a command description that includes a word that starts with a capital S. MFC after: 1 week Notes: svn path=/head/; revision=162742
* A couple of simple tweaks that trim BTX by 6 bytes. Since BTX isJohn Baldwin2006-09-281-3/+2
| | | | | | | | 16-byte aligned within boot2 however, this actually trims boot2 by 16 bytes. Notes: svn path=/head/; revision=162737
* Add -march=i386 to fix amd64 build by generating the same codeRuslan Ermilov2006-09-282-2/+2
| | | | | | | as i386 would do. Notes: svn path=/head/; revision=162717
* Emulate moving cr0, cr2, cr3, or cr4 into any i386 general registerJohn Baldwin2006-09-271-6/+18
| | | | | | | | | | | rather than just emulating mov cr0, eax. This fixes some Compaq/HP BIOS with DMA (as the BIOS tried to read cr3 so it could translate addresses if paging was enabled). MFC after: 1 week Notes: svn path=/head/; revision=162710
* Add mnt_noasync counter to better handle interleaved calls to nmount(),Tor Egge2006-09-261-1/+1
| | | | | | | | | sync() and sync_fsync() without losing MNT_ASYNC. Add MNTK_ASYNC flag which is set only when MNT_ASYNC is set and mnt_noasync is zero, and check that flag instead of MNT_ASYNC before initiating async io. Notes: svn path=/head/; revision=162649
* - Include <sys/reboot.h> to get the RB_* defines.Ruslan Ermilov2006-09-051-6/+4
| | | | | | | | | | | - Make the PROBE_KEYBOARD option better resemble the -P option in boot2, i.e., if keyboard isn't present then boot with both RB_SERIAL and RB_MULTIPLE set. Reviewed by: jhb Notes: svn path=/head/; revision=162046
* Make the default "init_path" value breakable, so it fits on theRuslan Ermilov2006-08-201-1/+1
| | | | | | | | | screen's width, thus eliminating a groff(1) warning. Suggested by: marck Notes: svn path=/head/; revision=161471
* Copy powerpc ficl files sysdep files (maybe we need a common one)Warner Losh2006-08-182-0/+533
| | | | Notes: svn path=/head/; revision=161454
* Build at91Warner Losh2006-08-181-1/+1
| | | | Notes: svn path=/head/; revision=161453
* Support compiling as part of worldWarner Losh2006-08-181-1/+1
| | | | Notes: svn path=/head/; revision=161452
* Wordsmithing on the ixgb(4) and mxge(4) descriptions.Christian Brueffer2006-08-181-2/+2
| | | | | | | Suggested by: ru (ixgb) Notes: svn path=/head/; revision=161449
* Add more modules, correct alphabetical order.Christian Brueffer2006-08-181-1/+3
| | | | Notes: svn path=/head/; revision=161448
* kern.ipc.nmbclusters is sysctl, not compile-time option. Change Dv to Va.Dmitry Morozovsky2006-08-181-3/+3
| | | | | | | | | | Touch .Dd. Pointed out by: ru MFC after: 1 week Notes: svn path=/head/; revision=161431
* Remove references to NMBCLUSTERS which is obsoleted.Dmitry Morozovsky2006-08-182-5/+3
| | | | | | | | | PR: 100427 Approved by: maxim MFC after: 1 week Notes: svn path=/head/; revision=161429
* MFp4: changes since .s -> .S rename. Use correct header for sizeWarner Losh2006-08-171-2/+17
| | | | Notes: svn path=/head/; revision=161379
* MFp4: First cut at making spi and/or sd card booting work, needs workWarner Losh2006-08-1619-119/+2940
| | | | Notes: svn path=/head/; revision=161370
* MFp4:Warner Losh2006-08-163-41/+23
| | | | | | | | Tidy up a bit. Make sure that the burned image matches the downloaded one. Notes: svn path=/head/; revision=161369
* MFp4:Warner Losh2006-08-163-48/+5
| | | | | | | Simplify life a little for such a simple program. Notes: svn path=/head/; revision=161368
* Several updates:Christian Brueffer2006-08-141-14/+21
| | | | | | | | | | | - Added missing file system/network/sound module entries - Removed obsolete network module entries - Capitalized (Fast|Gigabit) Ethernet MFC after: 1 week Notes: svn path=/head/; revision=161286
* MFp4: Integrate a boatload of bug fixes from p4. We're right on theWarner Losh2006-08-107-2/+705
| | | | | | | | | | | | | | 8k boundary with this program still. text data bss dec hex filename 7925 4 4476 12405 3075 bootiic.out so we have like 293 bytes left before we have to play games. There may be ways to reduce that somewhat, but they start to be very board specific. Notes: svn path=/head/; revision=161202
* MFp4:Warner Losh2006-08-101-6/+23
| | | | | | | | | Reach over into the arm tree to grab some at91 definitions. Better warnings Lots of build tweaks Notes: svn path=/head/; revision=161199
* MFp4: remove obsolete filesWarner Losh2006-08-102-109/+0
| | | | Notes: svn path=/head/; revision=161198
* MFp4:Warner Losh2006-08-103-2/+294
| | | | | | | | Remove obsolete files in list Add spi flash reading routines Notes: svn path=/head/; revision=161197
* MFp4: Numerous changes from p4 to try to improve tftp downloading,Warner Losh2006-08-102-242/+230
| | | | | | | | reduce code footprint, etc. While some problems still remain, the reliability of tftp is much improved. Notes: svn path=/head/; revision=161196
* MFp4: consolidate #include files down to lib.hWarner Losh2006-08-104-69/+24
| | | | Notes: svn path=/head/; revision=161195