Commit Graph

147661 Commits

Author SHA1 Message Date
mrg
bd88defe28 delete GCC2.95.3 sources. 2006-06-02 22:17:11 +00:00
mrg
db19e89e04 remove support for building (with) GCC 2.95. also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
hubertf
2aeadc072d Prepare creation of boot CDs:
* Move files in distrib/amd64:

floppies/instkernel/Makefile -> instkernel/Makefile
floppies/ramdisk/Makefile -> ramdisks/ramdisk/Makefile
floppies/ramdisk/disktab.preinstall -> ramdisks/ramdisk/disktab.preinstall
floppies/ramdisk/list -> ramdisks/ramdisk/list
floppies/ramdisk/list.inet6 -> ramdisks/ramdisk/list.inet6
floppies/common/Makefile.ramdisk -> ramdisks/common/Makefile.ramdisk
floppies/common/dot.profile -> ramdisks/common/dot.profile
floppies/common/list.ramdisk -> ramdisks/common/list.ramdisk
floppies/common/termcap.mini -> ramdisks/common/termcap.mini

 * Adjust paths
2006-06-02 22:11:52 +00:00
hubertf
b3f292908c Prepare creation of boot CDs:
* Move files in distrib/i386:

floppies/instkernel/Makefile -> instkernel/Makefile
floppies/ramdisk-big/Makefile -> ramdisks/ramdisk-big/Makefile
floppies/ramdisk-big/disktab.preinstall -> ramdisks/ramdisk-big/disktab.preinstall
floppies/ramdisk-big/list -> ramdisks/ramdisk-big/list
floppies/ramdisk-big/list.inet6 -> ramdisks/ramdisk-big/list.inet6
floppies/ramdisk-rescuetiny/Makefile -> ramdisks/ramdisk-rescuetiny/Makefile
floppies/ramdisk-rescuetiny/list -> ramdisks/ramdisk-rescuetiny/list
floppies/ramdisk-small/Makefile -> ramdisks/ramdisk-small/Makefile
floppies/ramdisk-small/list -> ramdisks/ramdisk-small/list
floppies/ramdisk-tiny/Makefile -> ramdisks/ramdisk-tiny/Makefile
floppies/ramdisk-tiny/list -> ramdisks/ramdisk-tiny/list
floppies/common/Makefile.ramdisk -> ramdisks/common/Makefile.ramdisk
floppies/common/dot.profile -> ramdisks/common/dot.profile
floppies/common/list.ramdisk -> ramdisks/common/list.ramdisk
floppies/common/termcap.mini -> ramdisks/common/termcap.mini

 * Adjust paths
2006-06-02 22:11:06 +00:00
jnemeth
b7899a65bc try again with the Coverity annotation 2006-06-02 21:44:37 +00:00
mrg
d91ef09809 make GCC3 work for vax - without shared library support. 2006-06-02 20:00:37 +00:00
mrg
e69cf86f15 remove GCC2 support 2006-06-02 19:47:15 +00:00
mrg
da78757b0f initialise some variables for gcc. 2006-06-02 19:46:56 +00:00
mrg
475665f3ba remove GCC2 support 2006-06-02 19:46:24 +00:00
mrg
c8fffd8947 remove GCC2 support. 2006-06-02 19:45:56 +00:00
mrg
98bb9a5d9f remove sh3/gcc2 hack. 2006-06-02 19:45:25 +00:00
mrg
95c96a60f2 remove sh3/GCC2 hack. 2006-06-02 19:44:48 +00:00
mrg
e6744c2295 make this work for GCC3 one again. 2006-06-02 19:44:20 +00:00
christos
4ad5c93d32 more details. 2006-06-02 19:08:00 +00:00
pavel
2aa1e28cea document that a recent linker is needed to link the i386 and xen kernels
after the changes to the ldscript.
2006-06-02 19:01:00 +00:00
christos
e5ea88eb01 PR/33633: Yoshito Komatsu: /sbin/fdisk does not work
Downgrade error getting heads to a warning.
2006-06-02 17:40:34 +00:00
nathanw
fd8e3777c1 Notes for how to do the mknative dance (based on the gcc one, but with
unnecessary steps removed).
2006-06-02 15:33:34 +00:00
nathanw
4eb9fc62f7 mknative for amd64. 2006-06-02 15:32:09 +00:00
christos
5e5752c8cd PR/33627: Keiichi Shima: typo in Makefile.ioctl-c in kdump directory
s/RW/WR/
2006-06-02 13:56:49 +00:00
simonb
2f8c495ce2 Fix problems with program names with a "-" in them, where crunchgen was
outputting the original program name for the stub name instead of the
mangled name.

From Mikolaj Golub on tech-embed.
2006-06-02 10:11:56 +00:00
rpaulo
9637f337f2 s/mountall/mountcritremote/
Noticed by Jukka Salmi.
2006-06-02 01:06:16 +00:00
garbled
b18c709a99 Make the space for the ramdisk slightly larger. 2006-06-01 21:16:05 +00:00
garbled
6a38d9365a Make the ramdisk a little bigger 2006-06-01 21:15:30 +00:00
hubertf
924dbbdb7d Fix fix for Coverity CID 2751:
Move an error check to the right place, and instead of blindly insisting on
an argument for all of "no-emul-boot", "no-boot", "hard-disk-boot" and
"boot-load-segment", only require it for the last one, which is the only
one that requires/uses it.

OK'd by Christos
2006-06-01 21:06:37 +00:00
bouyer
19d40b6b73 -mcpu=i686 is implied by -march=i686 and gcc4 doens't like -mcpu=i686 so
remove it. From Sergey Lungu on current-users.
2006-06-01 19:39:59 +00:00
simonb
3eb98d14f3 Change date in the nbX part of the version string to match the date
the nbX change was made.  The original gcc cvs/svn branch date is kept
separately.

After discussion with phone@
2006-06-01 19:21:05 +00:00
christos
53516f73e1 Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.
2006-06-01 18:04:08 +00:00
drochner
3f13a4cf7b Better check data read from tetris.scores before use as array indices etc.
This is CVE-2006-1539, files against Gentoo Linux, the patch is from
Gentoo.
A standard NetBSD installation is not as much risk because tetris is
sgid "games", and users shouldn't be in that group.
2006-06-01 16:12:27 +00:00
christos
8d1784140b PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.
2006-06-01 15:59:31 +00:00
nathanw
9822b848e6 Change return type of sdgetdisklabel() from void to int; return an error
if readdisklabel() returned an error.

sdopen(): Return an error if sdgetdisklabel() returns an error. This prevents
a crash in spec_open() (and possibly elsewhere) if a sd device is detached in
the middle of sdopen().
2006-06-01 15:53:09 +00:00
tsutsui
88032f5d39 Sync with hpcsh/bus_space.c rev 1.12:
> Use C99 syntax for designated initializers.
> Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-06-01 14:18:41 +00:00
jonathan
6e42605bf4 Rework bge_reset() to more closely follow the Broadcom-supplied Linux driver:
1. Instead of enabling the buffer manager hardware-FSM only on
pre-5705 devices, initialize the buffer manager on all bge devices.
Modelled on the Broadcom-authored Linux driver.

2. Instead of enabling the memory arbiter hardware-FSM only on
pre-5705 devices, initialize the memory arbiter on all bge devices.
Modelled on the Broadcom-authored Linux driver.

3. Ditto the second copy of code which enables the memory arbiter.
Also, add an XXX asking, why taunt the chip this way a second time?
(The most plausible explanatoin is that enabling the memory arbiter
twice is my own darn fault, likely a cut-and-paste glitch I made many
moons ago, when re-ordering hardware enables to match the Linux drivers.)
2006-06-01 02:20:54 +00:00
jonathan
e8c37e204d Fix a minor thinko in ascertaining whether or not a bge(4) device is
attached via PCI-Express:

The previous code first checked that the bge ASIC-revision matched the
5750 ASIC-revisoin (the bcm5721 has the same ASIC revision). However, the
bcm5752 is also a PCI-Express device, but has a different ASIC revision.
Thus, we were setting sc->bge_pcie to zero for bcm5752s, which in turn
causes bge_reset() to not perform required PCI-Express setup.

The test for a 5750 ASIC revision may (or may not) have been carried
across from the FreeBSD bge(4) driver. FreeBSD's bge(4) does not
properly detect or handle post-5750 bge devices. Instead, FreeBSD's
bge(4) keeps a sofc copy of the ASIC revision, and for post-5750
devices (5752, 5714, ...) overwrites that softc copy of the
ASIC-revision with the 5750 ASIC revision.  Thus, the test (mutatis
mutandis, using FreeBDS's softc asic-revision field), was correct for
FreeBSD; but manifestly incorrect for NetBSD.

Mark Davies (mark at mcs.vuw.ac..nz) has confirmed via private email
that this change fixes PR kern/kern/33509: his bcm5752 now works.
2006-06-01 01:46:41 +00:00
uwe
4c3245cf01 Remove redundant semicolon in dev_type_cnbell. 2006-06-01 00:43:37 +00:00
uwe
e81e00a1ad s/0/NULL/ when dealing with pointers. 2006-05-31 22:48:48 +00:00
uwe
cac00f2e06 Use C99 syntax for designated initializers.
Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-05-31 22:40:38 +00:00
riz
03c11483b9 Add support for the DLink DGE-530T revision B1 (Tested by Tillman
Hodgson) and the DGE-560T (untested).
2006-05-31 21:46:32 +00:00
riz
5412a4d276 Regen. 2006-05-31 21:43:25 +00:00
riz
1ff114df3d Add a couple DLINK product IDs, from OpenBSD. 2006-05-31 21:42:35 +00:00
rpaulo
134b1ef326 Add missing coma. 2006-05-31 20:23:52 +00:00
rpaulo
fc5eb63af6 It doesn't make sense to print the MPLS ttl here.
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
agc
2b1d5a0345 :g/%i/s//%d/gc
Also make a first stab at implementing persistent reserve in SCSI command.
2006-05-31 19:53:13 +00:00
christos
c377b4c43d More Coverity fixes from Mark D. Baushke. 2006-05-31 15:59:12 +00:00
perry
713a76184e explain why the ordering of MAN= is like it is. 2006-05-31 13:51:48 +00:00
perry
567aeb1815 To make vdiffs for imports simpler, follow the pattern of the original
Makefile.in for listing the files to be installed.

No functional change at all.

Also, remove a spurious tab from after the MLINKS= line
2006-05-31 13:45:46 +00:00
rpaulo
088720fe4b Don't print an error if kernel doesn't have INET6 support.
By Jukka Salmi on current-users.
2006-05-31 13:26:17 +00:00
tsutsui
a46e8b9247 Remove unneeded #include headers. 2006-05-31 13:20:42 +00:00
tsutsui
d241536854 Use __predict_true() and __predict_false() in some critical handlers. 2006-05-31 13:14:13 +00:00
tsutsui
cbe0593dd5 Cleanup ICU (i8259 compatible PIC) interrupt handling code:
- move ICU interrupt stuff from pci/pcib.h to cobalt/machdep.c
  because ICU should be initialized before pcib is attached
- initialize ICU more properly
- check interrupt types and set ELCR (edge/level control registers)
  accordingly in icu_intr_establish()
- check requested IRQ line and call only a necessary hander in icu_intr()
- use specific EOI to ack interrupts rather than AEOI
- use macro defined in <dev/ic/i8259reg.h>
2006-05-31 12:59:39 +00:00
drochner
4b02662f6c -add 2 subclasses new in rev. 3.0 of the spec, and fix a pasto in another
-get power management rev printing right
2006-05-31 10:01:18 +00:00