Mike Smith
13aedae3d7
Add biospnp.c
1998-10-22 20:23:15 +00:00
Mike Smith
f41c619d3d
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
Mike Smith
b259863db2
Bye-bye setdefs.
1998-10-21 20:11:03 +00:00
Mike Smith
d8ef941c2f
- 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
Mike Smith
c90625d230
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
Robert Nordier
1a8efde980
Make serial port, data format, and bps configurable.
1998-10-20 20:20:48 +00:00
Robert Nordier
4e108bf052
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
Robert Nordier
f59f5db544
Set BINMODE to 444.
1998-10-17 14:20:25 +00:00
Robert Nordier
ae99ddc79e
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
Robert Nordier
918ddbed16
Having probed the keyboard, turn off the -P flag.
1998-10-17 10:35:15 +00:00
Robert Nordier
93d51dcaf9
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
Robert Nordier
3044a22097
biosboot compatibility fix:
...
If we have a boot.config command, display it.
1998-10-17 09:16:01 +00:00
Robert Nordier
7fa25d805a
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
Robert Nordier
67ac585edf
Fix path to sio.s
1998-10-15 22:08:13 +00:00
Robert Nordier
da55c91100
Add serial, dual, and probe-keyboard support.
1998-10-15 20:04:21 +00:00
Peter Wemm
f03d6f87b3
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
Robert Nordier
898adc1c96
Activate boot2.
1998-10-14 20:40:56 +00:00
Peter Wemm
eb9022e791
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 Wemm
2a26e9ea83
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
Robert Nordier
ee2e4f9b32
Fix btx include path.
1998-10-14 01:53:56 +00:00
Robert Nordier
59ea046e5d
Include <bsd.prog.mk>. Add install target (to /boot for now).
1998-10-14 00:24:16 +00:00
Robert Nordier
757ee5cca9
Fix flow of control after directory listing; enable EDD support;
...
cosmetics.
1998-10-13 23:43:38 +00:00
Robert Nordier
b2848194f5
Make v86.ctl default more explicit; simplify read error-handling;
...
twiddle.
1998-10-13 23:00:47 +00:00
Robert Nordier
c71b9b3c24
Adjust NDEV value.
...
Optimize reading of system time.
1998-10-13 22:17:05 +00:00
Robert Nordier
fd4afc6487
Change to a 15-sector boot2.
...
Refine slice-handling.
1998-10-13 21:35:42 +00:00
Robert Nordier
8f65b6a695
Don't use an absolute path to objcopy.
...
Noticed by: Scott Mace <smace@intt.org>
1998-10-13 18:29:18 +00:00
Robert Nordier
0ad50c1c9d
Improve drive recognition and handling.
1998-10-13 17:41:06 +00:00
Robert Nordier
4d8eda2252
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
...
multiple 0xa5 slices; etc.
1998-10-12 21:16:26 +00:00
Robert Nordier
dfce019974
Drop .MAKEFLAGS: hack.
1998-10-12 02:05:44 +00:00
Robert Nordier
7870a52598
Do without head and tail: they're pretty unnecessary here anyway.
1998-10-12 01:44:15 +00:00
Robert Nordier
36e85d353d
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
Robert Nordier
1339399694
Override for ELF.
1998-10-11 12:59:40 +00:00
Robert Nordier
10806461a7
Override for ELF. Override .s.o suffix rule.
1998-10-11 11:27:48 +00:00
Peter Wemm
7532a55a62
Fix a warning that's been bugging me for ages.
1998-10-11 10:29:49 +00:00
Peter Wemm
7d9cbdec8f
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 Wemm
a1c1935fa8
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 Wemm
1206a4f594
Warn that one of the DEBUG statements has a v86 recursion bug.
1998-10-11 10:01:55 +00:00
Peter Wemm
00fe329527
Fix comment to match code
1998-10-11 09:53:30 +00:00
Robert Nordier
0def18d819
Fix a typo.
...
Output another newline before invoking bootstrap.
1998-10-10 14:03:03 +00:00
Robert Nordier
91284f875f
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 Wemm
7deb2dabef
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 Wemm
1d59e49683
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 Wemm
f62f10b275
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
Robert Nordier
4025ae9d2a
Get this building as a.out or ELF.
...
With thanks to: jdp
1998-10-09 17:19:51 +00:00
Mike Smith
cab57be9ae
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 Wemm
e3de88f4ff
Fix that pesky boot aguments parsing bug. (I think :-)
1998-10-07 10:55:46 +00:00
Mike Smith
ee4f7b62a0
Request the flags back when checking for keyboard status.
...
Submitted by: rnordier
1998-10-07 07:34:31 +00:00
Mike Smith
0bab8c3243
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
Mike Smith
0f7d15efd8
- Drain the keyboard buffer when initialising.
...
- Be pedantic about the return from int 16 fn 01.
1998-10-07 02:39:06 +00:00
Mike Smith
afcd516b82
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