summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFp4 //depot/projects/usb@159863thompsa2009-04-051-21/+25
| | | | | | Speed up the endpoint descriptor search Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159811thompsa2009-04-053-8/+48
| | | | | | First patch in a series of memory save patches. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159806thompsa2009-04-051-4/+4
| | | | | | | Properly name usb2_uref_location() so that it is not confused with usb2_unref_location() . Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159797thompsa2009-04-051-1/+0
| | | | | | Remove unused field in "struct usb2_pipe". Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159700thompsa2009-04-051-6/+3
| | | | | | Get rid of the last CALLOUT_RETURNUNLOCKED reference. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159677thompsa2009-04-051-2/+0
| | | | | | Remove redundant locking. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159674thompsa2009-04-053-5/+21
| | | | | | Fix more corner cases around reception of SETUP packets. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159673thompsa2009-04-054-32/+47
| | | | | | Fix a corner case around stalling SETUP packets in device side mode. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159671thompsa2009-04-051-6/+9
| | | | | | Fix interrupt register setting on the atmegadci controller. Submitted by: Hans Petter Selasky
* MFp4 //depot/projects/usb@159562thompsa2009-04-051-44/+51
| | | | | | Reapply r190173 with compilation fixed on 64bit arches. Submitted by: Hans Petter Selasky
* Add some consts, remove some unused stuff and other attempts to calmphk2009-04-059-31/+15
| | | | FlexeLint down.
* Fix casts which are not by definition safe, but which malloc(3)phk2009-04-051-6/+6
| | | | makes safe for us.
* Some constificationsphk2009-04-053-5/+7
|
* Modernize prototypes (ie: no extern)phk2009-04-0510-175/+157
| | | | Make lots of stuff static.
* Improve a bit reass documentation:piso2009-04-051-0/+25
| | | | | -document fragment handling sysctls -mention some caveats about fragments handling (and to deal with it)
* Convert list of remote interfaces to LIST_* macrosphk2009-04-053-16/+8
|
* Kick WARNS level up to 6 by fixing various trivial warnings.phk2009-04-056-9/+10
|
* Use <sys/queue.h> to manage the interface list.phk2009-04-058-41/+35
|
* Remove newlines from string argument of __COPYRIGHT(), it results inphk2009-04-051-2/+2
| | | | assembler warning messages.
* Send multicast on p2p interfaces if they can and are not prohibitedphk2009-04-051-2/+9
| | | | | | | from doing so with no_rip_mcast in /etc/gateways. This allows routed(8) to work with the way ports/security/openvpn employs the tun(4) interface.
* Fix KBI breakage by r190520 which affects older linux.ko binaries:dchagin2009-04-0513-23/+24
| | | | | | | | | | | | | | 1) Move the new field (brand_note) to the end of the Brandinfo structure. 2) Add a new flag BI_BRAND_NOTE that indicates that the brand_note pointer is valid. 3) Use the brand_note field if the flag BI_BRAND_NOTE is set and as old modules won't have the flag set, so the new field brand_note would be ignored. Suggested by: jhb Reviewed by: jhb Approved by: kib (mentor) MFC after: 6 days
* Revert c190007 at the request of Ruslan. It was not correct becauseimp2009-04-051-1/+0
| | | | | | | ar had been moved from cross tools to bootstrap tools when bsd ar was introduced. Submitted by: ru@
* Retire VM_PROT_READ_IS_EXEC. It was intended to be a micro-optimization,alc2009-04-043-18/+0
| | | | | | | | | | | | | | | | | | but I see no benefit from it today. VM_PROT_READ_IS_EXEC was only intended for use on processors that do not distinguish between read and execute permission. On an mmap(2) or mprotect(2), it automatically added execute permission if the caller specified permissions included read permission. The hope was that this would reduce the number of vm map entries needed to implement an address space because there would be fewer neighboring vm map entries that differed only in the presence or absence of VM_PROT_EXECUTE. (See vm/vm_mmap.c revision 1.56.) Today, I don't see any real applications that benefit from VM_PROT_READ_IS_EXEC. In any case, vm map entries are now organized as a self-adjusting binary search tree instead of an ordered list. So, the need for coalescing vm map entries is not as great as it once was.
* Perform a dummy stwcx. when we switch contexts. The contextmarcel2009-04-041-0/+6
| | | | | | | | | | | | | | | | | | | being switched out may hold a reservation. The stwcx. will clear the reservation. This is architecturally recommended. The scenario this addresses is as follows: 1. Thread 1 performs a lwarx and as such holds a reservation. 2. Thread 1 gets switched out (before doing the matching stwcx.) and thread 2 is switched in. 3. Thread 2 performs a stwcx. to the same reservation granule. This will succeed because the processor has the reservation even though thread 2 didn't do the lwarx. Note that on some processors the address given the stwcx. is not checked. On these processors the mere condition of having a reservation would cause the stwcx. to succeed, irrespective of whether the addresses are the same. The dummy stwcx. is especially important for those processors.
* Add sysarch.h. It's included by drm(4).marcel2009-04-041-0/+43
|
* First round of cleanups. There's a lot of NetBSDism in this header.marcel2009-04-041-77/+0
|
* Implement kernel core dump support for Book-E processors.marcel2009-04-041-28/+188
| | | | | | | Both raw physical memory dumps and virtual minidumps are supported. The default being minidumps. Obtained from: Juniper Networks
* Fixup the parameters to audit_submit(3) the order is errno then returncsjp2009-04-041-7/+7
| | | | | | | value. This bug went un-noticed for so long because EPERM == 1 MFC after: 1 week Spotted by: sson, rwatson
* Temporary hack to unbreak user/group lookups;kientzle2009-04-041-2/+2
| | | | | use a larger buffer for getpwuid_r/getgrgid_r. This needs to be dynamically sized.
* Don't let trailing empty lines overwrite the result of the last command with 0.stefanf2009-04-041-1/+2
| | | | | | | This affects the built-ins eval, fc, and trap and also the string passed to sh with the -c option. Submitted by: Jilles Tjoelker
* Revert change 190655 temporarily. It breaks many setups where nullfs iskan2009-04-041-1/+1
| | | | used and needs to be revisited.
* Modularize the Macintosh built-in ATA along the lines of the rest of thenwhitehorn2009-04-041-3/+3
| | | | | | | ATA system as an optional atamacio device. PR: powerpc/133161 Submitted by: Bruce Cran
* - Add the support for the Asus A3F and A3E deviceattilio2009-04-041-5/+31
| | | | | | | | | - Fix style for A3N and for a comment Submitted by: Akira Funahashi <funa@funa.org> Tested by: Marcin Nowak <marcin.nowak@simplusnet.pl>, Diego Sardina <diego.sardina@gmx.com> PR: kern/128634
* - Style: size_t can't be negative.ru2009-04-041-17/+11
| | | | | | | | | | | | | - Don't exit with a zero status code when no jails are configured on a system. - Style: simplify some code constructs. - If a single jail cannot be found, let the caller print a nicer diagnostic message. Reviewed by: bz MFC after: 3 days
* Fixed NAME section.ru2009-04-041-2/+2
|
* Fix mbuf chain layout pessimization:bms2009-04-041-4/+8
| | | | | | | | in the case where a single mbuf is allocated due to m_getcl() returning NULL, we already call MH_ALIGN, so do not increment m->m_data in this case. Found during MLDv2 port.
* Do not obliterate QQI with MAXRESP.bms2009-04-041-2/+2
| | | | Found during MLDv2 port.
* When removing or renaming snaphost, do not delve into request_cleanup().kib2009-04-041-1/+1
| | | | | | | | The later may need blocks from the underlying device that belongs to normal files, that should not be locked while snap lock is held. Reported and tested by: pho MFC after: 1 month
* Many bug fixes (from the IETF hack-fest):rrs2009-04-0410-2119/+365
| | | | | | | | | | | | | | | | - PR-SCTP had major issues when skipping through a multi-part message. o Did not look at socket buffer. o Did not properly handle the reassmebly queue. o The MARKED segments could interfere and un-skip a chunk causing a problem with the proper FWD-TSN. o No FR of FWD-TSN's was being done. - NR-Sack code was basically disabled. It needed fixes that never got into the real code. - CMT code had issues when the two paths were NOT the same b/w. We found a few small bugs, but also the critcal one here was not dividing the rwnd amongst the paths. Obtained from: Michael Tuexen and myself at the IETF hack-fest ;-)
* Add uath(4) wireless USB driver for Atheros AR5005UG and AR5005UXweongyo2009-04-048-0/+7506
| | | | | | chipsets. Reviewed by: sam
* PowerPC, meet kernel core dumps. The support is basedmarcel2009-04-047-14/+398
| | | | | | | | | | | | | | | | | | on a generic dumper that creates an ELF core file and uses PMAP functions to scan and iterate over memory chunks, as well as handle memory mappings used during dumping. the PMAP layer can choose to return physical memory chunks or virtual memory chunks. For minidumps, the chunks should be virtual. The default MMU I/F implementation for the scan_md() method returns NULL. Thus, when a PMAP implementation does not implement the required methods, an empty core file is created. Here, empty means having an ELF header only. Obtained from: Juniper Networks
* The Serverworks SATA chipsets used in Apple G5 systems require requiringnwhitehorn2009-04-041-0/+23
| | | | | | | | the ATA status register with a 4-byte read request. This updates it, and subsequent 1-byte reads will return the correct result. This commit adds a hack to do this, which is currently ifdef'd powerpc, although Linux and Darwin do this unconditionally on all platforms.
* Add support for 64-bit PowerPC CPUs operating in the 64-bit bridge modenwhitehorn2009-04-0428-230/+3775
| | | | | | | | | | provided, for example, on the PowerPC 970 (G5), as well as on related CPUs like the POWER3 and POWER4. This also adds support for various built-in hardware found on Apple G5 hardware (e.g. the IBM CPC925 northbridge). Reviewed by: grehan
* Catch up with recent locking changes.trhodes2009-04-031-6/+0
| | | | | | PR: 132546 Submitted by: pluknet <pluknet@gmail.com> Reviewed by: alc
* Set SO_NOSIGPIPE on sockets used by phttpget. Without this, ifcperciva2009-04-031-0/+6
| | | | | | | | | | | | | | (1) phttpget is attempting to download enough files that it can't send all the requests at once, and (2) the remote server forcibly closes the connection, resulting in RST packets being sent, phttpget will receive a SIGPIPE and terminate without downloading all of the files. This is probably responsible for a number of hard-to-reproduce errors with portsnap and freebsd-update. MFC after: 3 days
* fix whitespacesam2009-04-031-1/+1
|
* Add interleaving root hold tokens from the CAM probe to disk_create and geomthompsa2009-04-035-0/+17
| | | | | | | provider tasting. This is needed for disk attachments that happen after threads are running in the boot process. Tested by: rnoland
* Add a how argument to root_mount_hold() so it can be passed NOWAIT and be calledthompsa2009-04-039-10/+14
| | | | in situations where sleeping isnt allowed.
* Add support for RV790 (HD 4890) asicsrnoland2009-04-031-0/+2
| | | | MFC after: 3 days
* A little more cleanup from AMD, if we don't have the right microcodernoland2009-04-032-38/+37
| | | | | | there is no reason to mess with the chip. MFC after: 3 days
OpenPOWER on IntegriCloud