Mike Smith
c679ae39a8
biosdisk.c
...
Implement a new variable 'root_disk_unit' which supersedes
'num_ide_disks' and makes it possible to explicitly set the
root device unit number regardless of type considerations.
bootinfo.c
If we can't calculate a dev_t for the root disk, complain and
don't proceed to boot with an invalid boot device.
1999-01-24 00:12:04 +00:00
Mike Smith
5d3d992565
Fill in the bi_bios_dev field in the bootinfo struct; the loader doesn't
...
guess this value well in anything other than the simplest of situations.
1999-01-24 00:10:10 +00:00
Robert Nordier
d0a4f5ea63
Fix read error not being detected.
1999-01-22 18:32:52 +00:00
Robert Nordier
d7478bf0df
Push version numbers up to 1.00. This is just intended to reflect
...
that the BTX code can be regarded as stable: there are no associated
code changes.
Suggested by: obrien
1999-01-22 13:07:17 +00:00
Mike Smith
378972ac6b
Transition from using Perl to using awk for our text-manipulation
...
needs. This removes the dependancy on Perl for the generation of the
loader, allowing the world to be built on a perl-free system.
Submitted by: Joe Abley <jabley@clear.co.nz>
1999-01-18 19:05:27 +00:00
Robert Nordier
05c7fdda18
In the event of a disk error, boot2 is expecting an error
...
code to be returned: give it one
1999-01-13 23:30:07 +00:00
Robert Nordier
726c0943c0
Drop boot.help support.
1999-01-11 11:36:03 +00:00
Mike Smith
ba536e2ae8
Preserve the previous loader as loader.old.
...
Note no matching commit for the Alpha, as the alpha boot0 stage does
not have the ability to prompt for user input.
PR: kern/9406
Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
1999-01-11 05:52:28 +00:00
Mike Smith
f414995e5c
Disable kzipping the loader; it seems to be breaking the aout-to-elf build
1999-01-10 20:20:27 +00:00
Steve Price
24d156f499
Remove redundant line of code.
...
PR: 9364
Submitted by: Daniel C. Sobral <dcs@newsguy.com>
1999-01-10 18:22:23 +00:00
Robert Nordier
c03fa7f977
Use etc/make.conf settings for serial port and speed.
...
Submitted by: rvb
Reviewed by: bde
1999-01-10 14:48:05 +00:00
Peter Wemm
c03b24b2d8
Damn, I thought I had committed this already, but it seems not.
...
Move the relocated boot1 and arg transfer space from 0x600/0x800 to
0x700/0x900. In theory this should make no difference, apart from the fact
that Buslogic controllers happen to use a few bytes at 0x600 for some sort
of scratch space for it's int 0x13 hook (!!!), causing the machine to crash
badly when the boot2 code makes it's callbacks into boot1 for disk IO.
Submitted by: Robert Nordier <rnordier@freebsd.org>
1999-01-10 13:29:52 +00:00
Mike Smith
244cf84b1e
Explicitly look for kzip in /usr/bin, again this is a stopgap, to avoid
...
making kzip a build tool.
1999-01-09 20:14:46 +00:00
Mike Smith
82bbbb8c73
kzip the loader, this shrinks it to about 60% of its original size.
...
Note that this is a stopgap with dependancies on the a.out tools.
1999-01-09 02:38:40 +00:00
Mike Smith
ee5799c4ee
Extend bd_print() so that it displays slices and partitions on disks.
1999-01-09 02:36:19 +00:00
Peter Wemm
e423230b0d
Fix a potential sign extension bug on 8-bit chars.
...
Outputting a backspace isn't supposed to be destructive.. It isn't on
most terminals, nor on the standard bios output (vs. TERM_EMU mode)
1999-01-04 18:45:08 +00:00
Mike Smith
170aadf69a
Restore dependancy to build loader.help here
1999-01-04 01:28:46 +00:00
Mike Smith
5dfcac87f7
Reenable generation of the loader.help file
1999-01-03 20:50:35 +00:00
Andrzej Bialecki
de37e4a6d2
Add back ability to make beeps when using new TERM_EMU.
...
Submitted by: W Gerald Hicks <wghicks@bellsouth.net>
1998-12-31 13:44:04 +00:00
Andrzej Bialecki
cf9443f92b
Add simple terminal emulator, compatible with cons25. Currently supported
...
capabilities are: AF, AB, cm, ho, me, cd. The code is hidden behind
-DTERM_EMU - should it cause any problems, you can remove this define
to get back the old behaviour.
You'll find some examples how to use it in src/share/examples/bootforth.
Reviewed by: jkh
1998-12-22 11:51:25 +00:00
Mike Smith
c2e3e002f6
Disable build/install of boot.help until we sort out how to construct it
...
in the makeworld environment.
1998-12-16 02:27:15 +00:00
Mike Smith
8719fada36
Reformat help to improve subtopic display appearance, other minor
...
cleaning. The 'help' command in the loader should now be usable and
hopefully informative.
1998-12-15 14:32:17 +00:00
Mike Smith
aa203600d5
Build the composite help file from the generic and architecture-specific
...
help files, sorting topics and subtopics to allow maximum flexibility.
1998-12-15 14:21:30 +00:00
Andrey A. Chernov
722135c358
unlocalize date
...
Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1998-12-07 16:17:41 +00:00
Robert Nordier
b956ca7ca4
Revise some comments and labels.
1998-12-05 11:58:33 +00:00
Robert Nordier
12c38b04f1
Drop EDD support detection, though retain configurable use of disk
...
packet interface. Add booteasy-style F5 support. Add no-update
option. Implement various space optimizations and consistency fixes.
1998-11-29 14:09:00 +00:00
Robert Nordier
5103ed619b
Drop use of BIOS int 0x14 services in favor of direct port I/O.
...
Feedback and testing: Adrian Filipi-Martin <adrian@ubergeeks.com>
1998-11-22 07:59:16 +00:00
Mike Smith
8f0a6b5b8c
Add a new variable $num_ide_disks which is used to offset the unit number
...
for SCSI disks when converting from BIOS unit numbers to da unit numbers.
Prompted by Kevin Street <street@iname.com>
1998-11-13 23:40:02 +00:00
Jordan K. Hubbard
207fe43d59
bootforth seems to be working well enough for me and others to turn
...
on by default. If it causes trouble, it's very easy to switch off again.
1998-11-12 07:40:51 +00:00
Robert Nordier
21ffb6774a
Revise error messages.
1998-11-11 08:56:17 +00:00
Robert Nordier
0293eac42c
Prevent boot.config being parsed more than once.
1998-11-08 18:37:28 +00:00
Robert Nordier
7ac90f7d65
Drop the familiar 'text=xxxx data=xxxx bss=xxxx ...' display while
...
loading. This eliminates noise when loading boot/loader; and when
loading a kernel, they generally flash by too fast to be
intelligible anyway.
1998-11-08 18:29:29 +00:00
Robert Nordier
9888bdcd29
boot1: Eliminate EDD detection and optional use of disk packet
...
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.
1998-11-08 15:36:35 +00:00
Robert Nordier
548bf5dd17
Make use of BIOS int 0x13 extensions configurable, and disabled
...
by default.
1998-11-05 20:52:25 +00:00
Mike Smith
95bd40d634
Turn off -g accidentally left in from testing.
1998-11-04 03:42:36 +00:00
Jordan K. Hubbard
12b2c0d82e
Respect ${.OBJDIR} properly when looking for libficl.a
1998-11-04 02:36:18 +00:00
Mike Smith
48fe834fda
Add required parts for BootForth building (currently disabled and
...
untested). Only suitable for i386 at the moment, as we are missing
setjmp/longjmp on the Alpha.
1998-11-04 00:30:47 +00:00
Mike Smith
af1f6e0673
Implement a simple LRU block cache. By default this is initialised to 16k,
...
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.
1998-11-02 23:28:11 +00:00
Robert Nordier
3d04f230e5
Revise a few comments.
1998-11-02 17:53:08 +00:00
Robert Nordier
3b1bd5ae35
Ignore, rather than emulate, an i386 'hlt' instruction (though for
...
most practical purposes, this should be indistinguishable from a
more strictly correct approach).
Feedback and testing: msmith
1998-11-01 13:52:52 +00:00
Mike Smith
dc8be6a8f5
- Add a new command 'lsdev' to list devices which might be likely to host
...
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.
1998-10-31 02:53:12 +00:00
Luoqi Chen
36159e3d1e
Fix an uninitialized variable in the `dangerously dedicated disk' case.
1998-10-30 07:15:52 +00:00
Mike Smith
4c1a7a5a8f
Make the BTX loader much more quiet about what it's doing. This removes
...
most of the "what the (*^&%(*^ was that?" stuff that normally flies by.
1998-10-30 00:11:35 +00:00
Mike Smith
8879e57b3e
Simplify the "is a character ready" test, so that we don't return a false
...
negative for keypresses with zero ascii values. This is in line with the
comconsole test, rather than being more ambitious.
Submitted by: rnordier
1998-10-28 19:24:15 +00:00
Robert Nordier
9244e1a412
Avoid interruptions while talking to keyboard controller.
1998-10-27 20:19:24 +00:00
Robert Nordier
c589107988
biosboot compatibility fix: change behavior of backspace in getstr().
...
Noticed by: abial
Optimize away a few bytes to make space for the above.
1998-10-27 20:16:36 +00:00
Mike Smith
0cae710c49
Clean the ${BASE}.sym file as well.
1998-10-23 22:32:27 +00:00
Mike Smith
4558ccdf6f
Remove a debugging copy of offsetof() that snuck in.
1998-10-23 22:30:52 +00:00
Mike Smith
c93cd32637
Enable the PCI BIOS PnP enumerator.
1998-10-23 22:29:19 +00:00
Mike Smith
a1c0b1c5c5
PnP enumerator using the PCI BIOS. This is needlessly complex due to the
...
lack of a simple "enumerate all PCI devices" function.
1998-10-23 22:29:08 +00:00