summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge r389 from libarchive.googlecode.com: Fix a memorykientzle2009-03-051-1/+6
| | | | | leak in ISO9660 handler structure whenever a file entry has a nonsensical CE offset.
* Some cleanups to the i386 FPU support:jhb2009-03-053-53/+36
| | | | | | | | | | | | | | | | | | | - Remove the control word parameter to npxinit(). It was always set to __INITIAL_NPXCW__. - Remove npx_cleanstate_ready as the cleanstate is always initalized when it is used. - Improve the handling of the case when the FPU isn't present. Now the npx0 device no longer succeeds in its probe so all of npx_attach() is skipped. Also, we allow this case with SMP (though that shouldn't actually occur as all i386 systems that support SMP have FPUs) now. SMP was only an issue back when we had an FPU emulator which was not per-CPU. - MFamd64: Clear some of the state in npx_cleanstate rather than leaving it as garbage. - MFamd64: When a user thread first uses the FPU, use npx_cleanstate for the initial FPU state. Reviewed by: bde
* Merge r386,r395,r451 from libarchive.googlecode.com: On Windows, breakkientzle2009-03-051-0/+6
| | | | | | into the debugger on test setup failures (otherwise, the console window just goes away and you can't see what went wrong). On all platforms, clean up a stray buffer before exiting.
* libc_r_* library is no more required, so just axe it.attilio2009-03-056-563/+0
| | | | | Approved by: marcel, emaste Sponsored by: Sandvine Incorporated
* Make pmap_copy() more TLB friendly. Specifically, make it use the kernel'salc2009-03-051-5/+4
| | | | | | | direct map instead of the pmap's recursive mapping to access the lowest level in the page table. MFC after: 6 weeks
* A few cleanups to the FPU code on amd64:jhb2009-03-053-33/+22
| | | | | | | | | | - fpudna() always returned 1 since amd64 CPUs always have FPUs. Change the function to return void and adjust the calling code in trap() to assume the return 1 case is the only case. - Remove fpu_cleanstate_ready as it is always true when it is tested. Also, only initialize fpu_cleanstate when fpuinit() is called on the BSP. Reviewed by: bde
* Move the PCB flag macros up next to the 'pcb_flags' member in the struct.jhb2009-03-051-5/+6
|
* Add support for the single-port NetMos NM9835 serial adapter. The puc(4)jhb2009-03-052-0/+13
| | | | | | | | | entry is a specific entry to override the generic NetMos entry so that puc(4) will leave this device alone and let uart(4) claim it. Submitted by: Navdeep Parhar nparhar @ gmail Reviewed by: marcel MFC after: 1 week
* SAs are valid (but dying) when they reached soft lifetime,vanhu2009-03-051-14/+7
| | | | | | | even if they have never been used. Approved by: gnn(mentor) MFC after: 2 weeks
* Add support for the UNION interface descriptor, used by Nokia phones.thompsa2009-03-051-27/+22
| | | | PR: usb/117185
* At least one BIOS bogusly includes duplicate entries for I/O APICs. Thejhb2009-03-052-0/+8
| | | | | | | | | bogus entries have a starting IRQ that is invalid (> 255, so won't fit into a PCI intline config register). It had the side effect of breaking MSI by "claiming" several IRQs in the MSI range. Fix this by ignoring such I/O APICs. MFC after: 2 weeks
* Always read/write the full 64-bit value of 64-bit BARs. Specifically,jhb2009-03-052-23/+34
| | | | | | | | when determining the size of a BAR by writing all 1's to the BAR and reading back the result, always operate on the full 64-bit size. Reviewed by: imp MFC after: 1 month
* Honor the prefetchable flag in memory BARs by setting the RF_PREFETCHABLEjhb2009-03-051-2/+6
| | | | | | | | | | | flag when calling bus_alloc_resource() to allocate resources from a parent PCI bridge. For PCI-PCI bridges this asks the bridge to satisfy the request using the prefetchable memory range rather than the normal memory range. Reviewed by: imp Reported by: scottl MFC after: 1 week
* Hopefully, improve the grammar and wording in the changes to shmctl(2)kib2009-03-052-8/+9
| | | | | | | manpage and UPDATING entry 20090302. UPDATING changes suggested by bf2006a yahoo com. man page corrections by bde.
* Systematically use vm_size_t to specify the size of the segment for VM KPI.kib2009-03-051-6/+6
| | | | | | | | | Do not overload the local variable size in kern_shmat() due to vm_size_t change. Fix style bug by adding explicit comparision with 0. Discussed with: bde MFC after: 1 week
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
* move a variable declaration to the beginning of the blockluigi2009-03-051-1/+1
| | | | | (unfortunately, it is far away; we need to pack this code in a better way).
* remove some signed/unsigned and one const/!const warningluigi2009-03-051-5/+5
|
* mark a function static, as it isluigi2009-03-051-1/+1
|
* Argh. r189389 was supposed to include r539 from libarchive.googlecode.comkientzle2009-03-053-6/+9
| | | | but those compile fixes somehow got lost. This should fix the build.
* Merge r551,r561 from libarchive.googlecode.com: Update gzip read filterkientzle2009-03-052-231/+218
| | | | | to fully take advantage of the new peek/consume I/O support. In particular, this now properly handles concatenated gzip streams.
* Merge r364, r378, r379, r393, and r539 from libarchive.googlecode.com:kientzle2009-03-057-613/+506
| | | | | | | | | | | | | | | | This is the last phase of the "big decompression refactor" that puts a lazy reblocking layer between each pair of read filters. I've also changed the terminology for this area---the two kinds of objects are now called "read filters" and "read filter bidders"---and moved ownership of these objects to the archive_read core. This greatly simplifies implementing new read filters, which can now use peek/consume I/O semantics both for bidding (arbitrary look-ahead!) and for reading streams (look-ahead simplifies handling concatenated streams, for instance). The first merge here is the overhaul proper; the remainder are small fixes to correct errors in the initial implementation.
* Correct r189383, which mis-merged a change from libarchive.googlecode.com.kientzle2009-03-051-2/+2
|
* Our realloc(3) and reallocf(3) can handle NULL, which turns it into adelphij2009-03-054-21/+8
| | | | | | malloc(3) call, so don't test if a pointer is NULL. Obtained from: OpenBSD (in spirit)
* Merge r356 and r358 from libarchive.googlecode.com: Remove a Windowskientzle2009-03-052-9/+8
| | | | special case from archive_entry.c, add one to archive_check_magic.c.
* Merge r357 from libarchive.googlecode.com: bzip2 compressionkientzle2009-03-051-3/+3
| | | | | support can always be enabled even if bzlib doesn't exist on this platform; don't give up until we fail to open the file.
* Merge r362 from libarchive.googlecode.com: Minor fix tokientzle2009-03-051-2/+3
| | | | custom argument parser.
* Merge r342 from libarchive.googlecode.com: Remove somekientzle2009-03-051-28/+1
| | | | Windows special casing.
* Merge r344 from libarchive.googlecode.com: __LA_INT64_T and __LA_SSIZE_Tkientzle2009-03-051-3/+6
| | | | | are part of the public API and therefore need to be exposed. This is ugly; I'd like to find a better solution for this.
* Merge r341,r345,r346,347 from libarchive.googlecode.com: Stylekientzle2009-03-056-29/+59
| | | | | fixes to test harness and a few extra guards to detect tests that can't succeed on certain platforms.
* add a sysctl to ena/dis frobbing ccasam2009-03-052-1/+22
|
* Now pci(4) handles PCIM_CMD_INTxDIS so there is no need to pokeyongari2009-03-051-10/+1
| | | | this bit in driver.
* add the desired channel to the scan list if not already present andsam2009-03-041-0/+27
| | | | compatible with other scan controls
* The recent PCI resource allocation fixes exposed a bug where the samejhb2009-03-041-1/+60
| | | | | | | | BAR could be allocated twice by different children of a vgapci0 device. To fix this, change the vgapci0 device to track references on its associated resources so that they are only allocated once from the parent PCI bus and released when no children are using them. Previously this leaked a small amount of KVA on at least some architectures.
* - PR-SCTP bug, where the CUM-ACK was not being updatedrrs2009-03-043-16/+27
| | | | | | | | | | into the advance_peer_ack point so we would incorrectly send a wrong value in the FWD-TSN - PR-SCTP bug, where an PR packet is used for a window probe which could incorrectly get the packet moved back into the send_queue, which will cause major issues and should not happen. - Fix a trace to use the proper macro.
* Make IPXrouted compile using Clang by using ANSI function declarations.ed2009-03-041-22/+10
| | | | | | | Because of integer promotion, Clang doesn't allow ANSI prototypes to be mixed with K&R declarations. Submitted by: Pawel Worach <pawel worach gmail com>
* Remove the local management of INTx as this is now taken care of by pci.rnoland2009-03-048-32/+0
| | | | | Reviewed by: jhb MFC after: 3 days
* Extend the management of PCIM_CMD_INTxDIS.rnoland2009-03-041-18/+35
| | | | | | | | | | | We now explicitly enable INTx during bus_setup_intr() if it is needed. Several of the ata drivers were managing this bit internally. This is better handled in pci and it should work for all drivers now. We also mask INTx during bus_teardown_intr() by setting this bit. Reviewed by: jhb MFC after: 3 days
* Put the restrict qualifiers in the right place in the wcp[n]cpy prototypes.das2009-03-041-2/+2
| | | | Submitted by: Pawel Worach <pawel.worach@gmail.com>
* udf: use truly unique directory cookieavg2009-03-041-1/+1
| | | | | | | | 'off' is an offset within current block, so there is a good chance it can be non-unique, so use complete offset. Submitted by: bde Approved by: jhb
* udf_strategy: remove redundant commentavg2009-03-041-4/+0
| | | | | | | | | We fail mapping for any udf_bmap_internal error and there can be different reasons for it, so no need to (over-)emphasize files with data in fentry. Submitted by: bde Approved by: jhb
* Add AT_PLATFORM, AT_HWCAP and AT_CLKTCK auxiliary vector entries whichdchagin2009-03-046-51/+218
| | | | | | | | | | | | | | are used by glibc. This silents the message "2.4+ kernel w/o ELF notes?" from some programs at start, among them are top and pkill. Do the assignment of the vector entries in elf_linux_fixup() as it is done in glibc. Fix some minor style issues. Submitted by: Marcin Cieslak <saper at SYSTEM PL> Approved by: kib (mentor) MFC after: 1 week
* Add wcpcpy(3) and wcpncpy(3).das2009-03-046-3/+110
|
* Add Mobile Action MA-620 Infrared Adapter.thompsa2009-03-043-0/+8
| | | | | | PR: usb/125072 Submitted by: Alexander Logvinov MFC after: 1 week
* In ip_output(), do not acquire the IN_MULTI_LOCK(),bms2009-03-041-17/+14
| | | | | | | | | | | | | | | | | | | | and do not attempt to perform a group lookup. This is a socket layer lock, and the bottom half of IP really has no business taking it. Use the value of the in_mcast_loop sysctl to determine if we should loop back by default, in the absence of any multicast socket options. Because the check on group membership is now deferred to the input path, an m_copym() is now required. This should increase multicast send performance where the source has not requested loopback, although this has not been benchmarked or measured. It is also a necessary change for IN_MULTI_LOCK to become non-recursive, which is required in order to implement IGMPv3 in a thread-safe way.
* Remove some unused vendor files.das2009-03-0439-16499/+0
|
* Add sysctl net.inet.ip.mcast.loop. This controls whether or notbms2009-03-041-1/+8
| | | | | | IPv4 multicast sends are looped back to senders by default on a stack-wide basis, rather than relying on the socket option. Note that the sysctl only applies to newly created multicast sockets.
* Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),das2009-03-047-36/+218
| | | | | | dprintf() is a simple wrapper around another function, so we may as well implement it. But also like getline(), we can't prototype it by default right now because it would break too many ports.
* Add renameat to the POSIX.1-2008 namespace.das2009-03-041-1/+1
|
* Add *at to the POSIX.1-2008 namespace.das2009-03-041-1/+1
|
OpenPOWER on IntegriCloud