summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
*-. Upgrade our Clang in base to r114020, from upstream's release_28 branch.dim2010-09-201469-71634/+93412
|\ \ | | | | | | | | | Approved-by: rpaulo (mentor)
| | * Vendor import of clang r114020 (from the release_28 branch):dim2010-09-17947-33921/+63717
| | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor)
| | * Make vendor/clang/dist exactly the same as upstream's r108428. Somedim2010-09-1636-10017/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files and directories were already added/removed in the upstream repository, but were not added/removed here, when the previous snapshot was imported. Note: I did not import the file test/Lexer/conflict-marker.c, because it contains merge conflict markers on purpose, which upsets our pre-commit hooks. Approved by: rpaulo (mentor)
| * | Vendor import of llvm r114020 (from the release_28 branch):dim2010-09-171399-33441/+60754
| | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/branches/release_28@114020 Approved by: rpaulo (mentor)
| * | Make vendor/llvm/dist exactly the same as upstream's r108428. Somedim2010-09-1659-28029/+0
| | | | | | | | | | | | | | | | | | | | | files and directories were already removed in the upstream repository, but were not removed here, when the previous snapshot was imported. Approved by: rpaulo (mentor)
* | | Tweak the stats exported by the e1000 drivers:jhb2010-09-204-346/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a single sysctl procedure to all three drivers to read an arbitrary register (the register is passed as arg2). Use it to replace existing routines in igb(4) that used a separate routine for each register, and to add support for missing stats in em(4) and lem(4). - Move the 'rx_overruns' and 'watchdog_timeouts' stats out of the MAC stats section as they are driver stats, not MAC counters. - Simplify the code that creates per-queue stats in igb(4) to use a single loop and remove duplicated code. - Properly read all 64 bits of the 'good octets received/transmitted' in em(4) and lem(4). - Actually read the interrupt count registers in em(4), and drop the 'host to card' sysctl stats from em(4) as they are not implemented in any of the hardware this driver supports. - Restore several stats to em(4) that were lost in the earlier stats conversion including per-queue stats. - Export several MAC stats in em(4) that were exported in igb(4) but not in em(4). - Export stats in lem(4) using individual sysctls as in em(4) and igb(4). Reviewed by: jfv MFC after: 1 week
* | | Fix an integer overflow in RLE length parsing when decompressingcperciva2010-09-201-0/+7
| | | | | | | | | | | | | | | | | | | | | corrupt bzip2 data. Approved by: so (cperciva) Security: FreeBSD-SA-10:08.bzip2
* | | Add __dead2 to functions that we know they are going to exit.pjd2010-09-202-3/+3
| | | | | | | | | | | | MFC after: 3 days
* | | Do not convert some meaningful error value to EINVAL.glebius2010-09-201-4/+4
| | | | | | | | | | | | Reviewed by: will
* | | Fix a locking issue which resulted in aborted associationstuexen2010-09-201-4/+4
| | | | | | | | | | | | | | | | | | due to a corrupted nr-mapping array. MFC after: 2 weeks.
* | | Add 64 bit support to nlge, and additional fixesjchandra2010-09-202-64/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 64 bit fixes for ifnlge.c - Use m_nextpkt to save mbuf vaddr on 64 bit, we cannot store the 64 bit vaddr in the 40bit freeback field. - remove unused code and unnecessary variables. - use xlr_io_mmio macro instead of adding io base address - rewrite GPIO related code to fixup nlge using xlr_write_reg and DELAY - support for engg boards major num 11 and 12 - add xlr_paddr_lw() to load 32bit value from physical address, fix inline assembly - style fixes
* | | Unbreak the build on strong-aligned architectures (arm, ia64).marcel2010-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | Casting from (char *) to (struct ufs1_dinode *) changes the alignment requirement of the pointer and GCC does not know that the pointer is adequately aligned (due to malloc(3)), and warns about it. Cast to (void *) first to by-pass the check.
* | | Allow a POSIX shared memory object that is opened for read but not foralc2010-09-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write to nonetheless be mapped PROT_WRITE and MAP_PRIVATE, i.e., copy-on-write. (This is a regression in the new implementation of POSIX shared memory objects that is used by HEAD and RELENG_8. This bug does not exist in RELENG_7's user-level, file-based implementation.) PR: 150260 MFC after: 3 weeks
* | | Make refinements to r212824. In particular, don't makealc2010-09-192-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vm_map_unlock_nodefer() part of the synchronization interface for maps. Add comments to vm_map_unlock_and_wait() and vm_map_wakeup() describing how they should be used. In particular, describe the deferred deallocations issue with vm_map_unlock_and_wait(). Redo the implementation of vm_map_unlock_and_wait() so that it passes along the caller's file and line information, just like the other map locking primitives. Reviewed by: kib X-MFC after: r212824
* | | Just make callout devices and /dev/console force CLOCAL on open().ed2010-09-191-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of adding custom checks to wait for DCD on open(), just modify the termios structure to set CLOCAL. This means SIGHUP is no longer generated when losing DCD as well. Reviewed by: kib@ MFC after: 1 week
* | | Add support 'device tpm' for amd64.nork2010-09-194-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Add tpm(4)'s default setting to /boot/defaults/loader.conf. Add 'device tpm' to NOTES for amd64 and i386. Discussed with: takawata Approved by: imp (mentor)
* | | Ignore DCD handling on /dev/console entirely.ed2010-09-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This makes /dev/console more fail-safe and prevents a potential console lock-up during boot. Discussed on: stable@ Tested by: koitsu@ MFC after: 1 week
* | | Manual page for the kernel side Secure Neighbor Discovery support.anchie2010-09-192-0/+219
| | | | | | | | | | | | | | | Reviewed by: brueffer Approved by: bz (mentor)
* | | Fix typo in previous commit.bschmidt2010-09-191-1/+1
| | |
* | | Rewrite parts of the calibration code which is run while bringing upbschmidt2010-09-192-87/+206
| | | | | | | | | | | | | | | | | | | | | | | | the device: - unobscure some of the code by moving it into its own functions - get rid of some magic numbers - create similar structure as the reference driver has, this should make further syncs easier
* | | Group functions used for initial calibration.bschmidt2010-09-191-80/+80
| | |
* | | Indicate that POSIX semaphores are always supported.tijl2010-09-191-1/+1
| | | | | | | | | | | | | | | | | | Reported by: avilla Reviewed by: davidxu Approved by: kib (mentor)
* | | Allow the initial congestion window to be configuretuexen2010-09-191-2/+2
| | | | | | | | | | | | | | | | | | to one MTU. Improve the description. MFC after: 2 weeks.
* | | Fix a locking issue which shows up when the code is usedtuexen2010-09-192-4/+4
| | | | | | | | | | | | | | | | | | on Mac OS X. MFC after: 2 weeks.
* | | In all Makefiles under lib/clang, consistently use tabs instead ofdim2010-09-198-8/+8
| | | | | | | | | | | | | | | | | | spaces after the '=' sign in macro assignments. Approved-by: rpaulo (mentor)
* | | Fix indent.pjd2010-09-191-7/+7
| | |
* | | Support attaching version 4 metadatabrian2010-09-191-2/+4
| | | | | | | | | | | | Reviewed by: pjd
* | | Add preliminary support for the Lanner MR-955. It boots multi-user but therejmallett2010-09-195-0/+45
| | | | | | | | | | | | | | | | | | | | | seem to be problems both with the on-board Ethernet interfaces and the em(4) interfaces on PCI under FreeBSD. Thanks to Lanner for providing access to hardware.
* | | Fix to specify generic bus_add_child.jmallett2010-09-192-0/+4
| | |
* | | Don't use memory that can't be direct-mapped on !n64.jmallett2010-09-191-0/+12
| | |
* | | Because atfork lock is held while forking, a thread cancellation triggereddavidxu2010-09-194-12/+13
| | | | | | | | | | | | by atfork handler is unsafe, use intenal flag no_cancel to disable it.
* | | Fix typo.davidxu2010-09-191-1/+1
| | |
* | | Revise r197763 which fixes filesystem corruption when extendingbrian2010-09-194-14/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into un-zeroed storage. The original patch was questioned by Kirk as it forces the filesystem to do excessive work initialising inodes on first use, and was never MFC'd. This change mimics the newfs(8) approach of zeroing two blocks of inodes for each new cylinder group. Reviewed by: mckusick MFC after: 3 weeks
* | | - _Unwind_Resume function is not used, remove it.davidxu2010-09-191-14/+8
| | | | | | | | | | | | | | | | | | - Use a store barrier to make sure uwl_forcedunwind is lastest thing other threads can see. - Add some comments.
* | | Fix a race condition when finding stack unwinding functions.davidxu2010-09-191-7/+20
| | |
* | | Fix nfsrv_freeallnfslocks() in the experimental NFSv4 server so thatrmacklem2010-09-191-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it frees local locks correctly upon close. In order for nfsrv_localunlock() to work correctly, the lock can no longer be in the lockowner's stateid list. As such, nfsrv_freenfslock() has to be called before nfsrv_localunlock(), to get rid of the lock structure on the lockowner's stateid list. This only affected operation when local locks (vfs.newnfs.enable_locallocks=1) are enabled, which is not the default at this time. MFC after: 1 week
* | | Fix the experimental NFSv4 server so that it performs local VOP_ADVLOCK()rmacklem2010-09-191-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | unlock operations correctly. It was passing in F_SETLK instead of F_UNLCK as the operation for the unlock case. This only affected operation when local locking (vfs.newnfs.enable_locallocks=1) was enabled. MFC after: 1 week
* | | Fix the grammar after I added a second environmental variable.obrien2010-09-191-1/+1
| | | | | | | | | | | | Submitted by: wxs
* | | Ignore EINTR when calling waitpid.rpaulo2010-09-181-1/+2
| | |
* | | Cleanup white space and typos.n_hibma2010-09-181-6/+6
| | |
* | | Bugfix: Reset the packet counters at the same time as the byte counts.n_hibma2010-09-181-2/+2
| | | | | | | | | | | | | | | Reviewed by: brian MFC after: 3 weeks
* | | Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.gjb2010-09-182-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | PR: 144534 Submitted by: Matthew Seaman <m.seaman at infracaninophile co uk> Patch by: Matthew Seaman, keramida Approved by: keramida (mentor) MFC after: 1 week
* | | - For consistency, remove "." and ".." entries from de_dlist beforejh2010-09-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | calling devfs_delete() (and thus possibly dropping dm_lock) in devfs_rmdir_empty(). - Assert that we don't return doomed entries from devfs_find(). [1] Suggested by: kib [1] Reviewed by: kib
* | | Add basic cpu_sleep() support for Marvell SoCs. This drops my SheevaPlug'smav2010-09-183-1/+12
| | | | | | | | | | | | heatsink termperature in open air from 49C to 43C when idle.
* | | Adopt the deferring of object deallocation for the deleted map entrieskib2010-09-183-21/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on map unlock to the lock downgrade and later read unlock operation. System map entries cannot be backed by OBJT_VNODE objects, no need to defer deallocation for them. Map entries from user maps do not require the owner map for deallocation, and can be accumulated in the thread-local list for freeing when a user map is unlocked. Move the collection of entries for deferred reclamation into vm_map_delete(). Create helper vm_map_process_deferred(), that is called from locations where processing is feasible. Do not process deferred entries in vm_map_unlock_and_wait() since map_sleep_mtx is held. Reviewed by: alc, rstone (previous versions) Tested by: pho MFC after: 2 weeks
* | | Clear timer interrupt status before calling callback, not after it,mav2010-09-181-4/+6
| | | | | | | | | | | | This fixes timer interrupt losses, fatal in one-shot mode.
* | | With reworking of the socket life cycle in 7.x, the need for a "sotryfree()"rwatson2010-09-182-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | was eliminated: all references to sockets are explicitly managed by sorele() and the protocols. As such, garbage collect sotryfree(), and update sofree() comments to make the new world order more clear. MFC after: 3 days Reported by: Anuranjan Shukla <anshukla at juniper dot net>
* | | kern.sched.topology_spec sysctl: use step of 1 for group levels numerationavg2010-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is just a cosmetic change for prettier output. 'indent' variable/parameter serves two purposes: it specifies whitespace indentation level and also implies cpu group level/depth. It would have been better to split those two uses, but for now just a simple change. MFC after: 1 week
* | | Document hw.i8254.freq tunable and machdep.i8254_freq sysctl.mav2010-09-181-0/+5
| | |
* | | Restore pre-r212778 optimization, skipping timer reprogramming when it ismav2010-09-181-19/+27
| | | | | | | | | | | | | | | | | | | | | | | | not neccessary. It allows to avoid time counter jump of up to 1/18s, when base frequency slightly tuned via machdep.i8254_freq sysctl. Fix few style things. Suggested by: bde
OpenPOWER on IntegriCloud