rnordier
3fdb487782
Fix damage introduced in previous commit.
1999-04-05 07:36:30 +00:00
rnordier
33dbdcecb9
Optimize better for space.
...
Thanks to: jdp
1999-04-05 07:24:51 +00:00
obrien
d343a5cdea
Remove the string ">>> FreeBSD/i386 BOOT". I need to reduce the size of
...
boot2 by 16 bytes. I expect this to be temperary until the boot2 authors
can do the proper fix.
1999-04-04 21:15:41 +00:00
joerg
378da8f135
Make <DEL> an alternative rubout character for command input; many
...
serial terminals use this as their default rubout key.
1999-03-31 08:28:42 +00:00
dcs
c18006911a
Avoid copying m_args if none exists. (Perhaps this is a better solution,
...
Doug?)
1999-03-18 14:36:22 +00:00
dcs
5286c095cf
Version bump: kvm & dictionary size.
1999-03-17 23:05:46 +00:00
dcs
fa973cd0a2
The man page, version 0.1.
1999-03-15 08:52:23 +00:00
dcs
313dc063d0
Install new loader.rc stuff.
1999-03-10 03:34:14 +00:00
dcs
526581a289
Add MODINFO_ARGS, parameters passed to a module at load time.
...
VS: ----------------------------------------------------------------------
1999-03-08 11:05:52 +00:00
rnordier
c74450fa3d
Save option, rather than slice, selected. This permits unattended
...
booting from other than drive 0, as the F5 keypress is saved and
"replayed."
Requested (some time ago) by: archie
1999-03-01 02:42:47 +00:00
rnordier
c17b4c476c
Implement "setdrv" option
1999-02-26 14:51:14 +00:00
rnordier
a3fa9785d0
Emulate a V86 "movl %cr0,%eax" instruction.
...
Feedback and testing: Kurt Hopfensperger <kjhmdjd@ix.netcom.com>
1999-02-25 16:27:41 +00:00
msmith
7648580bdb
Don't try protecting page 0; it seems that BIOS writers now feel it's
...
appropriate to check for Windows95 by polling for state in low
memory, with fatal results.
Submitted by: rnordier@freebsd.org
1999-02-24 01:37:23 +00:00
dcs
ea6b709336
Bumb up loader's version.
...
Reviewed by: Michael Smith <msmith@freebsd.org>
1999-02-08 04:14:31 +00:00
rnordier
c84955e100
Check size of partition before using it.
1999-01-29 03:36:42 +00:00
rnordier
7332041031
Fix a couple of further bugs: missing argument to sprintf() and
...
"==" used for "=".
1999-01-25 23:07:02 +00:00
msmith
6f8753800c
Bleh. Missing 'unit =' doesn't help legacy num_ide_disks code.
...
PR: bin/9651
Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
1999-01-24 06:03:44 +00:00
msmith
d0d15b4eb8
Document root_disk_unit
1999-01-24 00:12:17 +00:00
msmith
1e566c5505
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
msmith
13b06fbe36
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
rnordier
8603959049
Fix read error not being detected.
1999-01-22 18:32:52 +00:00
rnordier
aa2df6372b
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
msmith
488523664e
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
rnordier
6edc8726f9
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
rnordier
192bb84877
Drop boot.help support.
1999-01-11 11:36:03 +00:00
msmith
527d380042
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
msmith
ea810b3ebb
Disable kzipping the loader; it seems to be breaking the aout-to-elf build
1999-01-10 20:20:27 +00:00
steve
01f82cbb96
Remove redundant line of code.
...
PR: 9364
Submitted by: Daniel C. Sobral <dcs@newsguy.com>
1999-01-10 18:22:23 +00:00
rnordier
7f3d245232
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
6f74dc01b4
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
msmith
48d88654f8
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
msmith
dc29b5609b
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
msmith
6ed8cbf467
Extend bd_print() so that it displays slices and partitions on disks.
1999-01-09 02:36:19 +00:00
peter
46c636cd84
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
msmith
18c1130833
Restore dependancy to build loader.help here
1999-01-04 01:28:46 +00:00
msmith
a344fa1d6d
Reenable generation of the loader.help file
1999-01-03 20:50:35 +00:00
abial
b3642b0f23
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
abial
75069f671c
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
msmith
fca47ff171
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
msmith
8b77bf750a
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
msmith
98e8c7d522
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
ache
c46111d079
unlocalize date
...
Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
1998-12-07 16:17:41 +00:00
rnordier
e625ce3562
Revise some comments and labels.
1998-12-05 11:58:33 +00:00
rnordier
3b5f1e1ac9
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
rnordier
2b7d69a8df
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
msmith
20e409b11b
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
jkh
c6de7d3383
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
rnordier
225b2f2541
Revise error messages.
1998-11-11 08:56:17 +00:00
rnordier
66796bdb7f
Prevent boot.config being parsed more than once.
1998-11-08 18:37:28 +00:00
rnordier
b8cddca3cd
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
rnordier
040db5b721
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
rnordier
b975f40fac
Make use of BIOS int 0x13 extensions configurable, and disabled
...
by default.
1998-11-05 20:52:25 +00:00
msmith
41affade8b
Turn off -g accidentally left in from testing.
1998-11-04 03:42:36 +00:00
jkh
0f99bfc6c0
Respect ${.OBJDIR} properly when looking for libficl.a
1998-11-04 02:36:18 +00:00
msmith
8c52bcabbc
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
msmith
7ff854a690
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
rnordier
459dfe3332
Revise a few comments.
1998-11-02 17:53:08 +00:00
rnordier
19bbd56b97
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
msmith
27a325f105
- 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
d53d7e4461
Fix an uninitialized variable in the `dangerously dedicated disk' case.
1998-10-30 07:15:52 +00:00
msmith
b7cb0214c9
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
msmith
45c6ebc96d
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
rnordier
25598ad6e0
Avoid interruptions while talking to keyboard controller.
1998-10-27 20:19:24 +00:00
rnordier
b845950ce7
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
msmith
2ca24369c0
Clean the ${BASE}.sym file as well.
1998-10-23 22:32:27 +00:00
msmith
15fb469d2d
Remove a debugging copy of offsetof() that snuck in.
1998-10-23 22:30:52 +00:00
msmith
0fc1f23a6a
Enable the PCI BIOS PnP enumerator.
1998-10-23 22:29:19 +00:00
msmith
186b62dab2
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
msmith
6149131893
PnP BIOS enumerator; mostly useful for hunting PnP devices that are supported
...
by the system BIOS rather than supporting ISA PnP.
1998-10-22 20:25:06 +00:00
msmith
2cb346f288
Add a dependancy on the BTX crt0 object
...
Add the biospnp handler to the pnp handler array
Drop some old debugging code
1998-10-22 20:23:58 +00:00
msmith
0d28177be8
Add biospnp.c
1998-10-22 20:23:15 +00:00
msmith
472b37dea8
Pop the return address off the stack before making a V86_CALLF call;
...
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)
1998-10-22 20:22:07 +00:00
msmith
238c591219
Bye-bye setdefs.
1998-10-21 20:11:03 +00:00
msmith
edf2081f84
- Enable PnP and ISA PnP code.
...
- 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
1998-10-21 20:10:33 +00:00
msmith
702529216c
Don't depend on being part of the kernel tree. If we are, use the kernel's
...
<machine> includes rather than the system's.
1998-10-21 20:07:57 +00:00
rnordier
f8807b8fc1
Make serial port, data format, and bps configurable.
1998-10-20 20:20:48 +00:00
rnordier
59abe72c15
Make configurable (a) whether to use int 0x13 extensions; (b) timeout
...
value. Ignore failure to update mbr sector. Disable interrupts while
using extended registers. Default to F1 not F2.
1998-10-19 19:13:53 +00:00
rnordier
d3a9e969df
Set BINMODE to 444.
1998-10-17 14:20:25 +00:00
rnordier
8671c8b39b
Fix some glitches in the input routine:
...
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).
1998-10-17 11:25:05 +00:00
rnordier
ce63af0fef
Having probed the keyboard, turn off the -P flag.
1998-10-17 10:35:15 +00:00
rnordier
638a858945
Treat all options as toggles (ie. -c -c is the same no -c). Since
...
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.
1998-10-17 09:50:09 +00:00
rnordier
19b83af292
biosboot compatibility fix:
...
If we have a boot.config command, display it.
1998-10-17 09:16:01 +00:00
rnordier
ebcd17d6c6
biosboot compatibility fix:
...
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.
1998-10-17 09:01:13 +00:00
rnordier
764f911a88
Fix path to sio.s
1998-10-15 22:08:13 +00:00
rnordier
0b71e4f0b7
Add serial, dual, and probe-keyboard support.
1998-10-15 20:04:21 +00:00
peter
d1bde99276
Get the last used address via a more conservative method, don't depend
...
on the module chain being in increasing address order.
1998-10-15 17:06:36 +00:00
rnordier
fa52c3954a
Activate boot2.
1998-10-14 20:40:56 +00:00
peter
5e3acbf57e
Try and get the sys/* and machine/* includes via relative paths. This
...
saves having to do a 'make includes' after touching any header file for
the boot code.
1998-10-14 07:08:16 +00:00
peter
0966fead52
Align to sizeof(long) rather than sizeof(int32_t). It needs to be
...
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).
1998-10-14 05:07:23 +00:00
rnordier
f844028be7
Fix btx include path.
1998-10-14 01:53:56 +00:00
rnordier
e4f3dfea8d
Include <bsd.prog.mk>. Add install target (to /boot for now).
1998-10-14 00:24:16 +00:00
rnordier
828b808519
Fix flow of control after directory listing; enable EDD support;
...
cosmetics.
1998-10-13 23:43:38 +00:00
rnordier
0cb607c6dc
Make v86.ctl default more explicit; simplify read error-handling;
...
twiddle.
1998-10-13 23:00:47 +00:00
rnordier
a168d3cb17
Adjust NDEV value.
...
Optimize reading of system time.
1998-10-13 22:17:05 +00:00
rnordier
4c49cf4675
Change to a 15-sector boot2.
...
Refine slice-handling.
1998-10-13 21:35:42 +00:00
rnordier
05e05b3c64
Don't use an absolute path to objcopy.
...
Noticed by: Scott Mace <smace@intt.org>
1998-10-13 18:29:18 +00:00
rnordier
38a0335208
Improve drive recognition and handling.
1998-10-13 17:41:06 +00:00
rnordier
c4aec13535
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
...
multiple 0xa5 slices; etc.
1998-10-12 21:16:26 +00:00
rnordier
e3811b3bae
This commit was generated by cvs2svn to compensate for changes in r40269,
...
which included commits to RCS files with non-trunk default branches.
1998-10-12 21:16:26 +00:00
rnordier
0a456c31da
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
...
multiple 0xa5 slices; etc.
1998-10-12 21:16:26 +00:00
rnordier
e0698462f3
Drop .MAKEFLAGS: hack.
1998-10-12 02:05:44 +00:00
rnordier
6924fedb20
Do without head and tail: they're pretty unnecessary here anyway.
1998-10-12 01:44:15 +00:00
rnordier
34a71608ef
Use rather than for linking. This allows the new rather
...
than stale version of libstand.a to be found.
After this change, the new boot code is apparently building correctly
in a make world.
1998-10-12 01:03:00 +00:00
rnordier
45d3f503c7
Override for ELF.
1998-10-11 12:59:40 +00:00
rnordier
acc5d22f1d
Override for ELF. Override .s.o suffix rule.
1998-10-11 11:27:48 +00:00
peter
9777d36292
Fix a warning that's been bugging me for ages.
1998-10-11 10:29:49 +00:00
peter
000dea089b
Only call vidc_init() once (unless forced).
...
Cosmetic change to the init-time character eater (like, make it increment
the index counter - if there's a problem, it would sit there in an infinite
loop instead of only running 10 times).
1998-10-11 10:07:52 +00:00
peter
ea08aa4013
Fix comconsole mode. The int 0x14 read and status commands were reversed.
...
Also, make sure we set %dx each time around otherwise the commands
suddenly start trying to work on things like com92 instead of com1.
Make sure comc_init() is only run once.
Cosmetic change to init-time character eater.
1998-10-11 10:05:13 +00:00
peter
2f4399a063
Warn that one of the DEBUG statements has a v86 recursion bug.
1998-10-11 10:01:55 +00:00
peter
8a8128b194
Fix comment to match code
1998-10-11 09:53:30 +00:00
rnordier
ff07c61cc9
Fix a typo.
...
Output another newline before invoking bootstrap.
1998-10-10 14:03:03 +00:00
rnordier
adfacacde6
Turn off the new /sys/boot stuff (except boot0) unless OBJFORMAT
...
is elf. (The BTX client must be ELF, though it is packaged as a.out
for compatibility.)
1998-10-09 23:30:16 +00:00
peter
cf0b734c3d
Attempt to at least align MODINFO_* blocks. IMHO, decoding this stuff
...
should be MD code since one day we'll have to recover pages from deleted
preload data. MI code can't be expected to know how to deal with pmap
internals, assuming it gets done via pmap that is. :-)
1998-10-09 23:24:55 +00:00
peter
259638944d
Turn symbol table info passing back on, although it's probably not
...
particularly useful in this form. KLD can deal with it much better.
setenv kernelname moved earlier.
1998-10-09 23:22:30 +00:00
peter
aa0de1fb18
Remove kernelname setenv, the common code does it.
...
Use the metadata for symtab pointers, mainly to keep it common with
elf_freebsd.c.
1998-10-09 23:20:47 +00:00
rnordier
017fa2eb67
Get this building as a.out or ELF.
...
With thanks to: jdp
1998-10-09 17:19:51 +00:00
msmith
ac6a24ba47
Remove some debugging code.
...
Do a much better job of DWIM with partial device specifications.
Fix the module metadata build process, which was completely broken.
Use a larger read buffer when copying large objects in; this
improves performance marginally and will avoid flushning any small caches
we might choose to implement.
1998-10-09 07:11:19 +00:00
peter
e21834764b
Fix that pesky boot aguments parsing bug. (I think :-)
1998-10-07 10:55:46 +00:00
msmith
aaa2a6fba9
Request the flags back when checking for keyboard status.
...
Submitted by: rnordier
1998-10-07 07:34:31 +00:00
msmith
29868f7f79
Enable the DOS filesystem. NOTE: you will have to rebuild libstand in
...
order to be able to build again.
1998-10-07 02:39:32 +00:00
msmith
87bb4f6f57
- Drain the keyboard buffer when initialising.
...
- Be pedantic about the return from int 16 fn 01.
1998-10-07 02:39:06 +00:00
msmith
9d7a6d77c8
bootinfo.c
...
Strip any device name information from the kernel name
before passing it in.
biosdisk.c
Be more strict about matching device names to slice entries.
Only allow unsliced syntax on unsliced disks.
1998-10-06 07:27:05 +00:00
rnordier
484920ce83
Fix for "get base memory" bug found and mostly fixed by Mike.
1998-10-06 07:15:35 +00:00
msmith
723e5c6a84
The BIOS memory size is only a word. Some BIOSsen have garbage in the other
...
16 bits we were reading here, causing loss of arguments.
1998-10-06 06:13:36 +00:00
msmith
1a62a98115
Build boot0 as well.
1998-10-06 06:12:55 +00:00
rnordier
57f6784e78
Install in /boot.
1998-10-05 19:20:36 +00:00
rnordier
e5d9330f4d
boot0 is a booteasy (boot manager) workalike with EDD support.
1998-10-05 10:08:37 +00:00
rnordier
e2e5ad22f0
This commit was generated by cvs2svn to compensate for changes in r39973,
...
which included commits to RCS files with non-trunk default branches.
1998-10-05 10:08:37 +00:00
rnordier
dd5f9d7739
Adjust setting of argument pointer for BTX 0.87.
1998-10-04 21:15:45 +00:00
rnordier
93bf58f69c
Allocate space for storing of arguments at the end of conventional
...
memory.
1998-10-04 21:14:33 +00:00
msmith
c53904ec56
Don't include ELF symbol information yet - it causes the ELF DDB to
...
explode.
1998-10-04 20:58:46 +00:00
msmith
2e5ae0a020
Improve the handling of the initial bootdev value from the previous loader.
...
Remove some unused code.
1998-10-04 09:12:54 +00:00
msmith
19c8db49e0
biosdisk.c
...
Allocate space for, and copy, NDOSPART slice entries from the
MBR, not just one. Add some extra debugging while we're at it.
elf_freebsd.c
Initialise the symbol table start/end pointers in case we don't
have them.
1998-10-04 09:12:15 +00:00
rnordier
b21275d877
Missing newline in heap command display.
...
Noticed by: jkh
1998-10-03 18:27:50 +00:00
rnordier
c59c5c0235
For system calls, reboot without prompting; for exceptions, display
...
message and await reset.
1998-10-03 18:05:12 +00:00
rnordier
5638c62ba7
Map all BTX system pages readable at ring 3.
...
This resolves the firmware problem first raised in connection
with PR 8105, although unrelated.
1998-10-03 14:33:06 +00:00
rnordier
9d6dbb0c2e
bootinfo bi_vesa no longer exists.
1998-10-03 14:13:30 +00:00
msmith
6d472197ec
Consolidate the bootinfo-loading code, greatly simplifying the _exec
...
functions.
1998-10-02 20:53:17 +00:00
msmith
f72bb5109c
Fix an egregious precedence bug.
1998-10-02 20:52:26 +00:00
msmith
bcb24d714a
Set $currdev according to our best guess at the BIOS device that the previous
...
bootstrap loaded us from.
1998-10-02 16:33:43 +00:00
msmith
a7e19924ad
aout_freebsd.c
...
Use bd_getdev() to work out a dev_t for the root device.
Allow $rootdev to override $currdev as the root device.
biosdisk.c
Save the slice table and disklabel when opening a disk.
Add bd_getdev(), which attempts to return a dev_t corresponding
to a given device. Cases which it still doesn't get right:
- The inevitable da-when-wd-also-exists
- Disks with no slice table (the slice number is not set correctly)
The first is difficult to get right, the second will be
fixed in an upcoming commit.
comconsole.c
vidconsole.c
getchar() should return an 8-bit value; some BIOSsen pack extra
information in %eax.
libi386.h
Remove some stale prototypes, add new ones.
1998-10-02 16:32:45 +00:00
msmith
4e9232983b
Mark exit() as __attribute__((__noreturn__))
1998-10-02 16:22:54 +00:00
peter
a79bd7a693
First shot at loading elf symbols. Things are a bit strange because
...
of the ..umm.. "wierd" way binutils lays out the file. The section
headers are nearly at the end of the file and this is a problem when
loading from a .gz file which can't seek backwards (or has a limited
reverse seek, ~2K from memory).
This is intended to be compatable with the ddb/db_elf.c code and the
alpha/libalpha/elf_freebsd.c layout. I've studied these (which are NetBSD
derived) but did it a bit differently. Naturally the process is similar
since it's supposed to end up with the same result.
1998-10-02 08:04:56 +00:00
jkh
5b11e52736
Override STRIP so installation doesn't try to strip the loader.
1998-10-01 09:57:09 +00:00
peter
67498e0651
Make 'make install' do something that might be useful.
1998-09-30 22:37:47 +00:00
peter
2a56913e23
Stop libi386.a from being installed..
1998-09-30 22:36:45 +00:00
peter
3dd2274e4f
Turn on i386-elf
1998-09-30 19:48:42 +00:00
peter
aa07eb9f84
i386 ELF loader startup backend. On an ELF kernel booted with the 3-stage
...
bootblocks, the kernel shows up as the primary module:
[3:24am]~-100# kldstat
Id Refs Address Size Name
1 1 0xf0100000 ff00000 /kernel
^^^^ oops.. :-)
Based heavily on aout_freebsd.c. Hmm.. There's so much in common that
these could probably be combined and just check the metadata to see which
format it is.
1998-09-30 19:48:09 +00:00
peter
736cc28307
Save booted kernel name. Cosmetic cleanups.
1998-09-30 19:42:06 +00:00
peter
3a7eff1835
Fix typos.. The vector for "int 0x12" (get base mem) is not written in
...
hex as "0x1a". :-)
Fix a comment about the extended memory checks, that's int 0x15.
1998-09-30 19:41:07 +00:00