summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Updated firmware to latest 4.6.X release.davidch2009-03-043-13581/+13987
| | | | | | | | - Added missing firmware for 5709 A1 controllers. - Changed some debug statistic variable names to be more consistent. Submitted by: davidch MFC after: Two weeks
* For the moment disable the VIMAGE_CTASSERTs as people have troublebz2009-03-031-0/+4
| | | | | | | | | | | | | | while developing and compiling with kernel options that change the size of at least one structure. The current kernel build framework does not allow us to pass -Dxxx to module builds so we would possibly need a kernel option to disable the checks and that might not work for people just building modules alone. For now they helped to identify possibly API problems and bring those back into minds of developers seeking for better solutions. Problems reported by: kib, warner Reviewed by: warner
* make loop clearer that it isn't a mistake...imp2009-03-031-1/+2
|
* Add in parsing of the disk FUNCE tuples.imp2009-03-033-16/+27
|
* The callback takes a void *, not a caddr_t * (sic).imp2009-03-031-2/+2
| | | | Except for the bb callback, which takes a caddr_t and not a caddr_t *.
* Bump down the inline limit on MIPS.imp2009-03-031-1/+1
|
* Make Netgraph compile with Clang.ed2009-03-033-14/+12
| | | | | | | | | | | | | | | | Clang disallows structs with variable length arrays to be nested inside other structs, because this is in violation with ISO C99. Even though we can keep bugging the LLVM folks about this issue, we'd better just fix our code to not do this. This code seems to be the only code in the entire source tree that does this. I haven't tested this patch by using the kernel modules in question, but Diane Bruce and I have compared disassembled versions of these kernel modules. We would have expected them to be exactly the same, but due to randomness in the register allocator and reordering of instructions, there were some minor differences. Approved by: julian
* Adding missing ";"'s required by some SDT_PROBE_DEFINEx() macros.rwatson2009-03-031-10/+10
| | | | MFC after: 1 week
* as suggested by jhb@, panic in case the ncpus == 0.dchagin2009-03-031-1/+1
| | | | | | | it helps to catch bugs in the callers. Approved by: kib (mentor) MFC after: 5 days
* Reduce the verbosity of SDT trace points for DTrace by defining severalrwatson2009-03-033-18/+41
| | | | | | | | | | | wrapper macros that allow trace points and arguments to be declared using a single macro rather than several. This means a lot less repetition and vertical space for each trace point. Use these macros when defining privilege and MAC Framework trace points. Reviewed by: jb MFC after: 1 week
* Merge r340 from libarchive.googlecode.com: If zlib/bzlib aren't available,kientzle2009-03-032-6/+20
| | | | | we can still detect gzip/bzip2 compressed streams, we just can't decompress them.
* Merge r294:337,r348:350 from libarchive.googlecode.com: A lotkientzle2009-03-0361-321/+7871
| | | | of work to make libarchive work on Windows.
* Further refine the handling of resources for BARs in the PCI bus driver.jhb2009-03-032-82/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A while back, Warner changed the PCI bus code to reserve resources when enumerating devices and simply give devices the previously allocated resources when they call bus_alloc_resource(). This ensures that address ranges being decoded by a BAR are always allocated in the nexus0 device (or whatever device the PCI bus gets its address space from) even if a device driver is not attached to the device. This patch extends this behavior further: - To let the PCI bus distinguish between a resource being allocated by a device driver vs. merely being allocated by the bus, use rman_set_device() to assign the device to the bus when it is owned by the bus and to the child device when it is allocated by the child device's driver. We can now prevent a device driver from allocating the same device twice. Doing so could result in odd things like allocating duplicate virtual memory to map the resource on some archs and leaking the original mapping. - When a PCI device driver releases a resource, don't pass the request all the way up the tree and release it in the nexus (or similar device) since the BAR is still active and decoding. Otherwise, another device could later allocate the same range even though it is still in use. Instead, deactivate the resource and assign it back to the PCI bus using rman_set_device(). - pci_delete_resource() will actually completely free a BAR including attemping to disable it. - Disable BAR decoding via the command register when sizing a BAR in pci_alloc_map() which is used to allocate resources for a BAR when the BIOS/firmware did not assign a usable resource range during boot. This mirrors an earlier fix to pci_add_map() which is used when to size BARs during boot. - Move the activation of I/O decoding in the PCI command register into pci_activate_resource() instead of doing it in pci_alloc_resource(). Previously we could actually enable decoding before a BAR was initialized via pci_alloc_map(). Glanced at by: bsdimp
* ichwd: correct range check for timeout valueavg2009-03-031-2/+2
| | | | Approved by: jhb (mentor)
* Start removing IPv6 Type 0 Routing header code.bz2009-03-033-168/+26
| | | | | | | | | | RH0 was deprecated by RFC 5095. While most of the code had been disabled by #if 0 already, leave a bit of infrastructure for possible RH2 code and a log message under BURN_BRIDGES in case a user still tries to send RH0 packets. Reviewed by: gnn (a bit back, earlier version)
* udf_readdir: do not advance offset if entry can not be uio-edavg2009-03-031-1/+1
| | | | | | | | | | Previosly readdir missed some directory entries because there was no space for them in current uio but directory stream offset was advanced nevertheless. jhb has discoved the issue and provided a test-case. Reviewed by: bde Approved by: jhb (mentor)
* Update config.h for OpenBSM 1.1 beta1.rwatson2009-03-031-3/+3
| | | | MFC after: 1 month
* Catch up with USB2 change.nyan2009-03-036-12/+12
| | | | | | | Remove the usbdevs and add the usbconfig. Spotted by: hrs Tested on: i386
* Xref glxsb(4).brueffer2009-03-031-1/+2
| | | | MFC after: 3 days
* Merge r294 from libarchive.googlecode.com: Skip testing forkientzle2009-03-031-0/+7
| | | | | | locale-based failures on systems where the "C" locale is so permissive that it cannot possibly fail. In particular, this fixes a test problem on Cygwin.
* Set PortMultiplier port only for SATA2 channels, where it is applicable.mav2009-03-031-2/+5
| | | | | | | Doing it on old SATA controllers like Promise PDC20375 SATA150 breaks their operation. Tested by: marcus on PDC20375
* Merge r282 from libarchive.googlecode.com: Close multiple filterskientzle2009-03-032-3/+3
| | | | by walking the filter list in archive_read_close().
* Merge r272 from libarchive.googlecode.com: Fix building on MSVC6.kientzle2009-03-031-1/+3
|
* Rename variable 'index' to 'idx' to avoid name collision with index(3),delphij2009-03-037-101/+87
| | | | | | | this commit does not affect any object code. Obtained from: OpenBSD Verified with: md5(1)
* Diff reduction against OpenBSD: ANSI'fy prototypes.delphij2009-03-0228-485/+196
| | | | | | | | (This is part of a larger changeset which is intended to reduce diff only, thus some prototypes were left intact since they will be changed in the future). Verified with: md5(1)
* Extend the "vfsopt" mount options for more general use. Make structjamie2009-03-026-90/+202
| | | | | | | | | | | | | | | | vfsopt and the vfs_buildopts function public, and add some new fields to struct vfsopt (pos and seen), and new functions vfs_getopt_pos and vfs_opterror. Further extend the interface to allow reading options from the kernel in addition to sending them to the kernel, with vfs_setopt and related functions. While this allows the "name=value" option interface to be used for more than just FS mounts (planned use is for jails), it retains the current "vfsopt" name and <sys/mount.h> requirement. Approved by: bz (mentor)
* curr_time is a 64 bit variable so SYSCTL_LONG is not appropriateluigi2009-03-021-0/+2
| | | | | | | | as a handler. The variable was exported only for debugging, but there is little reason to do it now that the timekeeping is supported by various other variables. For the time being just comment out the sysctl, but I think this should go away.
* fw_debug has been unused for ages, so remove it from the listluigi2009-03-022-5/+1
| | | | | | | | | | of sysctl_variables. I would also remove it from the VNET record but I am unsure if there is any ABI issue -- so for the time being just mark it as unused in ip_fw.h, and then we will collect the garbage at some appropriate time in the future. MFC after: 3 days
* Change vfs_busy to wait until an outcome of pending unmountkan2009-03-021-5/+13
| | | | | | | | | | | | operation is known and to retry or fail accordingly to that outcome. This fixes the problem with namespace traversing programs failing with random ENOENT errors if someone just happened to try to unmount that same filesystem at the same time. Reported by: dhw Reviewed by: kib, attilio Sponsored by: Juniper Networks, Inc.
* Switch the default buffer mode in bpf(4) to zero-copy buffers.csjp2009-03-021-1/+1
| | | | Discussed with: rwatson
* Disable INTx when enabling MSI/MSIXrnoland2009-03-022-0/+5
| | | | | | | | | | | | | | | This addresses interrupt storms that were noticed after enabling MSI in drm. I think this is due to a loose interpretation of the PCI 2.3 spec, which states that a function using MSI is prohibitted from using INTx. It appears that some vendors interpretted that to mean that they should handle it in hardware, while others felt it was the drivers responsibility. This fix will also likely resolve interrupt storm related issues with devices other than drm. Reviewed by: jhb@ MFC after: 3 days
* Correct types of variables used to track amount of allocated SysV sharedkib2009-03-025-9/+31
| | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
* Use the p_sysent->sv_flags flag SV_ILP32 to detect 32bit processkib2009-03-025-22/+16
| | | | | | executing on 64bit kernel. This eliminates the direct comparisions of p_sysent with &ia32_freebsd_sysvec, that were left intact after r185169.
* Some Apple I2C buses give the device's I2C address in a property with thenwhitehorn2009-03-021-2/+9
| | | | | | | | name i2c-address instead of reg. Change the OFW I2C probe to check both locations for the address. Submitted by: Marco Trillo Reported by: Justin Hibbits
* Merge OpenBSM 1.1 beta 1 from OpenBSM vendor branch to head, bothrwatson2009-03-0232-317/+910
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manual merge). OpenBSM history for imported revision below for reference. MFC after: 1 month Sponsored by: Apple, Inc. Obtained from: TrustedBSD Project OpenBSM 1.1 beta 1 - The filesz parameter in audit_control(5) now accepts suffixes: 'B' for Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes. For legacy support no suffix defaults to bytes. - Audit trail log expiration support added. It is configured in audit_control(5) with the expire-after parameter. If there is no expire-after parameter in audit_control(5), the default, then the audit trail files are not expired and removed. See audit_control(5) for more information. - Change defaults in audit_control: warn at 5% rather than 20% free for audit partitions, rotate automatically at 2mb, and set the default policy to cnt,argv rather than cnt so that execve(2) arguments are captured if AUE_EXECVE events are audited. These may provide more usable defaults for many users. - Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert au_to_socket_ex(3) arguments to BSM format. - Fix error encoding AUT_IPC_PERM tokens.
* Bump __FreeBSD_version for the ushub to uhub rename.thompsa2009-03-021-1/+1
| | | | Requested by: marcus
* Rename the ushub device class back to uhub as it was in the old usb stack,thompsa2009-03-0243-45/+45
| | | | | | moused(8) looks for "uhub/ums" to decide if needs to load the module. Reported by: Garrett Cooper
* add -b option to suppress the bannersam2009-03-021-4/+8
|
* Write the MBR by using the bootcode verb of the gpart class.marcel2009-03-021-27/+22
| | | | | The "write MBR" verb is kept for backward compatibility, but the DIOCSMBR ioctl has been removed.
* uupdate for 0.6.8sam2009-03-021-2/+3
|
* Rewrite asprintf() as a wrapper around vasprintf(), thus reducing thedas2009-03-021-43/+22
| | | | | number of functions that have an incestuous relationship with the arcane innards of stdio.
* update for 0.6.8sam2009-03-021-4/+2
|
* update for 0.6.8sam2009-03-021-2/+3
|
* The argument corresponding to %zn is supposed to be an ssize_t *, notdas2009-03-022-6/+6
| | | | a size_t *, although the distinction is moot in practice.
* Verify that the filesystem being referenced in fstab is indeed a UFScy2009-03-021-2/+3
| | | | | | | | filesystem. This avoids confusion with nullfs and unionfs filesystems which reference the root of a UFS filesystem as a target. PR: 116849 Approved by: kib
* Move the serial drivers from Giant to using their own mutexs.thompsa2009-03-0218-65/+119
| | | | Tested with: u3g, ubser, uplcom
* don't need these any more; we are now using a combined treesam2009-03-02400-165860/+0
|
* update to 0.6.8sam2009-03-028-96/+107
| | | | Reviewed by: thompsa
* bring in local changes for:sam2009-03-026-4/+102
| | | | | | CONFIG_DEBUG_SYSLOG CONFIG_TERMINATE_ONLASTIF EAP_SERVER
* connect vendor wpa area to contribsam2009-03-02435-0/+184156
|\
OpenPOWER on IntegriCloud