Sascha Wildner [Fri, 12 Oct 2012 09:03:36 +0000 (11:03 +0200)]
kernel/sound: Add PCMTRIG_COMMON (from FreeBSD).
Sascha Wildner [Fri, 12 Oct 2012 09:03:06 +0000 (11:03 +0200)]
kernel: Comment out the new uaudio_pcm.c for now, it doesn't build yet.
Sascha Wildner [Fri, 12 Oct 2012 08:57:12 +0000 (10:57 +0200)]
customcc/compilers.conf: Some adjustments and simplifications.
* pkgsrc's clang no longer needs special handling for C++ compilation.
* Use gcc44's cpp, gcc41 is gone.
* -dumpversion is now understool by both pkgsrc's and SVN trunk's
clang, so no special handling needed for that either.
Based on an older patch I did with Juan Francisco a year ago.
Reported-by: Juan Francisco Cantero Hurtado <iam@juanfra.info>
Joris Giovannangeli <joris@giovannangeli.fr>
Tested-by: Joris Giovannangeli <joris@giovannangeli.fr>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2205>
Sascha Wildner [Fri, 12 Oct 2012 08:16:20 +0000 (10:16 +0200)]
kernel: Some adjustments for the GCC 4.1 removal in Makefiles.
Sascha Wildner [Fri, 12 Oct 2012 08:12:57 +0000 (10:12 +0200)]
UPDATING: Some words about GCC 4.7.
Sascha Wildner [Fri, 12 Oct 2012 07:53:20 +0000 (09:53 +0200)]
compilers.conf.5: We only describe non-base compilers here.
"gcc47" is no longer handled via compilers.conf.
Sascha Wildner [Fri, 12 Oct 2012 07:34:00 +0000 (09:34 +0200)]
kernel: Add KOBJMETHOD_END and use it.
Sascha Wildner [Fri, 12 Oct 2012 06:25:36 +0000 (08:25 +0200)]
usb4bsd/uether: Missing argument in usb_ether_method's ue_ioctl() member.
Sascha Wildner [Fri, 12 Oct 2012 06:24:06 +0000 (08:24 +0200)]
usb4bsd/if_udav: Comment out a variable (usage is not yet enabled).
Sascha Wildner [Fri, 12 Oct 2012 06:23:02 +0000 (08:23 +0200)]
usb4bsd/audio: 'static' has to be at the beginning of the declaration.
Sascha Wildner [Fri, 12 Oct 2012 05:44:34 +0000 (07:44 +0200)]
Remove old USB stuff when the new stack is requested.
Sascha Wildner [Fri, 12 Oct 2012 05:00:48 +0000 (07:00 +0200)]
Makefile_upgrade.inc: Adjust modules path.
This can be helpful in cases where old modules for some reason
had not been cleaned when the location was still /boot/modules
and have ended up getting objcopy'd to /boot/kernel after the
location was changed.
Sepherosa Ziehau [Fri, 12 Oct 2012 03:04:04 +0000 (11:04 +0800)]
emx: Remove unused statistics
Sepherosa Ziehau [Fri, 12 Oct 2012 02:52:37 +0000 (10:52 +0800)]
ifpoll: Don't bark, if status poll handler does not exist
Since no status poll handler is allowed, don't do meaningless error logging
Sepherosa Ziehau [Fri, 12 Oct 2012 02:46:27 +0000 (10:46 +0800)]
ifpoll: Don't pass pollhz to status poll handler
It is not useful at all.
Sepherosa Ziehau [Fri, 12 Oct 2012 01:21:18 +0000 (09:21 +0800)]
jme: Let callout run on CPU0, this is where main serializer is held
Matthew Dillon [Thu, 11 Oct 2012 21:34:09 +0000 (14:34 -0700)]
kernel - Fix i386 pmap bug
* mpte will be NULL for KVM page table pages, there is no need to track
the wire count. Conditionalize-out the unwiring call.
* This is believed to be (this time for sure to the third power!) the
PG_BUSY crash that vsrinivas was getting on i386 related to paging
in a swapped kernel pipe buffer.
Matthew Dillon [Thu, 11 Oct 2012 19:12:25 +0000 (12:12 -0700)]
kernel - Make pcb_onfault more robust.
* Record the expected kernel stack pointer along with the pcb_onfault
action. Adjust the trap code to only take the action if the frame's
stack pointer matches the recorded expected stack pointer.
Otherwise this might be a recursive trap and we definitely do NOT want
to execute the on-fault stuff in that situation.
* Prior to these changes recursive traps during uiomove()s could result
in a kernel stack so corrupt that finding the actual cause of the panic
becomes impossible. This is believed to be making life difficult for us
trying to track down a particular i386 panic.
* On x86-64 we had to increase the size of the pcb structure. kgdb on
kernel cores and live kernels will be effected (needs recompile).
Matthew Dillon [Thu, 11 Oct 2012 15:36:45 +0000 (08:36 -0700)]
top - Use RES by default instead of PRES
* The kernel support for PRES was removed during the SMP fine-grained
locking work on the VM system last year so top was reporting 0K for
everything. Change top to go back to RES.
Sascha Wildner [Thu, 11 Oct 2012 13:40:41 +0000 (15:40 +0200)]
usb4bsd: Add uether dependency for compiling udav into the kernel.
Sascha Wildner [Thu, 11 Oct 2012 13:35:38 +0000 (15:35 +0200)]
usb4bsd: Fix the compilation of the remaining drivers into the kernel.
Sascha Wildner [Thu, 11 Oct 2012 13:35:22 +0000 (15:35 +0200)]
usb4bsd: Fix some compilation warnings.
Sascha Wildner [Thu, 11 Oct 2012 09:24:08 +0000 (11:24 +0200)]
usb4bsd: Allow some parts to be built into the kernel.
This is for the core support, and for uhci, ohci, ehci and xhci.
To do this, replace:
device usb
with
device "usb4bsd"
in the config. The quotes are needed at the moment to cope with a
weakness in our config(8) that needs fixing.
Based-on-patch-submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Thu, 11 Oct 2012 09:18:50 +0000 (11:18 +0200)]
kernel/mii_layer: Little indentation fix.
Sascha Wildner [Thu, 11 Oct 2012 09:18:06 +0000 (11:18 +0200)]
usb4bsd: Port network devices (uether, udav, axe) and hook into build.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 10 Oct 2012 22:55:15 +0000 (00:55 +0200)]
usb4bsd: Port input devices (uep, uhid, ukbd, ums) and hook into build.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 10 Oct 2012 22:06:44 +0000 (00:06 +0200)]
usb4bsd: Fixes, fixes, fixes.
* Fix a panic when trying to free null pointer in usb_free_device.
* Fix a panic due to wrong assignment of locks.
* Fix kqueue handling.
* Add debug helpers.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 10 Oct 2012 21:46:53 +0000 (23:46 +0200)]
usb4bsd: Implement umass scsi probing on attach.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Sun, 7 Oct 2012 15:25:03 +0000 (17:25 +0200)]
usb4bsd: Bring in FreeBSD's uaudio driver.
This is based on FreeBSD SVN r231881.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Tue, 2 Oct 2012 04:21:24 +0000 (06:21 +0200)]
usb4bsd: Separate building of the old USB modules.
Don't build the old USB driver modules when WANT_USB4BSD is set.
Also, do some cleanup in some of the Makefiles, while I'm here.
Sascha Wildner [Mon, 1 Oct 2012 04:04:09 +0000 (06:04 +0200)]
usb4bsd: Cleanup pass.
* Adjust indentation, whitespace and typos.
* Uniformly use #if 0 to deactivate code instead of C comments.
Sascha Wildner [Thu, 27 Sep 2012 07:51:55 +0000 (09:51 +0200)]
usb4bsd: Hook usb, ehci, ohci, uhci, xhci, umass, and usfs into the build.
Adds some missing Makefiles and adjusts others.
With this commit, the corresponding modules all build when WANT_USB4BSD
is set, but they are not guaranteed to work. More bugs will be fixed in
subsequent commits.
The new USB code can't yet be built into the kernel.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 26 Sep 2012 17:31:51 +0000 (19:31 +0200)]
usb4bsd: Perform the usual porting on the controller, storage and core code.
malloc -> kmalloc, printf -> kprintf, locking, and so forth.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 26 Sep 2012 16:00:13 +0000 (18:00 +0200)]
usb4bsd: Generate usbdevs.h and usbdevs_data.h.
Also, rename devlist2h.awk to usbdevs2h.awk and remove our CVS ID in
Makefile.usbdevs.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 26 Sep 2012 07:27:25 +0000 (09:27 +0200)]
<bus/pci/pcireg.h>: Add a definition for XHCI programming interface.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Wed, 26 Sep 2012 00:00:09 +0000 (02:00 +0200)]
usb4bsd: Hook the userland part into the build.
Define a new make.conf(5) variable, WANT_USB4BSD, which (if set) causes
the new USB's userland to be built (similar to WANT_NETGRAPH7).
Sascha Wildner [Tue, 25 Sep 2012 21:15:43 +0000 (23:15 +0200)]
usb4bsd: Adjust header paths in libusbhid, usbhidctl, and public headers.
Also remove some __FBSDID's.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sascha Wildner [Tue, 25 Sep 2012 21:11:40 +0000 (23:11 +0200)]
usb4bsd: Bring in FreeBSD's libusbhid, usbhidctl and USB kernel code.
In order to make it live peacefully along with our old USB code, name
all directories with new USB code *u4b* instead of *usb*.
This is FreeBSD SVN r231881.
Submitted-by: Markus Pfeiffer <markus.pfeiffer@morphism.de>
Sepherosa Ziehau [Thu, 11 Oct 2012 06:54:52 +0000 (14:54 +0800)]
acpi/pstate: Be lenient about wrong # of processors in the power domain
Some stupid BIOSes seem to consider two logic CPUs (hyperthreading) as
one CPU. Don't bail out; just print some error messages.
Reported-by: dillon@
Matthew Dillon [Thu, 11 Oct 2012 06:43:03 +0000 (23:43 -0700)]
kernel - Use atomic op for usched_global_cpumask
* Use atomic op for usched_global_cpumask in the cpu init code. This
code is serialized anyway, I think, but it is best to be safe.
* Add cpu_ccfence() to ensure that the compiler does not reorder the
clearing of the mask in the cpusync code.
Sepherosa Ziehau [Thu, 11 Oct 2012 05:55:28 +0000 (13:55 +0800)]
jme: Cache align software TX/RX descriptor data
Sepherosa Ziehau [Thu, 11 Oct 2012 05:54:08 +0000 (13:54 +0800)]
cachealign: Fix __VM_CACHELINE_ALIGN
With-Input-from: dillon@
Sepherosa Ziehau [Thu, 11 Oct 2012 05:52:55 +0000 (13:52 +0800)]
ktr: Use __cachealign to align ktr_cpu
The version of __VM_CACHELINE_ALIGN will not properly pad struct to
the cache line size.
Reviewed-by: dillon@
Sepherosa Ziehau [Thu, 11 Oct 2012 01:53:19 +0000 (09:53 +0800)]
aesni: Utilize kmalloc M_POWEROF2
Matthew Dillon [Wed, 10 Oct 2012 23:43:57 +0000 (16:43 -0700)]
kernel - Remove debugging from i386 pmap
* Remove i386 pmap debugging kprintf.
Matthew Dillon [Wed, 10 Oct 2012 23:36:19 +0000 (16:36 -0700)]
kernel - Add MODULE_VERSION for if_ale
* Seems to solve boot-time lockup when if_ale is built into the kernel
AND also specified in /boot/loader.conf
* Related issues now being reviewed by swildner
Matthew Dillon [Wed, 10 Oct 2012 21:47:57 +0000 (14:47 -0700)]
kernel - Probable fix to vm_fault: PG_BUSY panic on i386
* The info structure for the pmap_inval*() API is only initialized
conditionally as an optimization.
* There was a case where the info structure was being used without
first being initialized which matches reported panics (essentially
a pipe buffer page in kernel memory is swapped out and the faulted back
in during a uiomove).
Reported-by: vsrinivas, marino, several others
Matthew Dillon [Wed, 10 Oct 2012 20:24:59 +0000 (13:24 -0700)]
kernel - Fix missing LWKT token init in linprocfs
* Fix missing LWKT token init in linprocfs. linprocfs_init() was not
being called.
Reported-by: marino
Matthew Dillon [Wed, 10 Oct 2012 19:13:35 +0000 (12:13 -0700)]
kernel - Adjust cache_fullpath() API
* Add another argument to explicitly specify the base directory that the
path is to be relative to.
Sepherosa Ziehau [Wed, 10 Oct 2012 12:49:59 +0000 (20:49 +0800)]
kmalloc: Streamline the code a little bit
Sepherosa Ziehau [Wed, 10 Oct 2012 12:44:54 +0000 (20:44 +0800)]
kmalloc: Fix comment
Sepherosa Ziehau [Wed, 10 Oct 2012 12:43:27 +0000 (20:43 +0800)]
kmalloc: Use powerof2() to detect power-of-2 size
Sepherosa Ziehau [Wed, 10 Oct 2012 12:40:57 +0000 (20:40 +0800)]
kmalloc: No need to call fls if the size is already power-of-2 aligned
Reduce code complexity
Sepherosa Ziehau [Wed, 10 Oct 2012 12:10:20 +0000 (20:10 +0800)]
kmalloc_cachealign: Utilize kmalloc() chunk size aligned property
Avoid power-of-2 rounding up if the to-be-used zone is already
aligned properly.
Suggested-by: dillon@
Sepherosa Ziehau [Wed, 10 Oct 2012 09:38:41 +0000 (17:38 +0800)]
kmalloc: Add comment about alignment property
Sepherosa Ziehau [Wed, 10 Oct 2012 09:17:12 +0000 (17:17 +0800)]
kmalloc: Make allocation zone's chunk size align
Remove no longer used macros.
Discussed-with: dillon@
Submitted-by: dillon@
Sepherosa Ziehau [Tue, 9 Oct 2012 09:56:55 +0000 (17:56 +0800)]
jme: Put TX related stuffs into struct jme_txdata
While I'm here, add more comment
Sepherosa Ziehau [Tue, 9 Oct 2012 08:46:31 +0000 (16:46 +0800)]
jme: Move uncommonly accessed fields to the end of the struct
Justin C. Sherrill [Tue, 9 Oct 2012 03:25:57 +0000 (23:25 -0400)]
Branching 3.2/3.3
Matthew Dillon [Tue, 9 Oct 2012 00:56:09 +0000 (17:56 -0700)]
kernel - Fix UP build for usched_dfly.c
* Fix UP build errors
Reported-by: multiple
Antonio Huete Jimenez [Mon, 8 Oct 2012 14:28:20 +0000 (16:28 +0200)]
vkernel - Properly initialize pool tokens.
* There was no call to init_locks() in vkernel's initialization
code, so provide one.
* As pool tokens weren't initialized, the attempt to copy its
t_desc in lwkt_getalltokens() resulted in a panic. This should
be fixed now.
* Add a KASSERT() so that uninitialized tokens will panic the system.
Suggested by: swildner
Sascha Wildner [Mon, 8 Oct 2012 12:53:28 +0000 (14:53 +0200)]
kmalloc.9: Document M_POWEROF2.
Sepherosa Ziehau [Mon, 8 Oct 2012 12:14:56 +0000 (20:14 +0800)]
kmalloc: Use 'fls' to round up the size to the nearest power of 2
On average tests conducted on Intel i3, i7 and xeon-e3 in x86_64 mode,
fls version is 3 times faster than the simple loop version.
Submitted-by: vsrinivas@
Also M_POWEROF2 flag is used to do the nearest power of 2 size rounding
up, instead of a seperate function (was kmalloc_powerof2)
Suggested-by: sjg@, vsrinivas@
John Marino [Sun, 7 Oct 2012 17:34:31 +0000 (19:34 +0200)]
libgcc.a47: build with -fpic
The vendor makefile builds libgcc.a with the PIC flag. The x86_64
platform needs it for packages that need need to link to libgcc.a
Matthew Dillon [Sun, 7 Oct 2012 23:39:37 +0000 (16:39 -0700)]
build - Unbreak world
* Fix issue w/ last commit
Submitted-by: marino
John Marino [Sun, 7 Oct 2012 21:27:36 +0000 (23:27 +0200)]
Use GCC's builtin offset_of as the first option
Other than C++ code, the GCC offsetof builtin was never getting used.
The version that did get expanded could not be used for array
declarations on GCC 4.5 and later because it wasn't considered a
constant expression by those later GCC compilers.
The first symptom was seen when building world with GCC 4.6, but the
the offsetof expansion was finally identified as the cause of the
problem while discussion PostgreSQL 9.1 build failures on DragonFly.
Since DragonFly was the only platform exibiting the behavior, the
problem was narrowed down to the offsetof macro or the compiler itself.
Fixing the macro allowed the unpatched pgsql to compile.
Thanks-to: Tom Lane
Sepherosa Ziehau [Sun, 7 Oct 2012 06:14:22 +0000 (14:14 +0800)]
ifpoll: Utilize kmalloc_cachealign()
Sepherosa Ziehau [Sun, 7 Oct 2012 04:53:42 +0000 (12:53 +0800)]
busdma: Panic if the kmalloc_powerof2() fails to meet the dma requirement
Sepherosa Ziehau [Sun, 7 Oct 2012 04:40:57 +0000 (12:40 +0800)]
busdma: Utilize kmalloc_powerof2()
Sepherosa Ziehau [Sun, 7 Oct 2012 04:22:35 +0000 (12:22 +0800)]
igb: Use kmalloc_cachealign to allocate rx ring, tx ring and msix data
Sepherosa Ziehau [Sun, 7 Oct 2012 04:14:52 +0000 (12:14 +0800)]
kmalloc: Add kmalloc_powerof2() and kmalloc_cachealign()
kmalloc_powerof2()
Ensures that the returned address will be power of 2 aligned.
kmalloc_cachealign()
Ensures that the returned address will be cacheline size aligned.
It is useful to allocate structs declared with __cachealign
attribute.
These two function probably should _not_ be used on the hot code path
due to the computational cost to find the nearest power of 2 size.
Sepherosa Ziehau [Sat, 6 Oct 2012 15:03:22 +0000 (23:03 +0800)]
igb: Cache align msix, rx and tx data
Sepherosa Ziehau [Sat, 6 Oct 2012 15:02:52 +0000 (23:02 +0800)]
igb: Remove unused code
Sepherosa Ziehau [Sat, 6 Oct 2012 10:59:50 +0000 (18:59 +0800)]
igb: Change polling(4) support to ifpoll support
For 82576, this means that all of the 16 RX rings could be enabled
and fully utilized; even in MSI-X mode, only 8 RX rings could be
used.
Sascha Wildner [Sat, 6 Oct 2012 13:03:29 +0000 (15:03 +0200)]
kernel/ixgbe: Remove double definition.
François Tigeot [Sat, 6 Oct 2012 09:27:28 +0000 (11:27 +0200)]
ixgbe: Define missing DEBUGOUT# macros.
DEBUGOUT[45] are not yet used but are being defined pre-emptively
to avoid future build breakage
Obtained-from: FreeBSD
Sascha Wildner [Sat, 6 Oct 2012 10:14:45 +0000 (12:14 +0200)]
kernel/hammer: Staticize hammer_skip_redo.
It's just used in hammer_recover.c.
Sepherosa Ziehau [Sat, 6 Oct 2012 10:00:45 +0000 (18:00 +0800)]
re: Don't enable MSI by default
Sepherosa Ziehau [Sat, 6 Oct 2012 09:45:08 +0000 (17:45 +0800)]
igb: Initialize if_name so functions used on if_init could use if_printf
Sascha Wildner [Fri, 5 Oct 2012 13:56:03 +0000 (15:56 +0200)]
Remove some more GCC 4.1 specific files via 'make upgrade'.
Tim Bisson [Mon, 19 Mar 2012 02:39:37 +0000 (19:39 -0700)]
re(4): Use MSI if device supports it.
RT8168E supports MSI.
Matthew Dillon [Fri, 5 Oct 2012 05:15:04 +0000 (22:15 -0700)]
kernel - Acquire vm_token in pmap_remove_all() (3)
* Correct bug in last commit, resident_count adjustment has to be
moved past the revalidation.
Matthew Dillon [Fri, 5 Oct 2012 05:09:30 +0000 (22:09 -0700)]
kernel - Acquire vm_token in pmap_remove_all() (2)
* Remove this, the token is already acquired in all pmap_remove_all()
paths.
* Instead, try catching the problem in pmap_remove_all(m) by re-validating
the pv_entry (essentially detecting a removal race).
Matthew Dillon [Fri, 5 Oct 2012 04:16:02 +0000 (21:16 -0700)]
kernel - (fix syntax error last commit)
* i386 pmap.c
Matthew Dillon [Fri, 5 Oct 2012 04:14:32 +0000 (21:14 -0700)]
kernel - Acquire vm_token in pmap_remove_all()
* Kitchen sink try to fix the wire_count panic, acquire vm_token
in pmap_remove_all().
Matthew Dillon [Fri, 5 Oct 2012 03:51:02 +0000 (20:51 -0700)]
kernel - Fix edge case with machdep.pmap_mmu_optimize on x86-64
* Fix two edge cases when enabling or disabling machdep.pmap_mmu_optimize,
causing a shared page table page to be reverted to a local page table page
and vise-versa.
* Remove debugging kprintf()s
Reported-by: thesjg
Sascha Wildner [Thu, 4 Oct 2012 16:58:37 +0000 (18:58 +0200)]
gcc47: Remove a gcc-aux leftover.
John Marino [Thu, 4 Oct 2012 16:17:47 +0000 (18:17 +0200)]
bsd.prog.mk: Avoid redefining $PROG target
In rare cases, the PROG target is intentionally redefined before
including bsd.prog.mk, but when that happens a target redefinition
warning is emitting. This adds a check for a pre-existing $PROG
target before attempting to define it.
It stops warnings from being emitted when loader and loader_tftp
are built.
John Marino [Thu, 4 Oct 2012 16:03:52 +0000 (18:03 +0200)]
gcc47: Restore cross-build capability
The internal specs of gcc47 featured an hardcoded standard include
directory which prevented cross-target builds. The same mistake also
caused the "crosstools" compiler in a native build to look at the host
system includes instead of the world_{TARGET}/usr/includes directory.
As a result, the cross-build would break as soon as GCC47 was used to
build its own libraries.
A stage-specific prefix was added to the internal specs directory
definition that restored cross-target building capability.
François Tigeot [Wed, 3 Oct 2012 10:04:56 +0000 (12:04 +0200)]
ixgbe: Do not use mbuf jumbo clusters
* They caused crashes when using jumbo frames; the root of the issue should
probably be investigated further but the driver works perfectly with this
change.
* Single-stream TCP performance has been measured up to 9.89 Gb/s with
mtu=16114
John Marino [Wed, 3 Oct 2012 00:42:34 +0000 (02:42 +0200)]
Makefile.inc1: Unbreak buildworld
There was a bootstrap problem with gcc47.
For systems without gcc47 (which is almost all of them), the buildworld
failed on the first gcc47 libraries which require gcc47 to build. The
gnu/lib/gcc47/csu target was duplicated and the makefile was attempting
to build it before gcc47 was installed.
Nuno Antunes [Tue, 2 Oct 2012 06:39:26 +0000 (07:39 +0100)]
kernel: Fix a few more mbuf MB_* vs. kmalloc M_* flag misuses.
John Marino [Tue, 2 Oct 2012 20:07:43 +0000 (22:07 +0200)]
libstdc++47: fix wrong vec.o inclusion
The vec.cc file never got compiled for libstdc++. The gcc/vec.c object
file was getting included into the library instead. This change
effectively renames vec.cc to avoid name clashes.
This also allows gcc47 to completely build world.
Sascha Wildner [Tue, 2 Oct 2012 11:43:30 +0000 (13:43 +0200)]
mtree: Use spaces for indentation.
François Tigeot [Tue, 2 Oct 2012 05:59:33 +0000 (07:59 +0200)]
ixgbe: Use MB_DONTWAIT with mbuf operations
* M_NOWAIT is only valid with kmalloc(9)
John Marino [Mon, 1 Oct 2012 17:39:37 +0000 (19:39 +0200)]
bsd.sys.mk: Remove -Werror flag from gcc47 builds
While most of the breakage caused by new GCC47 warnings have been fixed,
swildner would prefer to complete the task and review the previously
and hastily submitted warning fixes at his leisure.
To accommodate this, the -Werror flag is removed when gcc47 is used to
build so the new warnings will pass by harmlessly. swildner will
restore the -Werror flag when his task is complete.
John Marino [Mon, 1 Oct 2012 17:32:45 +0000 (19:32 +0200)]
gcc47 warnings: A few more fixes
usr.bin/make pass -fno-address, NO_WERROR=true
usr.bin/monitor modified source file
usr.bin/netstat modified source file (2)
usr.bin/sdpquery WARNS=2, pass -fno-unused-but-set-variable
Make has several evaluations that gcc47 believes will always
(without exception) evaluate to true or false. Likely gcc47 is not
detecting some cases correctly, so -Wno-address was passed to it.
However, -Werror overrides it, so NO_WERROR had to be set on this
Makefile.
The remaining GCC warnings will be left for swildner to handle.
The -Werror flag will be suppress for GCC47 until further notice.
John Marino [Mon, 1 Oct 2012 12:52:03 +0000 (14:52 +0200)]
libstdc++47: Fix c++config.h race
With high job numbers, sometimes c++config.h would get included before
it finished getting generated. Solve this race by using "depend all"
which should ensure c++config.h gets generated before anything else
in libstdc++ starts to build.
John Marino [Sat, 29 Sep 2012 20:47:42 +0000 (22:47 +0200)]
Switch on gcc47 and switch off gcc41
Replace GCC 4.1 with GCC 4.7. The primary compiler remains GCC 4.4
and the source and makefiles for GCC 4.1 remain intact so it can be
brought back if necessary. All references to GCC 4.1 in documentation
where updated to reflect version 4.7.
A full world build is probably required after this point.
John Marino [Sat, 29 Sep 2012 20:14:07 +0000 (22:14 +0200)]
gcc47: Add DragonFly READMEs and world makefiles