summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386
Commit message (Collapse)AuthorAgeFilesLines
* Add a new variable $num_ide_disks which is used to offset the unit numbermsmith1998-11-134-15/+21
| | | | | | for SCSI disks when converting from BIOS unit numbers to da unit numbers. Prompted by Kevin Street <street@iname.com>
* bootforth seems to be working well enough for me and others to turnjkh1998-11-121-8/+8
| | | | on by default. If it causes trouble, it's very easy to switch off again.
* Revise error messages.rnordier1998-11-112-4/+4
|
* Prevent boot.config being parsed more than once.rnordier1998-11-082-2/+4
|
* Drop the familiar 'text=xxxx data=xxxx bss=xxxx ...' display whilernordier1998-11-082-28/+4
| | | | | | loading. This eliminates noise when loading boot/loader; and when loading a kernel, they generally flash by too fast to be intelligible anyway.
* boot1: Eliminate EDD detection and optional use of disk packetrnordier1998-11-087-203/+164
| | | | | | | | interface. Do some general consistency fixes and space optimizations. Use of some freed-up space to defend against possible BIOS misfeatures. boot2: Revise disk read interface to provide for boot1 changes. Free up space for this.
* Make use of BIOS int 0x13 extensions configurable, and disabledrnordier1998-11-055-9/+20
| | | | by default.
* Turn off -g accidentally left in from testing.msmith1998-11-041-3/+3
|
* Respect ${.OBJDIR} properly when looking for libficl.ajkh1998-11-041-1/+5
|
* Add required parts for BootForth building (currently disabled andmsmith1998-11-041-5/+10
| | | | | untested). Only suitable for i386 at the moment, as we are missing setjmp/longjmp on the Alpha.
* Implement a simple LRU block cache. By default this is initialised to 16k,msmith1998-11-022-2/+18
| | | | | | | | | | | | | | and will bypass transfers for more than 8k. Blocks are invalidated after 2 seconds, so removable media should not confuse the cache. The 8k threshold is a compromise; all UFS transfers performed by libstand are 8k or less, so large file reads thrash the cache. However many filesystem metadata operations are also performed using 8k blocks, so using a lower threshold gives poor performance. Those of you with an eye for cache algorithms are welcome to tell me how badly this one sucks; you can start with the 'bcachestats' command which will print the contents of the cache and access statistics.
* Revise a few comments.rnordier1998-11-022-14/+14
|
* Ignore, rather than emulate, an i386 'hlt' instruction (though forrnordier1998-11-012-22/+22
| | | | | | | most practical purposes, this should be indistinguishable from a more strictly correct approach). Feedback and testing: msmith
* - Add a new command 'lsdev' to list devices which might be likely to hostmsmith1998-10-313-8/+52
| | | | | | | | | | filesystems. - New 'help' command and data in the help.* files (not yet installed), provides topic and subtopic help, indexes, etc. - Don't crash if the user tries to set an invalid console. Be helpful instead. - Expand tabs (badly) on the i386 video console. - Some minor cosmetic changes.
* Fix an uninitialized variable in the `dangerously dedicated disk' case.luoqi1998-10-301-1/+2
|
* Make the BTX loader much more quiet about what it's doing. This removesmsmith1998-10-303-54/+87
| | | | most of the "what the (*^&%(*^ was that?" stuff that normally flies by.
* Simplify the "is a character ready" test, so that we don't return a falsemsmith1998-10-281-4/+2
| | | | | | | negative for keypresses with zero ascii values. This is in line with the comconsole test, rather than being more ambitious. Submitted by: rnordier
* Avoid interruptions while talking to keyboard controller.rnordier1998-10-272-10/+14
|
* biosboot compatibility fix: change behavior of backspace in getstr().rnordier1998-10-272-8/+12
| | | | | | Noticed by: abial Optimize away a few bytes to make space for the above.
* Clean the ${BASE}.sym file as well.msmith1998-10-231-2/+2
|
* Remove a debugging copy of offsetof() that snuck in.msmith1998-10-231-2/+1
|
* Enable the PCI BIOS PnP enumerator.msmith1998-10-231-3/+3
|
* PnP enumerator using the PCI BIOS. This is needlessly complex due to themsmith1998-10-233-6/+300
| | | | lack of a simple "enumerate all PCI devices" function.
* PnP BIOS enumerator; mostly useful for hunting PnP devices that are supportedmsmith1998-10-221-0/+290
| | | | by the system BIOS rather than supporting ISA PnP.
* Add a dependancy on the BTX crt0 objectmsmith1998-10-223-8/+6
| | | | | Add the biospnp handler to the pnp handler array Drop some old debugging code
* Add biospnp.cmsmith1998-10-221-2/+3
|
* Pop the return address off the stack before making a V86_CALLF call;msmith1998-10-221-2/+5
| | | | | this allows us to implement what look like C function calls from user space "directly" to v86 mode code. (Used for calling the PnP BIOS)
* Bye-bye setdefs.msmith1998-10-212-90/+0
|
* - Enable PnP and ISA PnP code.msmith1998-10-213-26/+59
| | | | | | | | - Use the ISA PnP enumerator. - Use the new linker set code, throw out the gensetdefs stuff. - Produce an intermediate loader image that has symbols stripped, to aid - in debugging. - Supply ISA port access functions required for ISA PnP
* Don't depend on being part of the kernel tree. If we are, use the kernel'smsmith1998-10-211-5/+8
| | | | <machine> includes rather than the system's.
* Make serial port, data format, and bps configurable.rnordier1998-10-204-12/+24
|
* Make configurable (a) whether to use int 0x13 extensions; (b) timeoutrnordier1998-10-193-17/+25
| | | | | value. Ignore failure to update mbr sector. Disable interrupts while using extended registers. Default to F1 not F2.
* Set BINMODE to 444.rnordier1998-10-171-1/+2
|
* Fix some glitches in the input routine:rnordier1998-10-172-4/+14
| | | | | | Don't display a \b if not acting on it. Don't process binary zero chars (which result from pressing function keys, etc. on the PC).
* Having probed the keyboard, turn off the -P flag.rnordier1998-10-172-2/+4
|
* Treat all options as toggles (ie. -c -c is the same no -c). Sincernordier1998-10-172-12/+8
| | | | | | | | the boot.config settings are persistent, this seems to provide a useful override capability, and should break only on broken boot.config's. Output a cosmetic newline if booting with no input.
* biosboot compatibility fix:rnordier1998-10-172-8/+14
| | | | If we have a boot.config command, display it.
* biosboot compatibility fix:rnordier1998-10-172-4/+4
| | | | | | | Read boot.help before parsing boot.config. We were parsing boot.config first, which could result in boot.help being read from a different location (or not found), which would probably just cause surprise, without being useful.
* Fix path to sio.srnordier1998-10-152-4/+4
|
* Add serial, dual, and probe-keyboard support.rnordier1998-10-157-50/+338
|
* Get the last used address via a more conservative method, don't dependpeter1998-10-153-12/+18
| | | | on the module chain being in increasing address order.
* Activate boot2.rnordier1998-10-141-2/+2
|
* Try and get the sys/* and machine/* includes via relative paths. Thispeter1998-10-142-5/+20
| | | | | saves having to do a 'make includes' after touching any header file for the boot code.
* Align to sizeof(long) rather than sizeof(int32_t). It needs to bepeter1998-10-143-12/+12
| | | | | long because this code is shared with the alpha. I hope the alpha can read 32 bit ints at 32 bit alignment (vs. 64 bit alignment).
* Fix btx include path.rnordier1998-10-142-4/+4
|
* Include <bsd.prog.mk>. Add install target (to /boot for now).rnordier1998-10-142-10/+36
|
* Fix flow of control after directory listing; enable EDD support;rnordier1998-10-132-8/+10
| | | | cosmetics.
* Make v86.ctl default more explicit; simplify read error-handling;rnordier1998-10-132-24/+52
| | | | twiddle.
* Adjust NDEV value.rnordier1998-10-132-22/+16
| | | | Optimize reading of system time.
* Change to a 15-sector boot2.rnordier1998-10-136-48/+64
| | | | Refine slice-handling.
OpenPOWER on IntegriCloud