Matthew Dillon [Wed, 28 Jan 2004 21:26:55 +0000 (21:26 +0000)]
Rename .sub files back to .inc.
Matthew Dillon [Wed, 28 Jan 2004 19:27:01 +0000 (19:27 +0000)]
Rename Makefile.sub back to Makefile.inc to fix cross builds.
Matthew Dillon [Wed, 28 Jan 2004 19:24:14 +0000 (19:24 +0000)]
Undo some of the previously made changes to deal with cross build issues
from 4.x and older versions of DFly.
sys.mk should *NOT* include bsd.init.mk. That is way, way too early and
blows up .inc files, e.g. such as those used by sys/boot.
Rename .sub back to .inc in sys/boot (more on the way) so it will cross build
from 4.x.
Joerg Sonnenberger [Wed, 28 Jan 2004 16:41:18 +0000 (16:41 +0000)]
Move binutils from /usr/libexec/gcc2/{aout,elf} to
/usr/libexec/binutils212/{aout,elf}.
Move GCC 2.95.4 C++ headers from /usr/include/g++ to
/usr/include/c++/2.95.
Joerg Sonnenberger [Wed, 28 Jan 2004 16:25:29 +0000 (16:25 +0000)]
Fix various warnings and other glitches.
Patch submitted by Simon "corecode" Schubert.
Joerg Sonnenberger [Wed, 28 Jan 2004 14:36:00 +0000 (14:36 +0000)]
Change functin definitions to conform to style(9)
Joerg Sonnenberger [Wed, 28 Jan 2004 12:48:49 +0000 (12:48 +0000)]
Add support for the AMD 8111 chipset
Matthew Dillon [Wed, 28 Jan 2004 03:52:28 +0000 (03:52 +0000)]
Fix the DDB 'trace' command. When segment address adjustments were added
in 1.7 so VM86 code could be properly traced, the routine that pulls out
%ebp was accidently changed to return %esp instead, causing DDB
backtraces to produce incorrect results.
Matthew Dillon [Tue, 27 Jan 2004 23:56:48 +0000 (23:56 +0000)]
Try to work-around a DFly-specific crash that can occur in ufs_ihashget()
if the underlying vnode is being reclaimed at the same time. Bump the
vnodes ref count to interlock against vget's VXLOCK test.
Matthew Dillon [Tue, 27 Jan 2004 21:03:08 +0000 (21:03 +0000)]
func() -> func(void) style.
Robert Garrett [Tue, 27 Jan 2004 19:01:21 +0000 (19:01 +0000)]
remove ifwatchd we don't have the binary we don't need the script
Matthew Dillon [Tue, 27 Jan 2004 18:36:52 +0000 (18:36 +0000)]
Describe variant symlinks in the 'ln' manual page.
With-some-changes-by: dillon
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
Matthew Dillon [Tue, 27 Jan 2004 18:28:22 +0000 (18:28 +0000)]
Fix type-o's and add a few files to the cleanup list.
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
Matthew Dillon [Tue, 27 Jan 2004 18:26:43 +0000 (18:26 +0000)]
USB storage devices are standard fare these days, add device atapicam to
GENERIC.
Joerg Sonnenberger [Tue, 27 Jan 2004 16:26:34 +0000 (16:26 +0000)]
Rename Makefile.inc to Makefile.sub
Robert Garrett [Tue, 27 Jan 2004 01:26:25 +0000 (01:26 +0000)]
fix bug where i accidently left ;; at the end of two case switches
Robert Garrett [Tue, 27 Jan 2004 00:59:21 +0000 (00:59 +0000)]
finish updating rcng to remove FreeBSD and NetBSD code
Robert Garrett [Tue, 27 Jan 2004 00:55:43 +0000 (00:55 +0000)]
update rcng to remove FreeBSD and NetBSD
Robert Garrett [Tue, 27 Jan 2004 00:42:46 +0000 (00:42 +0000)]
update rcng to remove FreeBSD and NetBSD
Matthew Dillon [Mon, 26 Jan 2004 20:58:11 +0000 (20:58 +0000)]
Fix a serious bug in the NTPD loopfilter. Basically what happens is that
when the frequency error is low (e.g. like 15ppm), but an offset correction
must be made (e.g. like 3 seconds), the rstclock() call loopfilter makes
in the S_NSET state, after adjusting the system time, will reload a
clock_offset value PRIOR to the system time adjustment actually having taken
place, because rstclock() uses offset information prior to the time step, not
after, and because the kernel may slew the time step over several seconds.
The result is that clock_offset will wind up being very high (e.g. like 3
seconds) as the loopfilter enters into the S_FREQ state. This will cause
the loopfilter to make a wildly incorrect clock_frequency calculation and
in my tests it can take ntpd and the kernel upwards of one to two DAYS to
correct for the bad calculation.
The fix is to introduce an offset settling state, S_PFREQ, which resets
the offset calculations CLOCK_MINSEC seconds after the correction was made
in order to give the next state, S_FREQ, a good basis for calculating the
frequency drift. clock_offset will be far more reasonable when the S_FREQ
state is entered, a good clock_frequency calculation will be made, and
ntpd will lock onto the frequency is less then half an hour (instead of
24+ hours).
Joerg Sonnenberger [Mon, 26 Jan 2004 19:57:36 +0000 (19:57 +0000)]
Remove Makefile.inc
Joerg Sonnenberger [Mon, 26 Jan 2004 19:49:32 +0000 (19:49 +0000)]
Rename Makefile.in to Makefile.sub
Joerg Sonnenberger [Mon, 26 Jan 2004 19:22:47 +0000 (19:22 +0000)]
Rename Makefile.inc to Makefile.sub
Joerg Sonnenberger [Mon, 26 Jan 2004 19:09:49 +0000 (19:09 +0000)]
To let the crazy Perl Makefiles work, add the support for ../Makefile.sub
which is included at the time ../Makefile.inc originally was.
David Rhodus [Mon, 26 Jan 2004 18:16:18 +0000 (18:16 +0000)]
* DragonFly<-FreeBSD Name clean ups
David Rhodus [Mon, 26 Jan 2004 18:14:43 +0000 (18:14 +0000)]
* Change FreeBSD ifdef over to DragonFly
* Clean up compiler warning in phantasia
David Rhodus [Mon, 26 Jan 2004 18:12:54 +0000 (18:12 +0000)]
* Change FreeBSD ifdefs to DragonFly
Joerg Sonnenberger [Mon, 26 Jan 2004 18:04:03 +0000 (18:04 +0000)]
Really remove C++ from libc_r
Joerg Sonnenberger [Mon, 26 Jan 2004 17:50:34 +0000 (17:50 +0000)]
Remove C++ from libc_r. Use __attribute__((constructor)) instead.
Robert Garrett [Mon, 26 Jan 2004 17:21:15 +0000 (17:21 +0000)]
remove NetBSD and FreeBSD from rcng scripts
Joerg Sonnenberger [Mon, 26 Jan 2004 16:13:49 +0000 (16:13 +0000)]
Always include bsd.init.mk to fix CPUTYPE evaluation
Joerg Sonnenberger [Mon, 26 Jan 2004 15:42:36 +0000 (15:42 +0000)]
Fix make complaining about CCVER being not defined
Joerg Sonnenberger [Mon, 26 Jan 2004 15:24:38 +0000 (15:24 +0000)]
Always re-export CCVER
Joerg Sonnenberger [Mon, 26 Jan 2004 15:22:08 +0000 (15:22 +0000)]
Rename bsd.cpu.mk into bsd.cpu.gcc2.mk and add the proper Makefile magic
to choose the compiler-specific Makefile to bsd.cpu.mk.
Add FreeBSD current's bsd.cpu.mk as bsd.cpu.gcc3.mk.
Joerg Sonnenberger [Mon, 26 Jan 2004 11:09:44 +0000 (11:09 +0000)]
Replace K&R style function declarations with ANSI style one.
Patch submitted by Chis Pressey <cpressey@catseye.mine.nu>
Additonally fix some style(9) issues and remove a bogus and probably
out-dated volatile cast in scanc.c.
David Rhodus [Sun, 25 Jan 2004 22:50:20 +0000 (22:50 +0000)]
* DragonFly<-FreeBSD name change in boot loader code.
David Rhodus [Sun, 25 Jan 2004 22:16:45 +0000 (22:16 +0000)]
* Remove extra compile flag to clean up redefine warnings.
NOADDITIONAL is now defined by default in the bind source tree.
David Rhodus [Sun, 25 Jan 2004 22:14:27 +0000 (22:14 +0000)]
* Fix man page names.
Joerg Sonnenberger [Sun, 25 Jan 2004 19:09:39 +0000 (19:09 +0000)]
Cleanup the fix for dependency handling. This explicitly checks wether
all-depends-list or package-depends-list is a target and drops the
warning message for DragonFly override ports.
Joerg Sonnenberger [Sun, 25 Jan 2004 16:52:34 +0000 (16:52 +0000)]
Don't use non-existing DragonFly override ports for ports using
bsd.port.pre.mk.
Don't print the DragonFly override warning while doing
"make package-depends-list", since that breaks the dependency
generation.
Joerg Sonnenberger [Sun, 25 Jan 2004 15:43:24 +0000 (15:43 +0000)]
Split multiline string literal
Hiten Pandya [Sun, 25 Jan 2004 12:30:08 +0000 (12:30 +0000)]
Fix typo in a comment.
Submitted by: Christian Brueffer <chris@unixpages.org>
Joerg Sonnenberger [Sun, 25 Jan 2004 01:08:41 +0000 (01:08 +0000)]
Add -ffreestanding to CFLAGS for gcc3
Joerg Sonnenberger [Sat, 24 Jan 2004 22:43:09 +0000 (22:43 +0000)]
Add GCC3 to buildworld.
Joerg Sonnenberger [Sat, 24 Jan 2004 22:40:58 +0000 (22:40 +0000)]
Use new style variadic functions
Joerg Sonnenberger [Sat, 24 Jan 2004 22:29:20 +0000 (22:29 +0000)]
Remove bogus -fstrict-prototypes which isn't support for gcc3.
Spoted by: Andreas Hauser (buggs@splashground.de)
Joerg Sonnenberger [Sat, 24 Jan 2004 22:18:12 +0000 (22:18 +0000)]
The __cxa_atext/__cxa_finalize patch is based on FreeBSD OR bin/59552
Joerg Sonnenberger [Sat, 24 Jan 2004 21:00:14 +0000 (21:00 +0000)]
Fix prehistoric C
Joerg Sonnenberger [Sat, 24 Jan 2004 20:23:41 +0000 (20:23 +0000)]
Add -I${BIND_DIR}/bin/nslookup
Joerg Sonnenberger [Sat, 24 Jan 2004 20:16:24 +0000 (20:16 +0000)]
GCC3 doesn't inspect #line to allow inclusion relative to the source
file e.g. ns_parser.y.
Joerg Sonnenberger [Sat, 24 Jan 2004 20:03:28 +0000 (20:03 +0000)]
Both cc and cc3 were built using CCVER=$(CCVER) for certain compiler path.
Since this value is set to choose the build compiler, one of the two was
compiled with wrong pathes for its backend. To fix this a new variable
MY_CCVER is added to Makefile.inc which specifies the version of the
compiler being built.
Joerg Sonnenberger [Sat, 24 Jan 2004 19:52:22 +0000 (19:52 +0000)]
Force make to export CCVER for buildworld
Joerg Sonnenberger [Sat, 24 Jan 2004 19:45:23 +0000 (19:45 +0000)]
Remove generated file from repo
Joerg Sonnenberger [Sat, 24 Jan 2004 14:43:42 +0000 (14:43 +0000)]
Adjust program names by removing the additional 3
Matthew Dillon [Sat, 24 Jan 2004 09:02:28 +0000 (09:02 +0000)]
Prevent killall from killing itself.
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
Imported-from: http://www.freebsd.org/cgi/query-pr.cgi?pr=46107
Matthew Dillon [Sat, 24 Jan 2004 08:00:45 +0000 (08:00 +0000)]
Cleanup the duel-macro specifications in sioreg.h and ns16550.h by having
sioreg.h include ns16550.h.
Submitted-by: Robert Garrett <rg70@sbcglobal.net>
Matthew Dillon [Sat, 24 Jan 2004 07:55:50 +0000 (07:55 +0000)]
When creating a new uidinfo structure, check for an allocation race whether
we were to malloc M_NOWAIT or M_WAITOK, which means we can just use M_WAITOK
unconditionally.
Matthew Dillon [Sat, 24 Jan 2004 06:40:34 +0000 (06:40 +0000)]
Turn off hardware assisted transmit checksums by default. In buildworld
loop tests this has been conclusively shown to corrupt transmit packets
about one out of every million packets. The receive will not know the the
packet is bad because hardware assist also apples the correct checksum
to the corrupted packet. The result are random failures or corruption
of network data in certain situations. On DragonFly, for some reason, doing
a 'resident /usr/bin/*' seems to bring the problem out every few buildworlds
with (primarily) mkdep's cpp complaining about odd errors trying to open
non-existant header files (during a header file search), such as
EPROTONOSUPPORT. A tcpdump on both NFS client and server showed the
client transmitting an access RPC and the server seeing a corrupted access
RPC on its end, and then responding with EPROTONOSUPPORT. Other uncaught
errors are also almost certainly occuring. mkdep is more likely to catch
them because it actually checks the errno of a failed open() and does a
huge number of open()'s (and as an NFS client this generates a huge amount
of packet traffic).
Matthew Dillon [Sat, 24 Jan 2004 06:34:02 +0000 (06:34 +0000)]
Synch the XL driver with FreeBSD-4.x.
Jeffrey Hsu [Sat, 24 Jan 2004 05:24:15 +0000 (05:24 +0000)]
Remove unused local variable.
Jeffrey Hsu [Sat, 24 Jan 2004 05:19:55 +0000 (05:19 +0000)]
Remove dead code.
Matthew Dillon [Fri, 23 Jan 2004 23:00:52 +0000 (23:00 +0000)]
Assume read access for execute requests so we can fill in the read credential
for executed programs. This should fix some of the execution I/O errors
that have been reported over NFS volumes whos servers map the root cred2
to -2:-2.
Report-by: Andrew Atrens <atrens@nortelnetworks.com>
Joerg Sonnenberger [Fri, 23 Jan 2004 22:30:25 +0000 (22:30 +0000)]
Add support for ${BINUTILSVER} to objformat. This defaults to gcc2
and generates the current locations (e.g. /usr/libexec/gcc2/elf/as).
c++filt was moved into the normal compiler bindir.
Joerg Sonnenberger [Fri, 23 Jan 2004 20:53:09 +0000 (20:53 +0000)]
Remove some prehistoric C crap
Joerg Sonnenberger [Fri, 23 Jan 2004 20:28:01 +0000 (20:28 +0000)]
Fix prehistoric C
Joerg Sonnenberger [Fri, 23 Jan 2004 19:57:41 +0000 (19:57 +0000)]
Fix prehistoric C
Joerg Sonnenberger [Fri, 23 Jan 2004 19:49:35 +0000 (19:49 +0000)]
Remove bogus sys_nerr defines
Matthew Dillon [Fri, 23 Jan 2004 19:30:21 +0000 (19:30 +0000)]
Get rid of embedded newline continuation entirely and switch to an ANSI
multi-line string.
Joerg Sonnenberger [Fri, 23 Jan 2004 19:13:45 +0000 (19:13 +0000)]
Add -I${.CURDIR} to Makefile
Jeroen Ruigrok/asmodai [Fri, 23 Jan 2004 15:35:13 +0000 (15:35 +0000)]
Add detection code for the SiS 746 ATA133 controller.
This does not, for all I can quickly see, enable ATA133 on the controller.
Joerg Sonnenberger [Fri, 23 Jan 2004 15:33:28 +0000 (15:33 +0000)]
Add missing \ to string
Joerg Sonnenberger [Fri, 23 Jan 2004 15:15:11 +0000 (15:15 +0000)]
Add -I{.CURDIR} to CFLAGS
Joerg Sonnenberger [Fri, 23 Jan 2004 15:10:59 +0000 (15:10 +0000)]
Use C99 syntax for variadic macros
Joerg Sonnenberger [Fri, 23 Jan 2004 14:55:52 +0000 (14:55 +0000)]
Include ${.CURDIR} before bin/ls to get the right extern.h
Joerg Sonnenberger [Fri, 23 Jan 2004 14:43:52 +0000 (14:43 +0000)]
Fix GCC 3.3 compilation and style(9)
Joerg Sonnenberger [Fri, 23 Jan 2004 14:37:01 +0000 (14:37 +0000)]
Fix compilation with GCC 3.3 and a few warnings
Jeroen Ruigrok/asmodai [Fri, 23 Jan 2004 14:11:13 +0000 (14:11 +0000)]
Add recognition code for the SiS 645DX.
Joerg Sonnenberger [Fri, 23 Jan 2004 12:29:26 +0000 (12:29 +0000)]
Fix more multiline string literals
Joerg Sonnenberger [Fri, 23 Jan 2004 12:19:55 +0000 (12:19 +0000)]
Fix multiline string literals
Joerg Sonnenberger [Fri, 23 Jan 2004 11:30:28 +0000 (11:30 +0000)]
GCC 3.3 doesn't support #pragma weak A=B, when A is defined. This patch
adds correct prototyps for those symbols and allows gcc3 to compile libc.
Thanks to buggs for pointing to right GCC PR.
Joerg Sonnenberger [Fri, 23 Jan 2004 11:01:58 +0000 (11:01 +0000)]
Clean multiline string literal for gcc3
Joerg Sonnenberger [Fri, 23 Jan 2004 10:59:53 +0000 (10:59 +0000)]
Rename GCCVER to CCVER and prepend gcc to the former values
Matthew Dillon [Fri, 23 Jan 2004 00:39:25 +0000 (00:39 +0000)]
Add a 'dd' prior to the first fdisk to cover situations where people are
uprading from very old or extended boot blocks which might not otherwise
be completely wiped by fdisk, boot0cfg, and disklabel. Old left over cruft
often causes systems to panic with a BTX fault, usually due to bad
track/cylinder specifications in the boot sector which cause an overflow
(and often a divide by 0) fault in the BIOS.
Matthew Dillon [Fri, 23 Jan 2004 00:36:23 +0000 (00:36 +0000)]
Fix some type-o's and add some info on things to try if your initial attempt
to boot from the HD fails. Also add missing cylinder group specifications
from the example disklabel.
Joerg Sonnenberger [Thu, 22 Jan 2004 23:05:48 +0000 (23:05 +0000)]
Fix missing .. from last commit
Joerg Sonnenberger [Thu, 22 Jan 2004 21:45:57 +0000 (21:45 +0000)]
Add C++ runtime libraries for gcc3
Joerg Sonnenberger [Thu, 22 Jan 2004 21:36:10 +0000 (21:36 +0000)]
Implement __cxa_atexit and __cxa_finalize as requested by the cross-platform
C++ ABI. Adjust atexit to use the new interface.
Joerg Sonnenberger [Thu, 22 Jan 2004 21:09:38 +0000 (21:09 +0000)]
Conditionalize use of vfscanf
Matthew Dillon [Thu, 22 Jan 2004 19:39:13 +0000 (19:39 +0000)]
Use the fliesystem block size instead of BUFSIZ when the client sends files.
Joerg Sonnenberger [Thu, 22 Jan 2004 19:29:55 +0000 (19:29 +0000)]
Add directories for lib/gcc3/libstdc++
Joerg Sonnenberger [Thu, 22 Jan 2004 18:56:00 +0000 (18:56 +0000)]
Merge from vendor branch LIBSTDC++:
Import libstdc++ from GCC 3.3.3-pre
20031106.
Joerg Sonnenberger [Thu, 22 Jan 2004 18:56:00 +0000 (18:56 +0000)]
Import libstdc++ from GCC 3.3.3-pre
20031106.
Eirik Nygaard [Thu, 22 Jan 2004 17:30:30 +0000 (17:30 +0000)]
Let the man page know about varsym links.
Jeroen Ruigrok/asmodai [Thu, 22 Jan 2004 17:03:22 +0000 (17:03 +0000)]
Add missing comma.
Noticed by: Peter Kadau <peter.kadau@tuebingen.mpg.de>
Eirik Nygaard [Thu, 22 Jan 2004 12:04:58 +0000 (12:04 +0000)]
His name is Fred.
Eirik Nygaard [Thu, 22 Jan 2004 12:01:18 +0000 (12:01 +0000)]
Catch up with recent libc updates.
* Add devname_r
* Add stack protector
* Remove unused header files / add needed one
Jeroen Ruigrok/asmodai [Thu, 22 Jan 2004 08:08:46 +0000 (08:08 +0000)]
Fix misunderstood commit. The CX20463 is not the AC'97 codec. It _is_
the HSD11246. Change name.
Jeroen Ruigrok/asmodai [Thu, 22 Jan 2004 08:04:55 +0000 (08:04 +0000)]
Fix the entry for the CX20468. The base default is 28h, not 29h.
Add a mask of 7h to pick up potential revisions.
Jeroen Ruigrok/asmodai [Thu, 22 Jan 2004 07:57:43 +0000 (07:57 +0000)]
Add support for the Conexant SmartDAA 20463.
Sometimes erroneously referred to as HSD11246.
Interesting tidbit: Conexant thinks 21h is ACSII[sic] for "1".
Jeroen Ruigrok/asmodai [Thu, 22 Jan 2004 07:38:42 +0000 (07:38 +0000)]
Add Texas Instruments' TLV320AIC27 AC'97 codec.