jhb
1bc7f5bab2
- Inline all the functions that are only called once. This results in a
...
savings of 68 bytes in boot2.
- Also add a comment warning that you can't remove the empty exit()
function.
2000-07-06 01:51:27 +00:00
jhb
037bed528d
Doh. The disklabel is not 0x200 bytes of zeros, but it is 0x200 bytes long.
2000-07-06 00:29:40 +00:00
jhb
06878d47d6
Clarify the comments in here a bit. The first sector of boot2 is not just
...
zeros, it is actually the disklabel itself. boot2.ldr is simply a
placeholder in the boot2 binary.
2000-07-06 00:22:50 +00:00
jhb
cf55ba84f4
Add in support for EDD to support large disks via LBA. This uses a
...
method similar to that of the loader to avoid potentially breaking older
drives in that we only use EDD if the desired cylinder is > 1023.
2000-06-26 22:57:16 +00:00
jhb
3cb8680a56
Comment this bad boy. Hopefully the next person that comes along won't
...
have to spend a few hours reading the code to figure all this out.
2000-06-19 22:50:46 +00:00
ru
b2d0212ee6
Treat \t and \n inside /boot.config as whitespaces.
...
PR: 19215
2000-06-13 13:07:53 +00:00
jhb
5053ee0d6c
Clean up all of the 16-bit assembly code in the x86 bootstrap to work
...
with the new binutils. Now that we have a decent assembler, all the old
m4 macros are no longer needed. Instead, straight assembly can be used
since as(1) now understands 16-bit addressing, branches, etc. Also,
several bugs have been fixed in as(1), allowing boot0.s to be further
cleaned up.
2000-05-23 12:18:49 +00:00
jhb
2ac8d6674b
Add a missing dependency: boot2 depends on the BTX kernel.
2000-04-11 14:49:13 +00:00
ru
4b1fee2e59
Support the new ata(4) syntax, while providing backward compatibility for wd(4).
...
Reviewed by: jkh, msmith, sos
Approved by: jkh
2000-02-09 19:23:46 +00:00
obrien
48ebb77e0e
Add -fdata-sections, which is a new GCC 2.95 optimization. Remove
...
-fschedule-insns as it wasn't such a big win with 2.95 after all.
Add the *BIG* win "-mpreferred-stack-boundary=2" optimiztion submitted by
Dima. GCC 2.95 ensures the stack frame is always properly [opitimally]
aligned by surrounding every function call by code simular to
"addl $-12, %esp" / "addl $12, %esp". Here we need the reduction in space,
with speed not an issue.
1999-11-15 04:23:40 +00:00
obrien
b3fde7d733
Return this file to its pre-spammed version. Thanks to some new compiler
...
optimizations, we can go from 3 bytes free with the spammed version, to
279 bytes free with the full version.
1999-11-14 22:17:06 +00:00
obrien
b6bb24fced
Enter complier upgrade mode again. We need to cut 169 bytes from this:
...
Remove some printf() calls, reduce size of buffers, and abbreviate
some strings.
Hopefully the boot people will fix this spamage after the cut over to
Gcc 2.95.2 as the system compiler.
1999-11-14 00:41:54 +00:00
obrien
aaa5ed29fd
Turn on the -fforce-addr and -fschedule-insns optimizations. Adding
...
either one gives us an additional 32 bytes of additional space available
when using EGCS 1.1.2. With GCC 2.95.2 -fforce-addr gives us 12 more bytes,
and adding -fschedule-insns gives us an additional 4 bytes.
1999-11-13 23:08:46 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
rnordier
c1740a7c66
Reintroduce LBA (cyl > 1023) support in the bootblocks, enabled by
...
means of a build option.
1999-07-20 01:19:23 +00:00
rnordier
f3313ef5a0
Fix use of e_phoff in place of e_phnum.
1999-06-19 20:50:38 +00:00
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
rnordier
c84955e100
Check size of partition before using it.
1999-01-29 03:36:42 +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
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
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
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
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
rnordier
f8807b8fc1
Make serial port, data format, and bps configurable.
1998-10-20 20:20:48 +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
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
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