Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/boot/i386/boot2/boot2.c

[BACK] Up to [FreeBSD] / src / sys / boot / i386 / boot2

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.88.2.11: download - view: text, markup, annotated - select for diffs
Thu Feb 9 16:54:06 2012 UTC (8 hours, 16 minutes ago) by bapt
Branches: RELENG_8
Diff to: previous 1.88.2.10: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.10: +4 -2 lines
SVN rev 231288 on 2012-02-09 16:54:06Z by bapt

MFH r226506: Look for /boot/config in addition to /boot.config

Approved by:	des (mentor)

Revision 1.97.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 9 16:53:51 2012 UTC (8 hours, 16 minutes ago) by bapt
Branches: RELENG_9
Diff to: previous 1.97.2.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.2.2: +4 -2 lines
SVN rev 231287 on 2012-02-09 16:53:51Z by bapt

MFH r226506: Look for /boot/config in addition to /boot.config

Approved by:	des (mentor)

Revision 1.88.2.10: download - view: text, markup, annotated - select for diffs
Wed Jan 4 16:43:08 2012 UTC (5 weeks, 1 day ago) by jhb
Branches: RELENG_8
Diff to: previous 1.88.2.9: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.9: +0 -3 lines
SVN rev 229502 on 2012-01-04 16:43:08Z by jhb

MFC 226746:
Consolidate duplicate definitions of V86_CY() and V86_ZR() which check for
the carry and zero flags being set, respectively, in <btxv86.h> and use
them throughout the x86 boot code.

Revision 1.97.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 4 16:39:39 2012 UTC (5 weeks, 1 day ago) by jhb
Branches: RELENG_9
Diff to: previous 1.97.2.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.2.1: +0 -3 lines
SVN rev 229501 on 2012-01-04 16:39:39Z by jhb

MFC 226746:
Consolidate duplicate definitions of V86_CY() and V86_ZR() which check for
the carry and zero flags being set, respectively, in <btxv86.h> and use
them throughout the x86 boot code.

Revision 1.97.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.97.2.1: preferred, colored; next MAIN 1.97.2.2: preferred, colored
Changes since revision 1.97.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)

Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Oct 25 19:45:12 2011 UTC (3 months, 2 weeks ago) by jhb
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +0 -3 lines
SVN rev 226746 on 2011-10-25 19:45:12Z by jhb

Consolidate duplicate definitions of V86_CY() and V86_ZR() which check for
the carry and zero flags being set, respectively, in <btxv86.h> and use
them throughout the x86 boot code.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Oct 18 09:46:52 2011 UTC (3 months, 3 weeks ago) by des
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -2 lines
SVN rev 226506 on 2011-10-18 09:46:52Z by des

Look for /boot/config in addition to /boot.config, with the former taking
precedence over the latter if it exists.

MFC after:	3 weeks

Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)

Revision 1.88.2.9: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:29:11 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.8: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.8: +10 -10 lines
SVN rev 224440 on 2011-07-26 13:29:11Z by marius

MFC: r220389, r220392

- Mark getc() as inline, this has no effect on gcc but helps clang.
- Move getc() body before xgetc() so gcc does not emit a warning about function
  having no body.

Approved by:    jhb

Revision 1.83.2.13: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:29:11 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.12: preferred, colored; branchpoint 1.83: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.12: +10 -10 lines
SVN rev 224441 on 2011-07-26 13:29:11Z by marius

MFC: r220389, r220392

- Mark getc() as inline, this has no effect on gcc but helps clang.
- Move getc() body before xgetc() so gcc does not emit a warning about function
  having no body.

Approved by:    jhb

Revision 1.83.2.12: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:26:51 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.11: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.11: +16 -18 lines
SVN rev 224439 on 2011-07-26 13:26:51Z by marius

MFC: r219452

Some more shrinking.

   o    bunch of variables are turned into uint8_t

   o    initial setting of namep[] in lookup() is removed
        as it's only overwritten a few lines down

   o    kname is explicitly initialized in main() as BSS
        in boot2 is not zeroed

   o    the setting and reading of "fmt" in load() is removed

   o    buf in printf() is made static to save space

Reviewed by:    jhb
Tested by:      me and Fabian Keil <freebsd-listen fabiankeil de>

Revision 1.88.2.8: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:26:46 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.7: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.7: +16 -18 lines
SVN rev 224438 on 2011-07-26 13:26:46Z by marius

MFC: r219452

Some more shrinking.

   o    bunch of variables are turned into uint8_t

   o    initial setting of namep[] in lookup() is removed
        as it's only overwritten a few lines down

   o    kname is explicitly initialized in main() as BSS
        in boot2 is not zeroed

   o    the setting and reading of "fmt" in load() is removed

   o    buf in printf() is made static to save space

Reviewed by:    jhb
Tested by:      me and Fabian Keil <freebsd-listen fabiankeil de>

Revision 1.88.2.7: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:24:52 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.6: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.6: +8 -25 lines
SVN rev 224437 on 2011-07-26 13:24:52Z by marius

MFC: r219186

This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

Revision 1.83.2.11: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:24:52 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.10: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.10: +8 -25 lines
SVN rev 224436 on 2011-07-26 13:24:52Z by marius

MFC: r219186

This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

Revision 1.83.2.10: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:23:26 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.9: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.9: +1 -1 lines
SVN rev 224435 on 2011-07-26 13:23:26Z by marius

MFC: r218926

In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
RBX_*) assume at least a 32 bit variable.

Submitted by:	rdivacky

Revision 1.88.2.6: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:23:25 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.5: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.5: +1 -1 lines
SVN rev 224434 on 2011-07-26 13:23:25Z by marius

MFC: r218926

In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
RBX_*) assume at least a 32 bit variable.

Submitted by:	rdivacky

Revision 1.83.2.9: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:22:13 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.8: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.8: +1 -18 lines
SVN rev 224433 on 2011-07-26 13:22:13Z by marius

MFC: r218745

Remove reading of symbols from a.out loaded files.  Since we are tight
on space for clang and a.out support is only needed for /boot/loader,
they are excess bytes that serve no useful purpose other than to
support really old kernels (FreeBSD < 3.2 or so).  Prefer clang
support over support for these old kernels and remove this code.  We
gain about 100 bytes of space this way.

Reviewed by:	rdivacky@

Revision 1.88.2.5: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:22:12 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.4: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.4: +1 -18 lines
SVN rev 224432 on 2011-07-26 13:22:12Z by marius

MFC: r218745

Remove reading of symbols from a.out loaded files.  Since we are tight
on space for clang and a.out support is only needed for /boot/loader,
they are excess bytes that serve no useful purpose other than to
support really old kernels (FreeBSD < 3.2 or so).  Prefer clang
support over support for these old kernels and remove this code.  We
gain about 100 bytes of space this way.

Reviewed by:	rdivacky@

Revision 1.88.2.4: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:19:57 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.3: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.3: +2 -2 lines
SVN rev 224431 on 2011-07-26 13:19:57Z by marius

MFC: r214210

Avoid using memcpy() for copying 32bit chunks. This shrinks
the resulting code a little.

Approved by:    rpaulo (mentor)
Reviewed by:    jhb

Revision 1.83.2.8: download - view: text, markup, annotated - select for diffs
Tue Jul 26 13:19:57 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.7: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.7: +2 -2 lines
SVN rev 224430 on 2011-07-26 13:19:57Z by marius

MFC: r214210

Avoid using memcpy() for copying 32bit chunks. This shrinks
the resulting code a little.

Approved by:    rpaulo (mentor)
Reviewed by:    jhb

Revision 1.88.2.3: download - view: text, markup, annotated - select for diffs
Mon Jul 25 21:44:35 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_8
Diff to: previous 1.88.2.2: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.2: +4 -3 lines
SVN rev 224406 on 2011-07-25 21:44:35Z by marius

MFC: r218713, r218716

Apply a few small optimizations to boot2's code, to make it shrink a
little further.  This gets us further on the way to be able to build it
successfully with clang.  Using in-tree gcc, this shrinks boot2.bin with
60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes.

Submitted by:	rdivacky
Reviewed by:	imp

Revision 1.83.2.7: download - view: text, markup, annotated - select for diffs
Mon Jul 25 21:41:46 2011 UTC (6 months, 2 weeks ago) by marius
Branches: RELENG_7
Diff to: previous 1.83.2.6: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.6: +4 -3 lines
SVN rev 224405 on 2011-07-25 21:41:46Z by marius

MFC: r218713, r218716

Apply a few small optimizations to boot2's code, to make it shrink a
little further.  This gets us further on the way to be able to build it
successfully with clang.  Using in-tree gcc, this shrinks boot2.bin with
60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes.

Submitted by:	rdivacky
Reviewed by:	imp

Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Apr 6 17:54:12 2011 UTC (10 months ago) by rdivacky
Branches: MAIN
CVS tags: RELENG_9_BP
Branch point for: RELENG_9
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +9 -9 lines
SVN rev 220392 on 2011-04-06 17:54:12Z by rdivacky

Move getc() body before xgetc() so gcc does not emit a warning about function
having no body.

Approved by:    jhb

Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Apr 6 17:29:40 2011 UTC (10 months ago) by rdivacky
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +1 -1 lines
SVN rev 220389 on 2011-04-06 17:29:40Z by rdivacky

Mark getc() as inline, this has no effect on gcc but helps clang.

Approved by:    jhb

Revision 1.95: download - view: text, markup, annotated - select for diffs
Thu Mar 10 16:40:13 2011 UTC (11 months ago) by rdivacky
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +16 -18 lines
SVN rev 219452 on 2011-03-10 16:40:13Z by rdivacky

Some more shrinking.

   o    bunch of variables are turned into uint8_t

   o    initial setting of namep[] in lookup() is removed
        as it's only overwritten a few lines down

   o    kname is explicitly initialized in main() as BSS
        in boot2 is not zeroed

   o    the setting and reading of "fmt" in load() is removed

   o    buf in printf() is made static to save space

Reviewed by:    jhb
Tested by:      me and Fabian Keil <freebsd-listen fabiankeil de>

Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Mar 2 18:53:12 2011 UTC (11 months, 1 week ago) by rdivacky
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +8 -25 lines
SVN rev 219186 on 2011-03-02 18:53:12Z by rdivacky

This patch shrinks boot2 a little.

o    It switches kname to be just a pointer instead of an array
     thus avoiding a couple of memcpy()s.

o    It changes ioctl to unsigned from uint8_t.

o    It changes the second keyhit limit to 3 seconds from 5
     so that constant propagation can take place.

o    It changes the ticks overflow computation as suggested by bde@.

o    It removes bi_basemem/bi_extmem/bi_memsizes_valid setting from
     bootinfo as it is unused.

Reviewed by: jhb

Revision 1.93: download - view: text, markup, annotated - select for diffs
Mon Feb 21 19:46:02 2011 UTC (11 months, 2 weeks ago) by dim
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +1 -1 lines
SVN rev 218926 on 2011-02-21 19:46:02Z by dim

In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable
from uint16_t back to uint32_t.  The actual option bitmasks (RB_* and
RBX_*) assume at least a 32 bit variable.

Submitted by:	rdivacky

Revision 1.92: download - view: text, markup, annotated - select for diffs
Wed Feb 16 18:05:10 2011 UTC (11 months, 3 weeks ago) by imp
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +1 -18 lines
SVN rev 218745 on 2011-02-16 18:05:10Z by imp

Remove reading of symbols from a.out loaded files.  Since we are tight
on space for clang and a.out support is only needed for /boot/loader,
they are excess bytes that serve no useful purpose other than to
support really old kernels (FreeBSD < 3.2 or so).  Prefer clang
support over support for these old kernels and remove this code.  We
gain about 100 bytes of space this way.

Reviewed by:	rdivacky@

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Feb 15 20:18:52 2011 UTC (11 months, 3 weeks ago) by dim
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -3 lines
SVN rev 218713 on 2011-02-15 20:18:52Z by dim

Apply a few small optimizations to boot2's code, to make it shrink a
little further.  This gets us further on the way to be able to build it
successfully with clang.  Using in-tree gcc, this shrinks boot2.bin with
60 bytes, the in-tree clang shaves off 72 bytes, and ToT clang 84 bytes.

Submitted by:	rdivacky
Reviewed by:	imp

Revision 1.83.2.6.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.83.2.6: preferred, colored; next MAIN 1.83.2.7: preferred, colored
Changes since revision 1.83.2.6: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.88.2.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.88.2.2: preferred, colored; next MAIN 1.88.2.3: preferred, colored
Changes since revision 1.88.2.2: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)

Revision 1.90: download - view: text, markup, annotated - select for diffs
Fri Oct 22 18:07:21 2010 UTC (15 months, 2 weeks ago) by rdivacky
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +2 -2 lines
SVN rev 214210 on 2010-10-22 18:07:21Z by rdivacky

Avoid using memcpy() for copying 32bit chunks. This shrinks
the resulting code a little.

Approved by:    rpaulo (mentor)
Reviewed by:    jhb

Revision 1.88.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 7 18:14:59 2010 UTC (17 months ago) by delphij
Branches: RELENG_8
CVS tags: RELENG_8_2_BP
Branch point for: RELENG_8_2
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.1: +1 -1 lines
SVN rev 212301 on 2010-09-07 18:14:59Z by delphij

MFC r205662 + r212066 (except efi part):

Our boot loader is capable of booting both i386 and amd64 kernels so
call it "x86" instead of "i386".

Revision 1.83.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 7 18:14:50 2010 UTC (17 months ago) by delphij
Branches: RELENG_7
CVS tags: RELENG_7_4_BP
Branch point for: RELENG_7_4
Diff to: previous 1.83.2.5: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.5: +1 -1 lines
SVN rev 212300 on 2010-09-07 18:14:50Z by delphij

MFC r205662 + r212066 (except efi part):

Our boot loader is capable of booting both i386 and amd64 kernels so
call it "x86" instead of "i386".

Revision 1.88.2.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.88.2.1: preferred, colored; next MAIN 1.88.2.2: preferred, colored
Changes since revision 1.88.2.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Mar 26 01:30:53 2010 UTC (22 months, 2 weeks ago) by delphij
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +1 -1 lines
SVN rev 205662 on 2010-03-26 01:30:53Z by delphij

Our boot loader is capable of booting both i386 and amd64 kernels so
call it "x86" instead of "i386".

Suggested by:	jhb in response to Alexander Best's loader proposal
MFC after:	1 month

Revision 1.83.2.5.6.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.83.2.5: preferred, colored; next MAIN 1.83.2.6: preferred, colored
Changes since revision 1.83.2.5: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.88.2.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.88.2.1: preferred, colored; next MAIN 1.88.2.2: preferred, colored
Changes since revision 1.88.2.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)

Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_1, RELENG_8_0
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)

Revision 1.83.2.5.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.83.2.5: preferred, colored; next MAIN 1.83.2.6: preferred, colored
Changes since revision 1.83.2.5: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.83.2.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.83.2.5: preferred, colored; next MAIN 1.83.2.6: preferred, colored
Changes since revision 1.83.2.5: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.72.2.10.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.72.2.10: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.10: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.28.2.8: download - view: text, markup, annotated - select for diffs
Fri Aug 15 19:34:02 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_4
Diff to: previous 1.28.2.7: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.7: +4 -2 lines
SVN rev 181767 on 2008-08-15 19:34:02Z by jhb

MFC: Initialize the vm86 structure to a known-good state, specifically
eflags.

Revision 1.72.2.10: download - view: text, markup, annotated - select for diffs
Fri Aug 15 19:31:37 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_4_BP
Branch point for: RELENG_6_4
Diff to: previous 1.72.2.9: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.9: +4 -2 lines
SVN rev 181766 on 2008-08-15 19:31:37Z by jhb

MFC: Initialize the vm86 structure to a known-good state, specifically
eflags.

Revision 1.83.2.5: download - view: text, markup, annotated - select for diffs
Fri Aug 15 19:31:12 2008 UTC (3 years, 5 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP
Branch point for: RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.83.2.4: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.4: +4 -2 lines
SVN rev 181765 on 2008-08-15 19:31:12Z by jhb

MFC: Initialize the vm86 structure to a known-good state, specifically
eflags.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Aug 8 19:41:20 2008 UTC (3 years, 6 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_8_BP
Branch point for: RELENG_8
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +4 -2 lines
SVN rev 181436 on 2008-08-08 19:41:20Z by jhb

- Initialize the vm86 structure to a known-good state.  Specifically, always
  set the %eflags used during a BIOS call via BTX to 0x202.  Previously
  the flags field was uninitialized garbage, and thus it was "random" if
  interrupts were enabled or not during BIOS calls.
- Use constants from <machine/psl.h> for fields in %eflags.

MFC after:	3 days

Revision 1.72.2.9: download - view: text, markup, annotated - select for diffs
Fri Jul 11 15:50:09 2008 UTC (3 years, 7 months ago) by nyan
Branches: RELENG_6
Diff to: previous 1.72.2.8: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.8: +1 -1 lines
SVN rev 180450 on 2008-07-11 15:50:09Z by nyan

MFC: r180145

  Fix off-by-one error.

Revision 1.83.2.4: download - view: text, markup, annotated - select for diffs
Fri Jul 11 15:43:07 2008 UTC (3 years, 7 months ago) by nyan
Branches: RELENG_7
Diff to: previous 1.83.2.3: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.3: +1 -1 lines
SVN rev 180449 on 2008-07-11 15:43:07Z by nyan

MFC: r180145

  Fix off-by-one error.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Jul 1 11:18:51 2008 UTC (3 years, 7 months ago) by nyan
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +1 -1 lines
SVN rev 180145 on 2008-07-01 11:18:51Z by nyan

Fix off-by-one error.

MFC after:	1 week

Revision 1.72.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 17 18:04:59 2008 UTC (3 years, 10 months ago) by jhb
Branches: RELENG_6
Diff to: previous 1.72.2.7: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.7: +3 -2 lines
MFC: Display the correct /boot.config file contents after parsing it.

Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 17 18:04:40 2008 UTC (3 years, 10 months ago) by jhb
Branches: RELENG_7
Diff to: previous 1.83.2.2: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.2: +3 -2 lines
MFC: Display the correct /boot.config file contents after parsing it.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Feb 28 17:08:05 2008 UTC (3 years, 11 months ago) by jhb
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -2 lines
Rev 1.72 fixed a bug where if /boot.config changed the console its contents
weren't displayed on the new console.  However, the config string has been
altered as part of being parsed so we only display the first option.  Fix
this by saving a copy of /boot.config before parsing it and displaying the
saved copy after parsing.

MFC after:	1 week
PR:		i386/103972
Submitted by:	Alexandre Belloni  alexandre.belloni of netasq.com

Revision 1.72.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 8 21:31:53 2007 UTC (4 years, 3 months ago) by jhb
Branches: RELENG_6
CVS tags: RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3
Diff to: previous 1.72.2.6: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.6: +1 -0 lines
MFC: Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined.

Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 21:31:38 2007 UTC (4 years, 3 months ago) by jhb
Branches: RELENG_7
CVS tags: RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0
Diff to: previous 1.83.2.1: preferred, colored; branchpoint 1.83: preferred, colored
Changes since revision 1.83.2.1: +1 -0 lines
MFC: Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined.  This also effectively enables the use of the smaller cgbase()
in the arm/at91/boot2 loader.

Approved by:	re (kensmith)

Revision 1.72.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 1 18:20:36 2007 UTC (4 years, 3 months ago) by jhb
Branches: RELENG_6
Diff to: previous 1.72.2.5: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.5: +1 -1 lines
MFC: Slightly cleanup the 'bootdev' concept on x86.

Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 1 18:19:18 2007 UTC (4 years, 3 months ago) by jhb
Branches: RELENG_7
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +1 -1 lines
MFC: Slightly cleanup the 'bootdev' concept on x86.

Approved by:	re (kensmith)

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Oct 26 21:02:31 2007 UTC (4 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +1 -0 lines
Use the smaller cgbase() macro in ufsread.c if UFS_SMALL_CGBASE is
defined.  This lets each boot program choose which version of cgbase() it
wants to use rather than forcing ufsread.c to have that knowledge.

MFC after:	1 week
Discussed with:	imp

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Oct 24 04:03:24 2007 UTC (4 years, 3 months ago) by jhb
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +1 -1 lines
Slightly cleanup the 'bootdev' concept on x86 by changing the various
macros to treat the 'slice' field as a real part of the bootdev instead
of as hack that spans two other fields (adaptor (sic) and controller)
that are not used in any modern FreeBSD boot code.

MFC after:	1 week

Revision 1.72.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 27 14:49:38 2006 UTC (5 years, 2 months ago) by ru
Branches: RELENG_6
Diff to: previous 1.72.2.4: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.4: +7 -5 lines
MFC: 1.80: Restore support for directly loaded kernels.
     1.81: Restore support for -c and -d.

PR:		i386/96430, i386/104709

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Nov 2 17:28:38 2006 UTC (5 years, 3 months ago) by ru
Branches: MAIN
CVS tags: RELENG_7_BP
Branch point for: RELENG_7
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
Revert the last change.  Masking only 2 MSBs of the virtual address
to get the physical address doesn't work for all values of KVA_PAGES,
while masking 8 MSBs works for all values of KVA_PAGES that are
multiple of 4 for non-PAE and 8 for PAE.  (This leaves us limited
with 12MB for non-PAE kernels and 14MB for PAE kernels.)

To get things right, we'd need to subtract the KERNBASE from the
virtual address (but KERNBASE is not easy to figure out from here),
or have physical addresses set properly in the ELF headers.

Discussed with:	jhb

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Oct 29 14:50:57 2006 UTC (5 years, 3 months ago) by ru
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Because the BTX mini-kernel now uses flat memory mode and clients
are no longer limited to a virtual address space of 16 megabytes,
only mask high two bits of a virtual address.  This allows to load
larger kernels (up to 1 gigabyte).  Not masking addresses at all
was a bad idea on machines with less than >3G of memory -- kernels
are linked at 0xc0xxxxxx, and that would attempt to load a kernel
at above 3G.  By masking only two highest bits we stay within the
safe limits while still allowing to boot larger kernels.

(This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c
rev. 1.71.)

Prodded by:	jhb
Tested by:	nyan (pc98)

Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Oct 26 19:41:02 2006 UTC (5 years, 3 months ago) by ru
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -2 lines
Restore support for -c and -d that were treacherously murdered in
rev. 1.58.  (This only costs us four bytes.)

Prodded by:	bde
MFC after:	3 days

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Oct 26 19:15:54 2006 UTC (5 years, 3 months ago) by ru
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
Back out rev. 1.71 as it breaks directly loading (i386) kernels.

OK'ed by:	jhb
PR:		i386/96430, i386/104709
MFC after:	3 days

Revision 1.70.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 26 17:34:47 2006 UTC (5 years, 11 months ago) by emaste
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5
Diff to: previous 1.70.2.3: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.2.3: +27 -14 lines
MFC boot2.c r1.74 lib.h r1.3 sio.S r1.10 boot_i386.8 r1.54 r1.55 r1.58
to RELENG_5:

  Add the ability to specify the boot2 serial console speed in
  /boot.config or on the "boot:" prompt line via a "-S<speed>" flag,
  e.g. "-h -S19200". This adds about 50 bytes to the size of boot2
  and required a few other small changes to limit the size impact.

Approved by:	re (scottl)

Revision 1.72.2.4: download - view: text, markup, annotated - select for diffs
Wed Feb 15 15:08:51 2006 UTC (5 years, 11 months ago) by ru
Branches: RELENG_6
CVS tags: RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1
Diff to: previous 1.72.2.3: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.3: +39 -20 lines
MFC: -S option for boot2, already documented to work in boot(8).

Approved by:	re (scottl)

Revision 1.72.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 15 17:47:15 2005 UTC (6 years, 1 month ago) by sobomax
Branches: RELENG_6
Diff to: previous 1.72.2.2: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.2: +2 -2 lines
Fix problems introduced by the botched MFC.

Submitted by:	Kostik Belousov <konstantin.belousov@zoral.com.ua>
Pointy hat to:	sobomax

Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Thu Dec 15 04:03:05 2005 UTC (6 years, 1 month ago) by sobomax
Branches: RELENG_6
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored
Changes since revision 1.72.2.1: +21 -14 lines
MFC: add new option q to surpress any output in the normal case.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Nov 3 07:35:36 2005 UTC (6 years, 3 months ago) by ru
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -6 lines
Consistently use OPT_* macros to test/set boot options.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Oct 16 20:22:36 2005 UTC (6 years, 3 months ago) by sobomax
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +22 -15 lines
Re-implement rev.1.76 with respect to the code size.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Oct 16 19:49:44 2005 UTC (6 years, 3 months ago) by sobomax
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +24 -32 lines
Backout previous commit - for some reason it overflows space constrains on
amd64. Better version will follow.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Oct 16 01:55:35 2005 UTC (6 years, 3 months ago) by sobomax
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +32 -24 lines
Add new option `q', which makes second stage loader quiet unless autoboot
is disabled or fails.

MFC after:	1 week

Revision 1.75: download - view: text, markup, annotated - select for diffs
Thu Sep 22 11:20:33 2005 UTC (6 years, 4 months ago) by ru
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -2 lines
- RBX_MASK wasn't updated when RB_PAUSE was changed from 0x40000
  to 0x100000 in rev. 1.67.

- NOPT wasn't updated (decremented) in previous revision.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Aug 18 00:42:45 2005 UTC (6 years, 5 months ago) by iedowse
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +27 -14 lines
Add the ability to specify the boot2 serial console speed in
/boot.config or on the "boot:" prompt line via a "-S<speed>" flag,
e.g. "-h -S19200". This adds about 50 bytes to the size of boot2
and required a few other small changes to limit the size impact.
This changes only affects boot2; there are further loader changes
to follow.

Revision 1.70.2.3: download - view: text, markup, annotated - select for diffs
Mon Aug 15 06:18:07 2005 UTC (6 years, 5 months ago) by ssouhlal
Branches: RELENG_5
Diff to: previous 1.70.2.2: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.2.2: +1 -1 lines
MFC rev 1.73:
 The kernel is usually at /boot/kernel/kernel nowadays.

 PR:     i386/81756
 Submitted by:   trasz <trasz@buziaczek.pl>

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 15 06:14:07 2005 UTC (6 years, 5 months ago) by ssouhlal
Branches: RELENG_6
CVS tags: RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +1 -1 lines
MFC rev 1.73:
 The kernel is usually at /boot/kernel/kernel nowadays.

 PR:     i386/81756
 Submitted by:   trasz <trasz@buziaczek.pl>

Approved by:	re (kensmith)

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:33:42 2005 UTC (6 years, 6 months ago) by ssouhlal
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +1 -1 lines
The kernel is usually at /boot/kernel/kernel nowadays.

PR:	i386/81756
Submitted by:	trasz <trasz@buziaczek.pl>

Revision 1.70.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 16 18:22:05 2005 UTC (6 years, 7 months ago) by jhb
Branches: RELENG_5
Diff to: previous 1.70.2.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.2.1: +1 -1 lines
MFC: Print out the commands from /boot.config after parsing them so that
the output is sent to the correct console(s).

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri May 27 19:26:11 2005 UTC (6 years, 8 months ago) by jhb
Branches: MAIN
CVS tags: RELENG_6_BP
Branch point for: RELENG_6
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +1 -1 lines
Print out the commands from /boot.config after parsing them so that they
output is sent to the correct console(s).

PR:		kern/66425
Submitted by:	Gavin Atkinson gavin at ury dot york dot ac dot uk
MFC after:	1 week

Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 21:29:50 2004 UTC (7 years, 2 months ago) by jhb
Branches: RELENG_5
CVS tags: RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
MFC: Remove address masking so that large kernels can be loaded.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sat Sep 18 02:07:00 2004 UTC (7 years, 4 months ago) by jhb
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
A long, long time ago in a CVS branch far away (specifically, HEAD prior
to 4.0 and RELENG_3), the BTX mini-kernel used paging rather than flat
mode and clients were limited to a virtual address space of 16 megabytes.
Because of this limitation, boot2 silently masked all physical addresses
in any binaries it loaded so that they were always loaded into the first
16 Meg.  Since BTX no longer has this limitation (and hasn't for a long
time), remove the masking from boot2.  This allows boot2 to load kernels
larger than about 12 to 14 meg (12 for non-PAE, 14 for PAE).

Submitted by:	Sergey Lyubka devnull at uptsoft dot com
MFC after:	1 month

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Jul 30 00:33:09 2004 UTC (7 years, 6 months ago) by kan
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +6 -3 lines
Clean up local memcpy implementation to take void * parameters.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Jul 28 06:03:27 2004 UTC (7 years, 6 months ago) by kan
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +0 -4 lines
Define our own memcpy here instead of relying on GCC to provide one.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Mar 12 21:45:25 2004 UTC (7 years, 11 months ago) by trhodes
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +10 -0 lines
These are changes to allow to use the Intel C/C++ compiler (lang/icc)
to build the kernel. It doesn't affect the operation if gcc.

Most of the changes are just adding __INTEL_COMPILER to #ifdef's, as
icc v8 may define __GNUC__ some parts may look strange but are
necessary.

Additional changes:
 - in_cksum.[ch]:
   * use a generic C version instead of the assembly version in the !gcc
     case (ASM code breaks with the optimizations icc does)
     -> no bad checksums with an icc compiled kernel
     Help from:		andre, grehan, das
     Stolen from: 	alpha version via ppc version
     The entire checksum code should IMHO be replaced with the DragonFly
     version (because it isn't guaranteed future revisions of gcc will
     include similar optimizations) as in:
        ---snip---
          Revision  Changes    Path
          1.12      +1 -0      src/sys/conf/files.i386
          1.4       +142 -558  src/sys/i386/i386/in_cksum.c
          1.5       +33 -69    src/sys/i386/include/in_cksum.h
          1.5       +2 -0      src/sys/netinet/igmp.c
          1.6       +0 -1      src/sys/netinet/in.h
          1.6       +2 -0      src/sys/netinet/ip_icmp.c

          1.4       +3 -4      src/contrib/ipfilter/ip_compat.h
          1.3       +1 -2      src/sbin/natd/icmp.c
          1.4       +0 -1      src/sbin/natd/natd.c
          1.48      +1 -0      src/sys/conf/files
          1.2       +0 -1      src/sys/conf/files.amd64
          1.13      +0 -1      src/sys/conf/files.i386
          1.5       +0 -1      src/sys/conf/files.pc98
          1.7       +1 -1      src/sys/contrib/ipfilter/netinet/fil.c
          1.10      +2 -3      src/sys/contrib/ipfilter/netinet/ip_compat.h
          1.10      +1 -1      src/sys/contrib/ipfilter/netinet/ip_fil.c
          1.7       +1 -1      src/sys/dev/netif/txp/if_txp.c
          1.7       +1 -1      src/sys/net/ip_mroute/ip_mroute.c
          1.7       +1 -2      src/sys/net/ipfw/ip_fw2.c
          1.6       +1 -2      src/sys/netinet/igmp.c
          1.4       +158 -116  src/sys/netinet/in_cksum.c
          1.6       +1 -1      src/sys/netinet/ip_gre.c
          1.7       +1 -2      src/sys/netinet/ip_icmp.c
          1.10      +1 -1      src/sys/netinet/ip_input.c
          1.10      +1 -2      src/sys/netinet/ip_output.c
          1.13      +1 -2      src/sys/netinet/tcp_input.c
          1.9       +1 -2      src/sys/netinet/tcp_output.c
          1.10      +1 -1      src/sys/netinet/tcp_subr.c
          1.10      +1 -1      src/sys/netinet/tcp_syncache.c
          1.9       +1 -2      src/sys/netinet/udp_usrreq.c

          1.5       +1 -2      src/sys/netinet6/ipsec.c
          1.5       +1 -2      src/sys/netproto/ipsec/ipsec.c
          1.5       +1 -1      src/sys/netproto/ipsec/ipsec_input.c
          1.4       +1 -2      src/sys/netproto/ipsec/ipsec_output.c

          and finally remove
            sys/i386/i386        in_cksum.c
            sys/i386/include     in_cksum.h
        ---snip---
 - endian.h:
   * DTRT in C++ mode
 - quad.h:
   * we don't use gcc v1 anymore, remove support for it
   Suggested by:	bde (long ago)
 - assym.h:
   * avoid zero-length arrays (remove dependency on a gcc specific
     feature)
     This change changes the contents of the object file, but as it's
     only used to generate some values for a header, and the generator
     knows how to handle this, there's no impact in the gcc case.
   Explained by:	bde
   Submitted by:	Marius Strobl <marius@alchemy.franken.de>
 - aicasm.c:
   * minor change to teach it about the way icc spells "-nostdinc"
   Not approved by:	gibbs (no reply to my mail)
 - bump __FreeBSD_version (lang/icc needs to know about the changes)

Incarnations of this patch survive gcc compiles since a loooong time,
I use it on my desktop. An icc compiled kernel works since Nov. 2003
(exceptions: snd_* if used as modules), it survives a build of the
entire ports collection with icc.

Parts of this commit contains suggestions or submissions from
Marius Strobl <marius@alchemy.franken.de>.

Reviewed by:	-arch
Submitted by:	netchild

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Nov 15 10:04:06 2003 UTC (8 years, 2 months ago) by bde
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +13 -2 lines
Changed the RB_PAUSE flag from 0x40000 to 0x100000 and marked the old
value as reserved for internal use in boot blocks, because RB_PAUSE
broke binary compatibility by usurping the RB_DUAL flag.  Probably no
one except me has boot blocks for which this matters, since most boot
blocks based on biosboot including pc98's boot2 can't boot elf kernels,
and /boot/loader doesn't properly pass flags set by the previous stage.

reboot.h:
Also mark the historical RB_PROBEKBD flag (0x80000) as reserved for
internal use in boot blocks.

boot2.c:
Added comments to inhibit usurping of other flags.

Approved by:	guido, imp
MFC after: 	1 week

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Nov 11 06:27:34 2003 UTC (8 years, 3 months ago) by bde
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -0 lines
Include <sys/reboot.h> the definition of RB_BOOTINFO.  The previous
commit broke the world because it depended on namespace pollution that
was only in my version of <machine/bootinfo.h>.  The include was removed
in rev.1.63 after the last reference to it went away in rev.1.61.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Nov 10 19:06:09 2003 UTC (8 years, 3 months ago) by bde
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43.  Fixed wrong
comment about this flag in rev.1.61.  It is not historical like the
comment said; it is the flag that says that most of what is laboriously
put in the bootinfo struct is actually there.  Newer kernels were
bootable by even the broken boot2 without losing anything except the
symbol table, but older kernels need at least the memory sizes.

Restoring the "|" with RB_BOOTINFO that was lost in rev.1.43 costs 5
bytes.  The fix can be done in only 4 bytes by fixing some code that
was removed in rev.1.61 (put RB_BOOTINFO back in in the initial value
of "opts" and fix RBX_MASK to not clobber it.)

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Aug 25 23:28:31 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -4 lines
Use __FBSDID().
Also some minor copyright style cleanups.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Apr 4 16:35:14 2003 UTC (8 years, 10 months ago) by phk
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +0 -2 lines
Libdisk does not need to include <sys/diskslice.h> any more.

Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>

Move i386/pc98 specific bits from <sys/reboot.h> to
<i386/include/bootinfo.h> as well.

Adjust includes in sys/boot accordingly.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jan 14 16:33:37 2003 UTC (9 years ago) by imp
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -1 lines
Save 4 more bytes by not initializing opts to 0.  This moves it from
the data section to the bss section givig us initialization for free.

Noticed by: bde

Revision 1.52.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 14 07:06:40 2003 UTC (9 years ago) by imp
Branches: RELENG_5_0
CVS tags: RELENG_5_0_0_RELEASE
Diff to: previous 1.52.2.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.2.1: +4 -2 lines
MFC: 1.61: Fix implicit -n flag.

Approved by: re@
Early MFC requested by: re@

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Jan 13 21:28:24 2003 UTC (9 years ago) by imp
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2 lines
Fix interactive booting:
o Revision 1.38 introduced the -n flag.  It conflicted with the
  RB_BOOTINFO flag, so was in effect always on.  Change the -n flag to
  be bit 0x1c instead of 0x1f.  This also had the consequence that a mal-formed
  /boot.config would render the system unbootable because the user was
  unable to enter anything at all on the command line.
o Remove the initialization of opt to be RB_BOOTINFO since we filter that bit
  out and do not otherwise use it.

Reviewed by: jhb
MFC after: 3 days

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 23 01:02:45 2002 UTC (9 years, 1 month ago) by imp
Branches: RELENG_5_0
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +62 -98 lines
MFC: All the changes to the boot blocks that allow UFS1 and UFS2 to
fit into 8k.

Requested by: re (scottl)

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Dec 20 05:49:40 2002 UTC (9 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +1 -1 lines
Put back the casts to unsigned.  While no strictly necessary for its
current uses, the name strcmp has strong connotations that shouldn't
lightly be discarded.  This doesn't cost us anything.

Submitted by: bde

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Dec 17 22:00:06 2002 UTC (9 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -4 lines
Reduce diffs with Peter's expanded diffs:
1) Put back the keyboard printing printf, at the cost of 58 bytes.
2) Minor tweak to getstr at no apparent cost.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Dec 17 21:10:34 2002 UTC (9 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +56 -66 lines
Make both UFS1 and UFS2 fit on the same boot blocks.  These are a
subset of Peter's patchs that are believed to be safe.

Makefile tweaks:
o -fomit-frame-pointer
o Change default to building both UFS1 and UFS2 bootblocks.

Lots of boot2 tweaks:
o lookup is only ever called with kname, so use it directly.
o inline memsize
o getstr are only ever called with cmd, so hardware that.
o tweaks to the parsing code to test after the conversion rather than
  before since we tested after anyways.
o eliminate support for %x in printf.
o eliminate a few bytes in printfs.
o Tweak the boot banner.
o eliminate support for wd and "  " devices (I might add wd back to
  keep bde happy).
o eliminate support for a few arguments.

This takes us from -162 bytes free to 67 bytes free.

I've tested this only on a few systems, so be careful when updating to
this change.

Submitted by: peter, imp, ian

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Dec 15 02:15:19 2002 UTC (9 years, 1 month ago) by obrien
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -6 lines
Remove unneeded casts.  Add others to make WARNS=5 happy.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Dec 14 19:40:35 2002 UTC (9 years, 1 month ago) by phk
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +0 -1 lines
Remove unnecessary call to fsread().

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Dec 14 19:15:27 2002 UTC (9 years, 1 month ago) by phk
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +0 -10 lines
Always use the smaller GCC builtin memcpy

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Dec 14 19:09:37 2002 UTC (9 years, 1 month ago) by phk
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +1 -1 lines
Remove unused variable.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Dec 14 17:34:28 2002 UTC (9 years, 1 month ago) by phk
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +0 -15 lines
Don't fill in the table with the BIOS idea about disk-geometry, we don't
use it.  This saves a surprising number of bytes.

Revision 1.28.2.7: download - view: text, markup, annotated - select for diffs
Thu Oct 10 15:53:24 2002 UTC (9 years, 4 months ago) by iwasaki
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.28.2.6: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.6: +1 -1 lines
MFC:
    sys/boot/i386/boot2  boot2.c (1.46)
    sys/boot/i386/loader main.c (1.26)

Don't call INT 12H in boot program.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Oct 8 15:48:43 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
CVS tags: RELENG_5_0_BP
Branch point for: RELENG_5_0
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -6 lines
Save a couple of bytes by not returning ints nobody care about.

Sponsored by:	DARPA & NAI labs

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Oct 8 10:17:16 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +0 -2 lines
Remove unused TYPE_WD and TYPE_WFD.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Oct 8 10:15:42 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +1 -1 lines
Correctly calculate dmadat:  We need to take the address of _end, it's
contents is irrelevant and likely to be zero;

This doesn't change the resultant value, but it does save a couple of bytes
because &_end is constant.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Oct 8 07:06:24 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +1 -2 lines
Save four bytes by shortening a string two chars.

Sponsored by:	DARPA & NAI Labs.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Oct 7 21:36:06 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -1 lines
Conditionalize the number of sectors loaded by boot1.s on UFS1/UFS12.

Conditionalize the "XX bytes left" checks reference on UFS1/UFS12.

Conditionally build the necessary 64bit math for boot2 if UFS12.

Sponsored by:	DARPA & NAI Labs.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Oct 7 13:11:28 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -1 lines
Correctly compensate for both offset and unoffset on-disk BSD disklabels.

Sponsored by:	DARPA & NAI Labs.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Oct 1 19:31:01 2002 UTC (9 years, 4 months ago) by iwasaki
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -1 lines
Don't call INT 12H anymore in boot program.
Many recent machine have a broken INT 12H (Get base memory size)
implementation and boot program stops if INT 12H is called.

This commit should solve the problem at very first step of FreeBSD
installation occurred on newer some machines.

Reviewed by:	bde, jhb
MFC after:	1 week

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Oct 1 07:24:55 2002 UTC (9 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -0 lines
Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:

Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h.

These two new copies are still intact copies of disklabel.h and
therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them
in programs which already include <sys.disklabel.h> is currently a
no-op.

This commit adds a number of such #includes.

Once I have verified that I have fixed all the places which need fixing,
I will commit the updated versions of the three #include files.

Sponsored by:   DARPA & NAI Labs.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Sep 1 21:29:10 2002 UTC (9 years, 5 months ago) by kan
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -1 lines
Restore Rev. 1.40 (remove "Keyboard yes/no" printf).
GCC 3.2 overflows boot2 by 12 bytes, this patch brings it back
within the boundaries, with 12 bytes available for future bloat.

Approved by:	obrien

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Jun 21 06:18:01 2002 UTC (9 years, 7 months ago) by mckusick
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +39 -45 lines
This commit adds basic support for the UFS2 filesystem. The UFS2
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.

Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.

Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).

Sponsored by: DARPA & NAI Labs.
Reviewed by:	Poul-Henning Kamp <phk@freebsd.org>

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jun 5 11:10:38 2002 UTC (9 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -161 lines
Preparation for UFS2 commit:

Factor the ufs reading code out of the i386/boot2 loader so it can
be reused by for instance sparc64.

Sponsored by: DARPA and NAI Labs.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat May 11 21:49:39 2002 UTC (9 years, 9 months ago) by peter
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -13 lines
Save about 60 bytes by #define memcpy __builtin_memcpy and removing
the function we provided.  Restore the Keyboard: yes/no  printf for the
probe diagnostics.  We end up with 40 bytes free.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat May 11 21:39:59 2002 UTC (9 years, 9 months ago) by peter
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +1 -1 lines
Use a crowbar and duct-tape to make boot2 fit again.  This gets it down
to 4 bytes free.  I removed a printf (the Keyboard yes/no) since it is of
marginal value and sed'ed the generated asm output to remove the unwanted
aligns.  There's probably a better way to gain a few extra bytes than
losing the printf.  Shortening strings is probably a better option but this
should get us over the hurdle.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Apr 11 09:21:10 2002 UTC (9 years, 10 months ago) by pb
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +33 -19 lines
Code cleanup, no functional change.
Patch adapted from PR.

PR:		i386/36015
Submitted by:	thomas@cuivre.fr.eu.org
MFC after:	1 week

Revision 1.28.2.6: download - view: text, markup, annotated - select for diffs
Sun Mar 31 18:12:50 2002 UTC (9 years, 10 months ago) by pb
Branches: RELENG_4
CVS tags: RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7, RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6
Diff to: previous 1.28.2.5: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.5: +8 -2 lines
MFC: Add option -n to i386 boot2 to disallow boot interruption by keypress.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Mar 23 19:40:27 2002 UTC (9 years, 10 months ago) by pb
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +8 -2 lines
Add option -n to i386 boot2 to disallow boot interruption by keypress.

PR:		i386/36016
Submitted by:	Thomas Quinot <thomas@cuivre.fr.eu.org>
Reviewed by:	rnordier
MFC after:	1 week

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Mar 13 11:03:36 2002 UTC (9 years, 11 months ago) by ru
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +7 -3 lines
Implement -m and -p loader(8) "boot" command options in boot2.
(This is more useful for 4.x where boot blocks can still load
kernels, modulo the PR kern/17422.)

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Jan 17 22:39:19 2002 UTC (10 years ago) by iedowse
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -6 lines
Oops, the previous revision (1.35) broke booting from floppies
because the buffers we use could end up spanning a 64k boundary.
Unfortunately it causes too much bloat (228 -> 72 bytes free) to
just reinstate the old malloc() function.

Instead, define a structure that contains all 4 buffers which must
not cross 64k boundaries. We allocate a 64k-aligned instance in
main() using the magic that was in the old boot2 malloc() function.
This brings the free space down to 168 bytes, but that is still
better than it was before revision 1.35 (136 bytes).

Reported by:	Mike Brancato <funnyguy@digitalsmackdown.net>
Pointy-hat to:	iedowse

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jan 14 19:39:19 2002 UTC (10 years ago) by iedowse
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +46 -48 lines
Make the i386 boot2 fully blocksize-agnostic, as has already been
done with boot1 on the alpha. We use 4k buffers regardless of the
actual filesystem block size.

Remove the simple malloc() implementation, as it is no longer used.

Revision 1.28.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 14 11:16:07 2002 UTC (10 years ago) by iedowse
Branches: RELENG_4
CVS tags: RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5
Diff to: previous 1.28.2.4: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.4: +2 -2 lines
MFC: 1.34; Increase BSIZEMAX from 8k to 16k, so that we can reliably
boot from filesystems with 16k blocks.

Approved by:	re

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 9 15:46:17 2002 UTC (10 years, 1 month ago) by iedowse
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -1 lines
Increase BSIZEMAX from 8k to 16k, so that we can reliably boot from
filesystems with 16k blocks.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:27:05 2001 UTC (10 years, 3 months ago) by jlemon
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Allow the RBX_DUAL flag to appear in bootinfo.

Revision 1.28.2.4: download - view: text, markup, annotated - select for diffs
Tue Aug 14 22:55:29 2001 UTC (10 years, 5 months ago) by jhb
Branches: RELENG_4
CVS tags: RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.28.2.3: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.3: +3 -2 lines
MFC: Hack to support CD booting on brain damaged IBM BIOSs.

Tested by:	users on -stable
Approved by:	re

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Jul 31 19:50:09 2001 UTC (10 years, 6 months ago) by jhb
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2, KSE_MILESTONE_2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2 lines
Add in a hack to support IBM "El Torito" CD-ROM booting BIOS's which expect
the first sector of the emulated floppy to contain a valid MS-DOS BPB that
it can modify.  Since boot1 is the first sector of boot.flp, this resulted
in the BIOS overwriting part of boot1: specifically the function used to
read in sectors from the disk.

Submitted by:	Mark Peek <mark@whistle.com>
Submitted by:	Doug Ambrisko <ambrisko@ambrisko.com>
PR:		i386/26382
Obtained from:	NetBSD, OpenBSD (the example BPB)
MFC after:	1 month

Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:59:10 2001 UTC (10 years, 7 months ago) by obrien
Branches: RELENG_4
Diff to: previous 1.28.2.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.2: +2 -2 lines
MFC: * Most of existing include/elf.h is in elf-hints.h.
       elf.h is now a compatibility header with Solaris/SVR4.
	 * Consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed May 2 23:56:19 2001 UTC (10 years, 9 months ago) by obrien
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
* include/elf.h has been repo copied to include/elf-hints.h, and it no
  longer includes machine/elf.h.
* consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11.0 and too much clashing over
our base elf headers and the Binutils elf headers.

Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 7 21:12:32 2000 UTC (11 years, 7 months ago) by jhb
Branches: RELENG_4
CVS tags: RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.1: +108 -115 lines
MFC: Lots of bootstrap fixes and features:

- Add $FreeBSD$ to README
- Coment fix for the if_wx module in loader.conf
- Axe all the unneeded m4 files (yay!)
- EDD support in mbr, boot1 and boot2, and the loader
- inline functions in boot2 that are only used once to gain 68 bytes of
  free space
- emulate the WBINVD instruction in BTX
- remove cruft from the cdldr Makefile
- improve hard disk probe checking as well as lsdev enhancements in the
  loader

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jul 6 01:51:27 2000 UTC (11 years, 7 months ago) by jhb
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +108 -115 lines
- 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.

Revision 1.18.2.6: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:22:34 2000 UTC (11 years, 8 months ago) by ru
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE
Diff to: previous 1.18.2.5: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.5: +3 -3 lines
MFC: (rev 1.29) treat \t and \n inside /boot.config as whitespaces.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:21:50 2000 UTC (11 years, 8 months ago) by ru
Branches: RELENG_4
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
MFC: (rev 1.29) treat \t and \n inside /boot.config as whitespaces.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jun 13 13:07:53 2000 UTC (11 years, 8 months ago) by ru
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Treat \t and \n inside /boot.config as whitespaces.

PR:		19215

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Feb 9 19:23:46 2000 UTC (12 years ago) by ru
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +14 -11 lines
Support the new ata(4) syntax, while providing backward compatibility for wd(4).

Reviewed by:	jkh, msmith, sos
Approved by:	jkh

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Nov 14 22:17:06 1999 UTC (12 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +9 -9 lines
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.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Nov 14 00:41:54 1999 UTC (12 years, 2 months ago) by obrien
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +9 -9 lines
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.

Revision 1.18.2.5: download - view: text, markup, annotated - select for diffs
Sun Aug 29 16:20:44 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.18.2.4: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.4: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Aug 28 00:40:01 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1 lines
$Id$ -> $FreeBSD$

Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Sat Jun 19 20:53:53 1999 UTC (12 years, 7 months ago) by rnordier
Branches: RELENG_3
Diff to: previous 1.18.2.3: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.3: +2 -2 lines
MFC: Fix use of e_phoff in place of e_phnum.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 19 20:50:38 1999 UTC (12 years, 7 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2 lines
Fix use of e_phoff in place of e_phnum.

Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 20 12:02:00 1999 UTC (12 years, 9 months ago) by joerg
Branches: RELENG_3
CVS tags: RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE
Diff to: previous 1.18.2.2: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.2: +3 -2 lines
MFC: rev 1.21, make <DEL> an alternative rubout character.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:36:30 1999 UTC (12 years, 10 months ago) by rnordier
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, PRE_NEWBUS, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Fix damage introduced in previous commit.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Apr 4 21:15:41 1999 UTC (12 years, 10 months ago) by obrien
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -2 lines
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.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Mar 31 08:28:42 1999 UTC (12 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -2 lines
Make <DEL> an alternative rubout character for command input; many
serial terminals use this as their default rubout key.

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 25 17:49:24 1999 UTC (12 years, 11 months ago) by rnordier
Branches: RELENG_3
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +3 -2 lines
MFC: Check size of partition before using it.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 29 03:36:42 1999 UTC (13 years ago) by rnordier
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
Check size of partition before using it.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 24 00:15:39 1999 UTC (13 years ago) by msmith
Branches: RELENG_3
CVS tags: RELENG_3_1_0_RELEASE
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
MFC: set bi_bios_dev correctly.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jan 24 00:10:10 1999 UTC (13 years ago) by msmith
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 11 11:36:03 1999 UTC (13 years, 1 month ago) by rnordier
Branches: MAIN
CVS tags: RELENG_3_BP
Branch point for: RELENG_3
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -10 lines
Drop boot.help support.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 10 13:29:52 1999 UTC (13 years, 1 month ago) by peter
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
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>

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Nov 8 18:37:28 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -1 lines
Prevent boot.config being parsed more than once.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 8 18:29:29 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -14 lines
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.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Nov 8 15:36:35 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +7 -6 lines
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.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Oct 27 20:16:36 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +6 -4 lines
biosboot compatibility fix: change behavior of backspace in getstr().
Noticed by: abial

Optimize away a few bytes to make space for the above.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Oct 17 11:25:05 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -2 lines
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).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Oct 17 10:35:15 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
Having probed the keyboard, turn off the -P flag.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Oct 17 09:50:09 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -6 lines
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.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Oct 17 09:16:01 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -4 lines
biosboot compatibility fix:
If we have a boot.config command, display it.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Oct 17 09:01:13 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
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.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Oct 15 20:04:21 1998 UTC (13 years, 3 months ago) by rnordier
Branches: MAIN
CVS tags: RELENG_3_0_0_RELEASE
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +70 -22 lines
Add serial, dual, and probe-keyboard support.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Oct 13 23:43:38 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -4 lines
Fix flow of control after directory listing; enable EDD support;
cosmetics.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Oct 13 23:00:47 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +26 -12 lines
Make v86.ctl default more explicit; simplify read error-handling;
twiddle.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Oct 13 22:17:05 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -11 lines
Adjust NDEV value.
Optimize reading of system time.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 13 21:35:42 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +24 -17 lines
Change to a 15-sector boot2.
Refine slice-handling.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Oct 13 17:41:06 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +40 -26 lines
Improve drive recognition and handling.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Oct 12 21:16:26 1998 UTC (13 years, 4 months ago) by rnordier
Branches: RNORDIER
CVS tags: v1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
multiple 0xa5 slices; etc.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Oct 12 21:16:26 1998 UTC (13 years, 4 months ago) by rnordier
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options