summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Jump to the next element and not to an arbitrary point. frm[1] containsbschmidt2011-01-191-1/+1
| | | | | | | the element's data length, frm[2] is the first byte of the element's data. Submitted by: Monthadar Al Jaberi <monthadar at gmail.com> MFC after: 1 week
* Here v->iov_len has been assigned the return value from snprintf.dwmalone2011-01-191-2/+3
| | | | | | | | | | | | | | Checking if it is > 0 doesn't make sense, because snprintf returns how much space is needed if the buffer is too small. Instead, check if the return value was greater than the buffer size, and truncate the message if it was too long. It isn't clear if snprintf can return a negative value in the case of an error - I don't believe it can. If it can, then testing v->iov_len won't help 'cos it is a size_t, not an ssize_t. Also, as clang points out, we must always increment v here, because later code depends on the message being in iov[5].
* Add MNT_NFS4ACLS to ZFS mount flags. It's not conditional, since theretrasz2011-01-191-1/+1
| | | | | | | | | is no way to disable NFSv4 ACLs in ZFS. This should make it easier for the NFS server to figure out whether the exported filesystem supports ACLs or not. Reviewed by: pjd MFC after: 2 weeks
* Fix yet another fallout from r208833. VM86 BIOS call may cause page faultjkim2011-01-191-3/+2
| | | | | | | | when FPU is in use. Reported by: Marc UBM Bocklet (ubm dot freebsd at googlemail dot com) Tested by: b. f. (bf1783 at googlemail dot com) MFC after: 3 days
* sysctl(8) should use the CTLTYPE to determine the type of data whenmdf2011-01-199-82/+41
| | | | | | | | | | | reading. (This was already done for writing to a sysctl). This requires all SYSCTL setups to specify a type. Most of them are now checked at compile-time. Remove SYSCTL_*X* sysctl additions as the print being in hex should be controlled by the -x flag to sysctl(8). Succested by: bde
* Whitespace and style fixes.jhb2011-01-193-6/+5
|
* Move calculation of 'bmask' earlier to match it's current location injhb2011-01-191-1/+2
| | | | ufs_lookup().
* Add missed ().kib2011-01-191-2/+2
| | | | | Noted by: alc MFC after: 3 days
* Merge 118969 from UFS:jhb2011-01-193-4/+5
| | | | | | | | Eliminate the i_devvp field from the incore inodes, we can get the same value from ip->i_ump->um_devvp. Submitted by: Pedro F. Giffuni giffunip at yahoo MFC after: 1 week
* There is no point in calling vm_object_set_writeable_dirty() on an objectalc2011-01-191-1/+0
| | | | | | | that is definitively known to be swap backed since its only effects are on vnode-backed objects. Reviewed by: kib
* In linuxolator getdents_common(), it seems there is no reason to loopkib2011-01-191-3/+4
| | | | | | | | | | | | if no records where returned by VOP_READDIR(). Readdir implementations allowed to return 0 records when first record is larger then supplied buffer. In this case trying to execute VOP_READDIR() again causes the syscall looping forewer. The goto was there from the day 1, which goes back to 1995 year. Reported and tested by: Beat G?tzi <beat chruetertee ch> MFC after: 2 weeks
* o Correct version of DragonFly: it was 2.8.2 released, not 2.8.0.maxim2011-01-191-2/+2
| | | | Submitted by: Sascha Wildner
* Don't do a device_identify to add uart0, it's already hinted.jmallett2011-01-191-8/+0
| | | | Reported by: imp
* Fix a few more SYSCTL_PROC() that were missing a CTLFLAG type specifier.mdf2011-01-199-19/+21
|
* Make the length of the LDT a loader tunable, machdep.max_ldt_segment,kib2011-01-181-2/+18
| | | | | | | and export it with read-only sysctl. Remove unused defines. Reviewed by: jhb (previous version) MFC after: 1 week
* Use malloc(9) instead of kmem_alloc(9) for temporal copy of thekib2011-01-181-9/+3
| | | | | | | user-supplied descriptor array. Noted and reviewed by: jhb (previous version) MFC after: 1 week
* For architectures not using direct map , and requiring real KVA page forkib2011-01-186-6/+6
| | | | | | | | | | | | | | sf buf allocation, use wakeup() instead of wakeup_one() to notify sf buffer waiters about free buffer. sf_buf_alloc() calls msleep(PCATCH) when SFB_CATCH flag was given, and for simultaneous wakeup and signal delivery, msleep() returns EINTR/ERESTART despite the thread was selected for wakeup_one(). As result, we loose a wakeup, and some other waiter will not be woken up. Reported and tested by: az Reviewed by: alc, jhb MFC after: 1 week
* There are PowerMacs which do not have a hwsensor-location propertyandreast2011-01-181-7/+12
| | | | | | | | for this sensor. Instead of leaving this location empty we use here the default name 'sensor'. Submitted by: Justin Hibbits <chmeeedalf at gmail dot com> Approved by: nwhitehorn (mentor)
* Make sure the PKGDIR exists before we move stuff into it.phk2011-01-181-0/+1
|
* Make USB packet filtering code optional.hselasky2011-01-183-5/+11
| | | | Approved by: thompsa (mentor)
* sh: Fix signal messages being sent to the wrong file sometimes.jilles2011-01-182-0/+9
| | | | | | | | | | | | | When a foreground job exits on a signal, a message is printed to stdout about this. The buffer was not flushed after this which could result in the message being written to the wrong file if the next command was a builtin and had stdout redirected. Example: sh -c 'kill -9 $$'; : > foo; echo FOO:; cat foo Reported by: gcooper MFC after: 1 week
* Specify a CTLTYPE_FOO so that a future sysctl(8) change does not needmdf2011-01-189-36/+45
| | | | to rely on the format string.
* Specify a CTLTYPE_FOO so that a future sysctl(8) change does not needmdf2011-01-188-22/+26
| | | | to rely on the format string.
* Specify a CTLTYPE_FOO so that a future sysctl(8) change does not needmdf2011-01-187-76/+82
| | | | | | to rely on the format string. For SYSCTL_PROC instances that I noticed a discrepancy between the CTLTYPE and the format specifier, fix the CTLTYPE.
* Update to upstream version 2.3fanf2011-01-181-15/+10
| | | | | | | Only significant change is to fix a bu when the output file overwrites the input when the input is redirected. Obtained from: http://dotat.at/prog/unifdef
* Rework RX filter programming by providing separate handler foryongari2011-01-181-91/+90
| | | | | | | | | | | | | | | | DP8381[56] and SiS 900/7016 controllers. After r212119, sis(4) no longer reinitializes controller if ALLMULTI/PROMISC was changed. However, RX filter handling code assumed some bits of the RX filter is programmed by driver initialization. This caused ALLMULTI/PROMISC configuration is ignored under certain conditions. Fix that issue by reprogramming all bits of RX filter register. While I'm here follow recommended RX filter programming steps recommended by National DP8381[56] data sheet(RX filter should be is disabled before programming). Reported by: Paul Schenkeveld < freebsd () psconsult dot nl > Tested by: Paul Schenkeveld < freebsd () psconsult dot nl > MFC after: 3 days
* - Remove some always-true checks (checking for unsigned < 0).jhb2011-01-182-7/+6
| | | | | | | | | | - Only check largs->num against max_ldt_segment on amd64 for I386_SET_LDT when descriptors are provided. Specifically, allow the 'start == 0' and 'num == 0' special case used to free all LDT entries that previously failed with EINVAL. Submitted by: clang via rdivacky (some of 1) Reviewed by: kib
* Fix some bugs in my last set of changes to ale(4):jhb2011-01-182-9/+8
| | | | | | | | | - Remove extra unlock from end of ale_start_locked(). - Expand scope of locking in interrupt handler. - Move ether_ifdetach() earlier and retire now-unneeded DETACH flag. Tested by: Aryeh Friedman Reviewed by: yongari (earlier version)
* MFi386: revision 217515nyan2011-01-181-3/+0
| | | | The mem_range_softc is defined in mem.c.
* Remove some always-true comparisons.jhb2011-01-182-2/+2
| | | | Submitted by: clang via rdivacky
* Remove bogus check. pcib_get_bus() (like other BUS_ACCESSOR() methods)jhb2011-01-181-2/+0
| | | | | | | | | doesn't "fail", it may merely return garbage if it is not a valid ivar for a given device. Our parent device must be a 'pcib' device, so we can just assume it implements pcib IVARs, and all pcib devices have a bus number. Submitted by: clang via rdivacky
* Add libm to the dependencies section.nwhitehorn2011-01-181-1/+1
| | | | Submitted by: Garrett Cooper
* Fix the experimental NFSv4 server so that it uses VOP_ACCESSX()rmacklem2011-01-181-1/+1
| | | | | | to check for VREAD_ACL instead of VOP_ACCESS(). MFC after: 3 days
* Limit maximum number of GPT entries to 4k. It is most realistic valueae2011-01-181-15/+33
| | | | | | | | | | | and can prevent kernel memory exhausting when big value is specified from command line. Split reading and writing operation to several iteration to do not trigger KASSERT when data length is greater than MAXPHYS. PR: kern/144962, kern/147851 MFC after: 2 weeks
* Move the definition of M_VMPGDATA to the swap pager, where the onlyalc2011-01-183-5/+1
| | | | remaining uses are.
* Change model names of controller RTL_HWREV_8168_SPIN[123] to real ones.yongari2011-01-182-9/+9
| | | | | | | s/RL_HWREV_8168_SPIN1/RL_HWREV_8168B_SPIN1/g s/RL_HWREV_8168_SPIN2/RL_HWREV_8168B_SPIN2/g s/RL_HWREV_8168_SPIN3/RL_HWREV_8168B_SPIN3/g No functional changes.
* Support booting non FDT-capable loaders:marcel2011-01-172-3/+31
| | | | | | 1. Allow embedding the FDT into the kernel, just like PowerPC/book-E. 2. If the loader passes us a pointer to the bootinfo structure, save it and use it to fill in the gaps (e.g. bus frequencies, etc).
* Fix typo and bump date.mdf2011-01-171-2/+2
|
* The kernel is not exporting any "T,dev_t" sysctl nodes anymore, somdf2011-01-172-56/+2
| | | | remove the capability and mention from sysctl(8).
* Check the environment for system devices before using the FDT.marcel2011-01-171-8/+11
| | | | | This allows overriding the FDT, and allows specifying a debug port.
* Remove empty dev_mem_md_init() stubs.jkim2011-01-174-21/+0
|
* Save the CPU model, the board and the CPU clock rate so they are reported byimp2011-01-171-9/+16
| | | | the approrpiate sysctl.
* Kill redundant cpu lineimp2011-01-171-1/+0
|
* Make cpu_model public (otherwise there's no way to set it) and bump itimp2011-01-171-1/+4
| | | | | to 80 characters. Add hw.board to export board information, if known, from the mips kernel.
* Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set().jkim2011-01-1723-57/+92
| | | | | | | | | Compile sys/dev/mem/memutil.c for all supported platforms and remove now unnecessary dev_mem_md_init(). Consistently define mem_range_softc from mem.c for all platforms. Add missing #include guards for machine/memdev.h and sys/memrange.h. Clean up some nearby style(9) nits. MFC after: 1 month
* In order to save instructions the MMU trap handlers assumed that the kernelmarius2011-01-172-34/+72
| | | | | | | | | | | TSB is located within the 32-bit address space, which held true as long as we were using virtual addresses magic-mapped before the location of the kernel for addressing it. However, with r216803 in place when possible we address it via its physical address instead, which on machines like Sun Fire V880 have no physical memory in the 32-bit address space at all requires to use 64-bit addressing. When using physical addressing it still should be safe to assume that we can just ignore the lowest 10 bits of the address as a minor optimization as we did before r216803.
* Pull ieee80211_ratectl_node_init() calls from drivers into net80211.bschmidt2011-01-1710-54/+4
| | | | | | | | This fixes hostap mode for at least ral(4) and run(4), because there is no sufficient call into drivers which could be used initialize the node related ratectl variables. MFC after: 3 days
* Fix 32bit bit fields handling. This fixes card serial number fetching.mav2011-01-171-1/+1
| | | | | | It was just a cosmetic issue, because that number is only reported in logs. Reported by: Michael Butler on current@
* Explicitly initialize the page's queue field to PQ_NONE instead of relyingalc2011-01-174-5/+8
| | | | | | | | | on PQ_NONE being zero. Redefine PQ_NONE and PQ_COUNT so that a page queue isn't allocated for PQ_NONE. Reviewed by: kib@
* Avoid preemption while manipulating CRs and MTRRs.jkim2011-01-172-0/+8
| | | | Tested by: ariff
OpenPOWER on IntegriCloud