summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update to a 7-Aug-2011 release.ru2011-08-0910-43/+98
| | | | Approved by: re (kib)
* Do not block zero report ID. It is correct value for devices with singlemav2011-08-091-1/+1
| | | | | | | | | ID. This fixes USB_SET_IMMED call (synchronous operation) of the uhid(4) driver on devices with single report ID. Reviewed by: hselasky Approved by: re (kib) MFC after: 1 week
* Make clear that the -U option can be dangerous. [1]dougb2011-08-092-6/+10
| | | | | | | | | | | In -p mode install the group file with the same permissions as normally done in etc/Makefile. Update the copyright. Requested by: peter [1] Approved by: re (kib)
* Remove this call, now that I've solved the radar module problem withoutadrian2011-08-091-6/+0
| | | | | | | | | needing this particular modification. It can be called during ath_dfs_radar_enable() and still achieve the same functionality, so I am. Approved by: re (kib, blanket)
* Fix buffer overflow in sys/boot/common/util.c's printf(), when printingdim2011-08-081-1/+1
| | | | | | | | | large (>= 10^10) numbers. In theory, 20 characaters should be enough, but bump the buffer to 32 characters, so we have some room for the future. Reviewed by: pjd Approved by: re (kib)
* Create timeval2timespec() and timespec2timeval().jonathan2011-08-081-0/+18
| | | | | | | | | These functions will be used by process descriptors to convert process creation time into process descriptor [acm]time. Approved by: re (kib), mentor (rwatson) Suggested by: jhb Sponsored by: Google Inc
* And add another missing brace. Another pointy hat moment.adrian2011-08-081-1/+1
| | | | | | | This one however isn't used by any public code yet, so it didn't break the build. Approved by: re (kib, blanket)
* Bitten again by the optional HALDEBUG compilation.adrian2011-08-081-4/+0
| | | | | | | | Remove this debugging, it's not needed anymore and when not enabled, those variables trigger a compiler warning. Approved by: re (kib, blanket) Pointy-hat-to: adrian, for not testing a non-debug compile of this code enough
* The older HAL code sets up the regulatory domain once; FreeBSD/net80211adrian2011-08-081-13/+42
| | | | | | | | | allows it to be overridden at runtime. Thus, add a function which updates ah_dfsDomain after a channel set call to ath_hal_set_channels(). Approved by: re (kib, blanket)
* When setting a fixed channel on adapters with 11n support the scanbschmidt2011-08-081-1/+9
| | | | | | | | | | | | | | | | | channel list ends up with 2 entries, the HT and the legacy channel. The scan itself is currently always done at legacy rates so we end up receiving scan results for legacy networks on the HT channel and erroneously assigning the BSS to the 11n channel. As the channel's capabilities are used to setup the adapter we might end up with non-working settings and/or firmware crashes. Fix this by ensuring that scan results received on a HT channel are only assigned to that channel if the htcap IE is available, else use the legacy channel equivalent. Tested by: Pawel Worach, Raoul Megelas, Maciej Milewski, Andrei <az at azsupport dot com> Approved by: re (kib)
* Introduce some more DFS related hooks, inspired both by local workadrian2011-08-087-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | and the Atheros reference code. The radar detection code needs to know what the current DFS domain is. Since net80211 doesn't currently know this information, it's extracted from the HAL regulatory domain information. The specifics: * add a new ath_dfs API hook, ath_dfs_init_radar_filters(), which updates the radar filters whenever the regulatory domain changes. * add HAL_DFS_DOMAIN which describes the currently configured DFS domain . * add a new HAL internal variable which tracks the currently configured HAL DFS domain. * add a new HAL capability, HAL_CAP_DFS_DMN, which returns the currently configured HAL DFS domain setting. * update the HAL DFS domain setting whenever the channel setting is updated. Since this isn't currently used by any radar code, these should all be no-ops for existing users. Obtained from: Atheros Submitted by: KBC Networks, sibridge Approved by: re (kib, blanket)
* .. and add a missing bracket.adrian2011-08-081-1/+1
| | | | Approved by: re (kib, blanket)
* Fix method naming to match the reference HAL definition.adrian2011-08-081-1/+1
| | | | | Obtained from: Atheros Approved by: re (kib, blanket)
* Revert r224655 and r224614 because vn_fullpath* does not always workmm2011-08-081-79/+7
| | | | | | | | | on nullfs mounts. Change shall be reconsidered after 9.0 is released. Requested by: re (kib) Approved by: re (kib)
* Add another HAL method - ah_isFastClockEnabled - which returns AH_TRUEadrian2011-08-088-0/+29
| | | | | | | | | | | if 5ghz fast clock is enabled in the current operating mode. It's slightly dirty, but it's part of the reference HAL and used by the (currently closed-source) radar event code to map radar pulses back to microsecond durations. Obtained from: Atheros Approved by: re (kib, blanket)
* Change "options NFSCLIENT" to "options NFSCL" in diskless.8,rmacklem2011-08-081-2/+2
| | | | | | | | since that is now the default NFS client. This is a content change. Reported by: shuvaev at physik.uni-wuerzburg.de Approved by: re (hrs)
* In rtinit1(), before rtrequest1_fib() is called, info.rti_flags iskevlo2011-08-081-1/+1
| | | | | | | | | | | | | initialized by flags (function argument) or-ed with ifa->ifa_flags. If both NIC has a loopback route to itself, so IFA_RTSELF is set on ifa(s). As IFA_RTSELF is defined by RTF_HOST, rtrequest1_fib() is called with RTF_HOST flag even if netmask is not NULL. Consequently, netmask is set to zero in rtrequest1_fib(), and request to add network route is changed under hands to request to add host route. Tested by: Andrew Boyer <aboyer at averesystems.com> Submitted by: Svatopluk Kraus <onwahe at gmail dot com> Approved by: re (hrs)
* catstrg() does not set the resulting string length.kevlo2011-08-081-0/+1
| | | | | | PR: bin/152549 Submitted by: Henning Petersen <henning dot petersen at t-online dot de> Approved by: re (hrs)
* Fix a pathname (s,netinet/if_ether.h,net/ethernet.h,).hrs2011-08-081-1/+1
| | | | | | PR: docs/159341 Submitted by: Garrett Cooper Approved by: re (kib)
* Merge revision 3554 from libarchive's release/2.8 branch:mm2011-08-073-16/+27
| | | | | | | | | | | | Partial merge of 2431 from trunk: Retry writes on EINTR. This should fix the SIGINT handler in bsdtar. Note: The rest of r2431 can't be merged, since it interacts with a big write-side rearchitecture. PR: bin/149409 Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* Change all the sample kernel configurations to usermacklem2011-08-0728-66/+66
| | | | | | | | | | NFSCL, NFSD instead of NFSCLIENT, NFSSERVER since NFSCL and NFSD are now the defaults. The client change is needed for diskless configurations, so that the root mount works for fstype nfs. Reported by seanbru at yahoo-inc.com for i386/XEN. Approved by: re (hrs)
* Convert pmcstat about using cpuset_t rather than relying on plain 32 bitattilio2011-08-073-74/+81
| | | | | | | | | | | | | | | | ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib)
* Change lwp to int64_t as thr_pread_long() always uses a 64-bit valuemarius2011-08-071-4/+4
| | | | | | | | | | | | in order to account for LP64 targets when cross-debugging on ILP32, allowing r224683 to compile on ILP32. Note that thr_p{read,write}_{long,ptr}() still incorrectly use the size of the respective types on the host rather than that on the target when accessing the target address space which still needs to be fixed. This means that r224683 alone may not be sufficient to solve the problem it's intended to fix when cross-debugging. Approved by: re (hrs)
* Add compatibility for ISO images created with unfixed makefs thatmm2011-08-0711-35/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). In addition, merge following important bugfixes from libarchive's release/2.8 branch: Revision 2812: Merge 2811 from trunk: Don't try to verify that compression-level=0 produces larger results than the default compression, since this isn't true for all versions of liblzma. Revision 2817: Merge 2814 from trunk: Fix Issue 121 (mtree parser error) http://code.google.com/p/libarchive/issues/detail?id=121 Revision 2820: Fix issue 119. Change the file location check that a file location does not exceed volume block. New one is that a file content does not exceed volume block(end of an ISO image). It is better than previous check even if the issue did not happen. While reading an ISO image generated by an older version of mkisofs utility, a file location indicates the end the ISO image if its file size is zero and it is the last file of all files of the ISO image, so it is possible that the location value is the same as the number of the total block of the ISO image. http://code.google.com/p/libarchive/issues/detail?id=119 Revision 2955: Issue 134: Fix libarchive 2.8 crashing in archive_write_finish() when the open has failed and we're trying to write Zip format. http://code.google.com/p/libarchive/issues/detail?id=134 Revision 2958: Followup on Issue 134: 1) Port test_open_failure to libarchive 2.8 branch to test the problem reported in Issue 134. This test also shows that archive_read_open() sometimes fails to report open errors correctly. 2) Fix the bug in archive_read.c 3) Comment out the tests that close functions are invoked promptly when open fails; that's fully fixed in libarchive 3.0, but I don't think it's worth fixing here. Revision 3484: Use uintmax_t with %ju Revision 3487: Fix issue 163. Correctly allocate enough memory for a input buffer saved. http://code.google.com/p/libarchive/issues/detail?id=163 Revision 3542: Merge 2516, 2536 from trunk: Allow path table offset values of 0 and 18, which are used by some ISO writers. Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days
* Fix NetBSD PR bin/44114:mm2011-08-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
* Fix an error in kmem_alloc_attr(). Unless "tries" is updated,alc2011-08-071-0/+1
| | | | | | | kmem_alloc_attr() could get stuck in a loop. Approved by: re (kib) MFC after: 3 days
* Properly initialise the "len" argument to getsockname(2) in the tcpdroprwatson2011-08-061-0/+1
| | | | | | | regression test so that it works (more) consistently. Approved by: re (bz) Sponsored by: Juniper Networks
* Compile fbsd-threads.c. Amongst others this is necessary for a workingmarius2011-08-062-0/+3
| | | | | | | | kgdb(1). Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* Implement functions necessary for compiling fbsd-threads.c.marius2011-08-062-0/+61
| | | | | | Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* Implementmarius2011-08-061-5/+30
| | | | | | Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* Use the size of struct fpreg rather than of the pointer to it when copyingmarius2011-08-061-2/+5
| | | | | | | | the FPU state. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* The tid member of struct pthread actually is long so read it as such.marius2011-08-061-8/+8
| | | | | | | | | Accessing it as an int causes failure on big-endian LP64, i.e. mips64be, powerpc64 and sparc64. Reviewed by: marcel Approved by: re (kib) MFC after: 1 week
* - Merge from r147740:marius2011-08-061-3/+6
| | | | | | | | | | When the last, possibly partially filled buffer is flushed, we didn't reset fragsz to 0 and as such would stop reflecting reality. - Use __FBSDID. - Wrap a too long line. Approved by: re (kib) MFC after: 1 week
* Remove a shortcut which is invalid with MAXCPU > IDR_CHEETAH_MAX_BN_PAIRS.marius2011-08-061-8/+0
| | | | Approved by: re (kib)
* Add support for PBVM addresses. In a nutshell this means:marcel2011-08-061-7/+81
| | | | | | | | | | | | | | | o get the physical address and size of the PBVM page table. This can be found in the bootinfo structure, of which the physical address is recorded as the ELF entry point. o translate region 4 virtual addresses to physical addresses using the PBVM page table. In _kvm_kvatop() make the distinction between physical address and core file offset a little clearer to avoid confusion. To further enhance readability, always store the translated address into pa so that it's obvious how the translation from va to pa happened. Approved by: re (blanket)
* Rather than edit the nsswitch.conf file based on ${MK_NIS} == "no"dougb2011-08-062-11/+15
| | | | | | | | | | comment out the NIS _compat options by default, but leave them in the file for the convenience of users who want to enable it. Update the comment in the file accordingly. Reviewed by: ed Approved by: re (hrs)
* Gavin documented these alternate options in good faith in r222751dougb2011-08-061-7/+4
| | | | | | | | | based on the patch in the PR, however he was unaware that they were undocumented intentionally. This patch moves the information about these alternates into a comment which also explains why they are undocumented. Approved by: re (hrs)
* Fix a silly typo on my part.dougb2011-08-061-1/+1
| | | | Approved by: re (hrs)
* Fix kernel core dumps now that the kernel is using PBVM. The basicmarcel2011-08-061-1/+4
| | | | | | | | | | | | | problem to solve is that we don't have a fixed mapping from kernel text to physical address so that libkvm can bootstrap itself. We solve this by passing the physical address of the bootinfo structure to the consumer as the entry point of the core file. This way, libkvm can extract the PBVM page table information and locate the kernel in the core file. We also need to dump memory chunks of type loader data, because those hold the kernel and the PBVM page table (among other things). Approved by: re (blanket)
* Follow-up commit: refactor pmap_kextract() to make it easier tomarcel2011-08-051-17/+28
| | | | | | | | | catch and debug issues like the one fixed in the previous commit: Replace all return statements with goto statements so that we end up at a single place with a value for the physical address. Print a message for all unknown KVA addresses. Approved by: re (blanket)
* Remove stray semicolon in pmap_kextract() that turned the conditionalmarcel2011-08-051-1/+1
| | | | | | | "return (0)" into an unconditional one and as such broke PBVM address queries -- such as during kernel core dumps. Approved by: re (blanket)
* Make octeon_ap_boot 64 bits to handle MAXCPU up to 64.marcel2011-08-052-12/+26
| | | | | | | | | | Better construction of CPU mask in platform_cpu_mask(). Release cores still in reset when platform_start_ap() is called. Reviewed by: imp, marcel Obtained from: Juniper Networks, Inc Author: Andrew Duane Approved by: re (kib)
* Expect fchflags(2) to fail with EOPNOTSUPP on NFS.jonathan2011-08-051-2/+11
| | | | | | | | | | | | Even if we have CAP_FCHFLAGS, fchflags(2) fails on NFS. This is normal and expected, so don't fail the test because of it. Note that, whether or not we are on NFS, fchflags(2) should always fail with ENOTCAPABLE if we are using a capability that does not have the CAP_FCHFLAGS right. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.ed2011-08-051-0/+4
| | | | | | | | | | We already modify various configuration files in /etc based on build configuration. This is not done for nsswitch.conf right now when setting WITHOUT_NIS. This breaks various utilities, including crond, that depend on working databases. Approved by: re (kib) MFC after: 1 month
* For POLA reasons, disable SGR sequences in catpages.uqs2011-08-051-1/+1
| | | | | | | | See r222647 for a similar change to bsd.doc.mk after SGR was generally turned on in groff. Suggested by: ru Approved by: re (kib)
* Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both ↵roberto2011-08-051-2/+3
| | | | | | | | | IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. Reviewed by: nathanw Approved by: re (kib)
* The change in r224615 didn't take into account that vn_fullpath_global()mm2011-08-051-31/+68
| | | | | | | | | | | | | | | doesn't operate on locked vnode. This could cause a panic. Fix by unlocking vnode, re-locking afterwards and verifying that it wasn't renamed or deleted. To improve readability and reduce code size, move code to a new static function vfs_verify_global_path(). In addition, fix missing giant unlock in unmount(). Reported by: David Wolfskill <david@catwhisker.org> Reviewed by: kib Approved by: re (bz) MFC after: 2 weeks
* Flesh out the cap_test regression test.jonathan2011-08-043-0/+388
| | | | | | | | Add more regression testing, some of which is expected to fail until we commit more kernel implementation. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* The release/pc98/mkisoimages.sh added as part of r221466 now also takes "-b"marius2011-08-041-4/+0
| | | | | | to indicate the creation of a bootable image. Approved by: re (kib)
* Flesh out the cap_test regression test.jonathan2011-08-045-344/+319
| | | | | | | | Add more regression testing, some of which is expected to fail until we commit more kernel implementation. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
OpenPOWER on IntegriCloud