msmith
2dd69edc85
Reserve some space for the stack in the region we recover from the initial
...
bootloader.
Submitted by: dfr
1998-10-24 00:31:21 +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
973bf97487
Export an interface for presetting the ISA PnP read port address.
...
Make the EISA ID formatter generally available
1998-10-22 20:20:51 +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
msmith
880061ca43
Make ISA PnP work. This successfully enumerates as many ISA devices as I
...
can fit into my test machine.
- Move to using STAILQs rather than ad-hoc singly-linked lists.
- Use a mostly procedural interface to the PnP information. This
improves data-hiding.
Implement a new linker-set technique (currently on i386 only but should work
on Alpha as well). This is a good candidate for replacing the current
gensetdefs cruft completely.
1998-10-21 20:07:05 +00:00
rnordier
f8807b8fc1
Make serial port, data format, and bps configurable.
1998-10-20 20:20:48 +00:00
msmith
387d413043
Hex constants should only have one '0x' prefix.
1998-10-20 02:43:28 +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
dfr
5e48f3a376
Reclaim the 48k used by the first bootstrap stage by adding it to the malloc
...
pool.
1998-10-19 09:12:41 +00:00
dfr
11bd3a0836
Rename boot2 to loader.
1998-10-18 19:05:07 +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
peter
37e9ac7609
Load the first page of the file and use the headers in it. This should
...
avoid the need to seek back to offset zero which is causing trouble on
the Alpha with a gzipped kernel.
1998-10-17 03:06:38 +00:00
msmith
0250d0a60a
Turn of disk debugging by default (suppress annoying "partition marked as
...
unused" diagnostic on floppies).
1998-10-16 19:26:11 +00:00
peter
a8354e7057
"fix" the gzipped kernel load problem by having the loader check that it
...
can seek back to the first PT_LOAD and doing a close/reopen if it cannot.
This is because the first PT_LOAD section includes the ELF headers.
This fixes gzipped kernels on the i386, it should solve mike's problem
for the Alpha.
1998-10-16 03:04:15 +00:00
rnordier
764f911a88
Fix path to sio.s
1998-10-15 22:08:13 +00:00
dfr
69efe6cf4e
Change some printfs so that ELF_VERBOSE prints meaningful values on the alpha.
1998-10-15 21:56:47 +00:00
dfr
8c5d5288fb
Fix the bootinfo so that the right values actual make it into the kernel.
1998-10-15 21:55:58 +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
1a9a80c3f7
Link fdboot to boot1 as well.
1998-10-14 13:19:52 +00:00
peter
a6df719969
Initial attempt to update the Alpha loader and kernel to use the machine
...
independent elf loader and have access to kld modules. Jordan and I were
not sure how to create boot floppies, and the things we tried just made
SRM laugh in our faces - but it was upset at boot1 which was not touched
by these changes. Essentially this has been untested. :-(
What this does is to steal the last three slots from the nine spare longs
in the bootinfo_v1 struct to pass the module base pointer through.
The startup code now to set up and fills in the module and environment
structures, hopefully close enough to the i386 layout to be able to use
the same kernel code. We now pass though the updated end of the kernel
space used, rather than _end. (like the i386).
If this does not work, it needs to be beaten into shape pronto. Otherwise
it should be backed out before 3.0.
Pre-approved in principle by: dfr
1998-10-14 09:53:25 +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
peter
b059e72205
Tweak the output one more time again. The kernel or module pathname
...
is useful, and usually fits all on one line with the load sizes.
1998-10-14 00:41:17 +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
peter
f266373595
Make the ELF load messages cleaner.
1998-10-13 09:25:27 +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