summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove macros that are not really needed. The idea was to have them in casepjd2010-06-141-20/+12
| | | | | | | | | | | we grow more descriptors, but I'll reconsider readding them once we get there. Passing (a = b) expression to FD_ISSET() is bad idea, as FD_ISSET() evaluates its argument twice. Found by: Coverity Prevent CID: 5243 MFC after: 3 days
* Eliminate dead code.pjd2010-06-141-3/+1
| | | | | | Found by: Coverity Prevent CID: 5158 MFC after: 3 days
* Fix ACPI suspend/resume on amd64, which was broken since r208833.jkim2010-06-142-2/+2
| | | | We need actual storage for FPU state to save and restore.
* Eliminate checks for a page having a NULL object in vm_pageout_scan()alc2010-06-142-42/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and vm_pageout_page_stats(). These checks were recently introduced by the first page locking commit, r207410, but they are not needed. At the same time, eliminate some redundant accesses to the page's object field. (These accesses should have neen eliminated by r207410.) Make the assertion in vm_page_flag_set() stricter. Specifically, only managed pages should have PG_WRITEABLE set. Add a comment documenting an assertion to vm_page_flag_clear(). It has long been the case that fictitious pages have their wire count permanently set to one. Add comments to vm_page_wire() and vm_page_unwire() documenting this. Add assertions to these functions as well. Update the comment describing vm_page_unwire(). Much of the old comment had little to do with vm_page_unwire(), but a lot to do with _vm_page_deactivate(). Move relevant parts of the old comment to _vm_page_deactivate(). Only pages that belong to an object can be paged out. Therefore, it is pointless for vm_page_unwire() to acquire the page queues lock and enqueue such pages in one of the paging queues. Generally speaking, such pages are immediately freed after the call to vm_page_unwire(). Previously, it was the call to vm_page_free() that reacquired the page queues lock and removed these pages from the paging queues. Now, we will never acquire the page queues lock for this case. (It is also worth noting that since both vm_page_unwire() and vm_page_free() occurred with the page locked, the page daemon never saw the page with its object field set to NULL.) Change the panic with vm_page_unwire() to provide a more precise message. Reviewed by: kib@
* Further unbreak powerpc & sparc64.marcel2010-06-141-1/+3
|
* Add Clang to OptionalObsoleteFiles.inc.ed2010-06-141-0/+12
| | | | | This means you can now deinstall Clang by running make delete-old with WITHOUT_CLANG set.
* Fix TX retry rate handling. tx->linkq is an index to a rate tablebschmidt2010-06-141-1/+1
| | | | | | | | | | beginning with the highest available rate. Currently we always use 54m for the first retry no matter what AMRR has choosen. Fix this by setting the index to the next lower rate. Approved by: rpaulo (mentor) Tested by: Brandon Gooch <jamesbrandongooch at gmail.com> MFC after: 2 weeks
* Update vfs_busy(9) and vfs_unbusy(9) manual pages to better match thejh2010-06-142-18/+11
| | | | | | current behaviour of the functions. Discussed with: attilio
* Pass the -N flag to linked via -Wl.rdivacky2010-06-141-1/+1
| | | | Approved by: ed (mentor)
* Temporarily bring back the ARM bootinfo (and make tinderbox happy).raj2010-06-142-0/+78
| | | | BI will be eliminated for good when powerpc transition to FDT is complete.
* Remove unused files.rpaulo2010-06-1427-16422/+0
|
* Update for hostapd & wpa_supplicant 0.6.10.rpaulo2010-06-144-484/+2
|
* MFV hostapd & wpa_supplicant 0.6.10.rpaulo2010-06-14192-896/+31845
|\
| * Import wpa_supplicant & hostapd 0.6.9.rpaulo2010-06-13257-916/+52748
| |
* | random(6): avoid dead assignmentsuqs2010-06-142-2/+2
| | | | | | | | Found by: clang static analyzer
* | sc_lastrs is also used in case the sending station is not known, forbschmidt2010-06-141-9/+3
| | | | | | | | | | | | | | example in a split IBSS scenario. Therefore always assign sc_lastrs. This removes a hack I committed in r206457. Approved by: rpaulo (mentor)
* | Fix bug introduced in SVN rev 194985. When calling pic_assign_cpu()mav2010-06-142-2/+2
| | | | | | | | | | for pre-bound IRQs during boot, submit there LAPIC ID, same as in other places, not CPU ID.
* | Virtualize pci_remap_msi_irq() call from general MSI code. It allows MSImav2010-06-144-12/+29
| | | | | | | | (FSB interrupts) to be used by non-PCI devices, such as HPET.
* | Unbreak Clang on PowerPC.ed2010-06-141-1/+6
| | | | | | | | | | | | | | | | It seems GCC 4.2.1 on PowerPC miscompiles Clang, causing it to crash when building even simple Hello World applications. Switch back to -O1 for this architecture. Submitted by: nwhitehorn
* | If the compressed data is larger than the uncompressed,kientzle2010-06-142-2/+13
| | | | | | | | | | | | | | | | | | | | report the compression ratio as 0% instead of displaying nonsense triggered by numeric overflow. This is common when dealing with uncompressed files when the I/O blocking causes there to be small transient differences in the accounting. Thanks to: Boris Samorodov
* | Separate _posix1e_acl_id_to_name() into a separate file, tokientzle2010-06-143-55/+101
| | | | | | | | | | | | break an unnecessary dependency on getpwuid() and getgrgid(). MFC after: 1 month
* | - Because hostapd calls iv_key_set() before if_init(), make sure key_setthompsa2010-06-142-18/+39
| | | | | | | | | | | | | | | | | | | | | | callback function will be executed, and that the key won't be deleted during the init process. - txmic and rxmic are written into the chip the same place regardless of opmode. - Make the hardware generate 802.11 sequence numbers. Submitted by: Akinori Furukoshi Obtained from: git://gitorious.org/run/run.git
* | Fix build breakages on ia64 introduced some commits ago.marcel2010-06-132-36/+37
| |
* | Update a branch missed in r207537.marius2010-06-131-1/+1
| | | | | | | | MFC after: 3 days
* | libedit: Add basic filename completion code from NetBSD.jilles2010-06-134-3/+588
| | | | | | | | | | | | | | | | | | | | | | | | This will be used to provide filename completion in sh(1). Changes from the NetBSD code: * wide character support disabled, as in the rest of libedit * config.h and related portability stuff reduced/disabled, as in the rest of libedit Submitted by: Guy Yur Obtained from: NetBSD
* | style(9) fixes:imp2010-06-131-5/+3
| | | | | | | | | | | | | | | | | | o make cmd scoped to the whole do_rules function, since it really is scoped to the whole fucnion. Making it static was the wrong way to fix referencing it outside of the block in which it was declared (and conforms to the style of the rest of the file). o remove a couple of meaningless blank lines o properly wrap one line.
* | Merge from tbemd, with minor tweaks:imp2010-06-131-1/+5
| | | | | | | | | | | | Search from most specific ($MACHINE) to least specific ($MACHINE_CPUARCH) when looking for the tty file to use. Also add an .error case if none exist.
* | Enable ofwdump(8) on ARM as this is a useful tool to inspect a flattenedraj2010-06-131-0/+4
| | | | | | | | device tree.
* | Convert Marvell ARM platforms to FDT convention.raj2010-06-1340-2585/+1646
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following systems are involved: - DB-88F5182 - DB-88F5281 - DB-88F6281 - DB-78100 - SheevaPlug This overhaul covers the following major changes: - All integrated peripherals drivers for Marvell ARM SoC, which are currently in the FreeBSD source tree are reworked and adjusted so they derive config data out of the device tree blob (instead of hard coded / tabelarized values). - Since the common FDT infrastrucutre (fdtbus, simplebus) is used we say good by to obio / mbus drivers and numerous hard-coded config data. Note that world needs to be built WITH_FDT for the affected platforms. Reviewed by: imp Sponsored by: The FreeBSD Foundation.
* | Initial FDT infrastructure elements for ARM.raj2010-06-133-0/+193
| | | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | Improve style.raj2010-06-131-1/+2
| |
* | Connect FDT infrastructure to the build system.raj2010-06-134-1/+72
| | | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | Provide identify method for the fdtbus(4).raj2010-06-131-0/+10
| | | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation
* | Do not set WITH_FDT by default based on arch, as this does not work forraj2010-06-131-11/+1
| | | | | | | | | | | | | | | | | | | | a bootstrap stage tool. FDT-enabled platforms will have to specify WITH_FDT explicitly at buildworld time for now until TBEMD is complete, which is going to provide means for such arch based selection of build components. Discussed with: imp
* | Fix conditional FDT support in loader(8).raj2010-06-133-2/+8
| |
* | Disable usage of posix_spawn() inside LLVM.ed2010-06-132-2/+2
| | | | | | | | | | | | | | | | | | Even though it's nice to use posix_spawn() instead of manually using fork()/exec(), it's better to disable this. FreeBSD 7 doesn't support this interface. When enabled, we can't build tblgen, which prevents us from building FreeBSD 9 on 7. Tested by: raj
* | Unbreak the build on less common architectures.ed2010-06-131-1/+6
| | | | | | | | Submitted by: Andreas Tobler <andreast list fgznet ch>
* | * Improve compatibility with existing application code by permitting thekaiw2010-06-132-13/+19
| | | | | | | | | | | | | | | | | | | | | | use of `elf_getbase()` on non-archive members. This change is needed for gcc LTO (-flto) to work properly. * Style fix: paranthesize returned values. * Document the current behaviour of `elf_getbase()`. Tested by: gerald, Steve Kargl (original patch) Obtained from: elftoolchain MFC after: 3 days
* | In NFS clients, instead of inconsistently using #ifdefkib2010-06-139-118/+50
| | | | | | | | | | | | | | | | DIAGNOSTIC and #ifndef DIAGNOSTIC for debug assertions, prefer KASSERT(). Also change one #ifdef DIAGNOSTIC in the new nfs server. Submitted by: Mikolaj Golub <to.my.trociny gmail com> MFC after: 2 weeks
* | Add a utility macro to simplify calculating an aggregate sum from a DPCPUlstewart2010-06-131-0/+11
| | | | | | | | | | | | | | | | counter variable. Sponsored by: FreeBSD Foundation Reviewed by: jhb, rpaulo, rwatson (previous version of patch) MFC after: 1 week
* | Merge from tbemd:imp2010-06-138-17/+7
| | | | | | | | | | Convert from using MACHINE_ARCH to MACHINE_CPUARCH. Hoist path statement up into the top Makefile rather than repeating it on every arch Makefile.
* | In threaded processes, destroy the mutex atexit_mutex when we'vecperciva2010-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | finished using it. This allows the mutex's allocated memory to be freed. This is one sense a rather silly change, since at this point we're less than a microsecond away from calling _exit; but fixing this memory leak is likely to make life easier for anyone trying to track down other memory leaks.
* | cxgb(4): add knob to get packet timestamps from the hardware.np2010-06-122-16/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The T3 ASIC can provide an incoming packet's timestamp instead of its RSS hash. The timestamp is just a counter running off the card's clock. With a 175MHz clock an increment represents ~5.7ns and the 32 bit value wraps around in ~25s. # sysctl -d dev.cxgbc.0.pkt_timestamp dev.cxgbc.0.pkt_timestamp: provide packet timestamp instead of connection hash # sysctl -d dev.cxgbc.0.core_clock dev.cxgbc.0.core_clock: core clock frequency (in KHz) # sysctl dev.cxgbc.0.core_clock dev.cxgbc.0.core_clock: 175000
* | make format string a string literal.np2010-06-121-1/+1
| | | | | | | | Reported by: clang
* | Make SMP work on MPC7400-based Apple desktops like the PowerMac3,3.nwhitehorn2010-06-122-10/+42
| |
* | These files are no longer required since r207607gavin2010-06-123-355/+0
| |
* | Introduce __isnanf() as an alias for isnanf(), and make the isnan()das2010-06-123-2/+10
| | | | | | | | | | | | | | | | | | | | | | macro expand to __isnanf() instead of isnanf() for float arguments. This change is needed because isnanf() isn't declared in strict POSIX or C99 mode. Compatibility note: Apps using isnan(float) that are compiled after this change won't link against an older libm. Reported by: Florian Forster <octo@verplant.org>
* | Install tblgen so partial / progressive builds are still possible.des2010-06-121-1/+1
| |
* | Do the branding right this time.ed2010-06-122-1/+5
| | | | | | | | | | | | | | | | | | I've looked at other places in the source tree where CLANG_VENDOR is used and I suspect it might not be safe to use newlines here. CLANG_VENDOR should just be defined to "FreeBSD ", just like the latest Clang preview in OS X uses "Apple ". Properly use SVN_REVISION to define it to the imported revision of Clang. I do want to have a date in there, so slightly modify the code to support CLANG_VENDOR_SUFFIX.
* | Add another variation of make_dev(9), make_dev_p(9), that is allowedkib2010-06-122-25/+58
| | | | | | | | | | | | | | | | to fail and can return useful error code. Requested by: jh Reviewed by: imp, jh MFC after: 3 weeks
OpenPOWER on IntegriCloud