summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Obtain main clock frequency dynamically based on CKGR_MCFR registerstas2008-11-302-6/+51
| | | | | | | | | | | contents. - It is possible to override the dynamic configuration by using AT91C_MAIN_CLOCK option in kernel config. PR: arm/128961 (based on) Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de> Reviewed by: imp Approved by: kib (mentor, implicit)
* cover up sun4v namespace pollutionsam2008-11-301-0/+3
|
* It's silly to claim recv(2) is to be removed in favour of recvfrom(2)ivoras2008-11-301-1/+0
| | | | | | (at least at this time :) ). Approved by: gnn (mentor)
* hookup mcast and promisc callbackssam2008-11-301-0/+18
| | | | Submitted by: "Paul B. Mahol" <onemda@gmail.com>
* Partially roll back a revision which changed the error code being returnedcsjp2008-11-301-1/+1
| | | | | | | | | | | | | | by getaudit(2). Some applications such has su, id will interpret E2BIG as requiring the use of getaudit_addr(2) to pull extended audit state (ip6) from the kernel. This change un-breaks the ABI when auditing has been activated on a system and the users are logged in via ip6. This is a RELENG_7_1 candidate. MFC after: 1 day Discussed with: rwatson
* Adjust an assertion to handle the case where a lock is contested, butjasone2008-11-301-1/+1
| | | | | | spinning is avoided due to running on a single-CPU system. Reported by: stefanf
* Major overhaul:sam2008-11-302-382/+569
| | | | | | | | | | | | | | | | o eliminate private state indexed by 802.11 rate codes; use the hal's rate tables directly to get the same info o calculate a mask of operational rates to optimize lookups and checks (instead of using for loops and similar) o optimize size bin operations o ignore rates marked as "do not use" in the hal phy tables o fix bug that caused upshifting to break in 11g once the rate dropped below 11Mb/s o add more intelligent multi-rate tx schedules o add support for 1/2 and 1/4 width channels o add dev.ath.X.sample_stats sysctl to dump runtime statistics to the console (needs to go up to a user app) o export more tuning knobs via sysctls (still a couple of magic constants)
* sync w/ p4 branchsam2008-11-301-1/+2
|
* some of the 11n parts can hang under certain conditions withoutsam2008-11-301-2/+28
| | | | | | | necessary workarounds, add code to detect these hangs and distinguish them from other events; note this code is only invoked for anomalous conditions and (at the moment) is a noop because the hang detection code is in a new hal that's coming shortly
* add frequency mapping for the Zcomax GZ-901sam2008-11-301-4/+9
|
* enable use of modules but disable them by adding MODULES_OVERRIDE=""sam2008-11-3012-3/+13
| | | | | | | in each config file until we can sort out issues in the modules tree Reviewed by: imp MFC after: 1 month
* opt_at91.h isn't needed here at all anymore, since the board initimp2008-11-301-1/+0
| | | | | routines have been split out. Remove it. This leaves only one instance of it in the tree that will be going away soon.
* Enable getaudit_addr(2) for sshd again. This will un-break the subjectcsjp2008-11-301-1/+1
| | | | BSM audit tokens for IPv6.
* Make the linker.hints file have mode 644 instead of 600.luigi2008-11-301-0/+2
| | | | | | | There is nothing secret in the file, and the missing read permission breaks diskless operation. MFC after: 4 weeks
* Clarify the reason to not use the volatile string as an argument to CTRkib2008-11-301-6/+11
| | | | | | | macros. Note the logging of file and line. Reviewed by: dchagin MFC after: 3 days
* Don't call ether_ioctl() with locks held. Loop in xn_rxeof() until the backenddfr2008-11-301-81/+85
| | | | | stops adding stuff to the ring otherwise we miss RX interrupts which kills performance.
* Add more obsolete files.antoine2008-11-301-0/+5
|
* On FreeBSD, printing the version is centralized, so no need to repeatimp2008-11-301-2/+0
| | | | it here. I think that gonzo@ has also made this change to p4.
* Do not spin when trying to lock on a single-CPU system.jasone2008-11-301-11/+13
| | | | Reported by: davidxu
* Improve a comment.jkoshy2008-11-301-4/+7
|
* According to "Intel 64 and IA-32 Architectures Software Developer's Manualmav2008-11-301-1/+5
| | | | | | Volume 3B: System Programming Guide, Part 2", CPUs with family 0x6 and model above or 0xE and CPUs with family 0xF and model above or 0x3 have invariant TSC.
* According to "Intel 64 and IA-32 Architectures Software Developer's Manualmav2008-11-301-1/+5
| | | | | | Volume 3B: System Programming Guide, Part 2", CPUs with family 0x6 and model above or 0xE and CPUs with family 0xF and model above or 0x3 have invariant TSC.
* Unlock the malloc() locks in the child process after fork(). This giveskib2008-11-291-0/+1
| | | | | | | | | | | | | us working malloc in the fork child of the multithreaded process. Although POSIX requires that only async-signal safe functions shall be operable after fork in multithreaded process, not having malloc lower the quality of our implementation. Tested by: rink Discussed with: kan, davidxu Reviewed by: kan MFC after: 1 month
* Parse the error string returned by the kernel. The format is:marcel2008-11-291-14/+39
| | | | | | | | <errno> [<parameter> <value>] So, rather than printing the error: gpart: 22 scheme 'gpt' gpart(8) now prints: gpart: scheme 'gpt': invalid argument
* Format the output of -itv for real. In particular:kientzle2008-11-293-13/+225
| | | | | | | | | | | | | | | * Lookup uname/gname if not provided by the archive (I copied the uname/gname lookup cache from bsdtar) * Format device number instead of size for device nodes * Format date. There's still a few improvements that I could copy from bsdtar, especially the locale-aware safe_fprintf() code and the locale-aware setup for day_first date formatting. (And, of course, I need to think through a clean way to push this stuff down into libarchive.) Thanks to Peter Wemm for reminding me of this overlooked TODO item.
* Third argument to the vi_mmap_t function is vm_paddr_t *.kib2008-11-291-1/+1
| | | | MFC after: 3 days
* When deciding which characters (of a filename, for instance)kientzle2008-11-292-49/+119
| | | | | | | | | | | | are safe to print, try to take into account the current locale. This iterates over output strings using mbtowc() to identify multi-byte sequences. If iswprint() claims the corresponding wide character is printable, the original bytes are passed through. Otherwise, we expand characters into C-style \-escape sequences. Submitted by: Michihiro NAKAJIMA MFC after: 30 days
* Add standard MLINKs.brueffer2008-11-291-0/+3
|
* Bring this a little closer to our manpage style.brueffer2008-11-291-16/+30
|
* Add several missing MLINKs.brueffer2008-11-291-1/+10
|
* Fix typo.brueffer2008-11-291-1/+1
|
* Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.kib2008-11-294-52/+301
| | | | | | | | Change types used in the linux' struct msghdr and struct cmsghdr definitions to the properly-sized architecture-specific types. Move ancillary data handler from linux_sendit() to linux_sendmsg(). Submitted by: dchagin
* Unbreak the no-networks (no INET/6) build that I broke withbz2008-11-291-0/+2
| | | | | | the commit in r185435. Pointyhat: no, but I could need a ski cap for the winter
* Regeneratekib2008-11-293-9/+9
|
* Fix iovec32 for linux32/amd64.kib2008-11-293-14/+47
| | | | | | | | | | | Add a custom version of copyiniov() to deal with the 32-bit iovec pointers from userland (to be used later). Adjust prototypes for linux_readv() and linux_writev() to use new l_iovec32 definition and to match actual linux code. In particular, use ulong for fd (why ?). Submitted by: dchagin
* Regen after jail support was added in r185435.bz2008-11-294-7/+12
|
* MFp4:bz2008-11-2939-383/+2421
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring in updated jail support from bz_jail branch. This enhances the current jail implementation to permit multiple addresses per jail. In addtion to IPv4, IPv6 is supported as well. Due to updated checks it is even possible to have jails without an IP address at all, which basically gives one a chroot with restricted process view, no networking,.. SCTP support was updated and supports IPv6 in jails as well. Cpuset support permits jails to be bound to specific processor sets after creation. Jails can have an unrestricted (no duplicate protection, etc.) name in addition to the hostname. The jail name cannot be changed from within a jail and is considered to be used for management purposes or as audit-token in the future. DDB 'show jails' command was added to aid debugging. Proper compat support permits 32bit jail binaries to be used on 64bit systems to manage jails. Also backward compatibility was preserved where possible: for jail v1 syscalls, as well as with user space management utilities. Both jail as well as prison version were updated for the new features. A gap was intentionally left as the intermediate versions had been used by various patches floating around the last years. Bump __FreeBSD_version for the afore mentioned and in kernel changes. Special thanks to: - Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches and Olivier Houchard (cognet) for initial single-IPv6 patches. - Jeff Roberson (jeff) and Randall Stewart (rrs) for their help, ideas and review on cpuset and SCTP support. - Robert Watson (rwatson) for lots and lots of help, discussions, suggestions and review of most of the patch at various stages. - John Baldwin (jhb) for his help. - Simon L. Nielsen (simon) as early adopter testing changes on cluster machines as well as all the testers and people who provided feedback the last months on freebsd-jail and other channels. - My employer, CK Software GmbH, for the support so I could work on this. Reviewed by: (see above) MFC after: 3 months (this is just so that I get the mail) X-MFC Before: 7.2-RELEASE if possible
* Check the return value of config_intrhook_establish().rpaulo2008-11-291-1/+5
| | | | | Found with: Coverity Prevent(tm) CID: 2115
* Check for non-existing model DMI string.rpaulo2008-11-291-0/+3
| | | | | | | Submitted by: ganbold Found with: Coverity Prevent(tm) CID: 2434 MFC after: 1 week
* In the nfsrv_fhtovp(), after the vfs_getvfs() function found the pointerkib2008-11-294-12/+42
| | | | | | | | | | | | | | | | | | | to the fs, but before a vnode on the fs is locked, unmount may free fs structures, causing access to destroyed data and freed memory. Introduce a vfs_busymp() function that looks up and busies found fs while mountlist_mtx is held. Use it in nfsrv_fhtovp() and in the implementation of the handle syscalls. Two other uses of the vfs_getvfs() in the vfs_subr.c, namely in sysctl_vfs_ctl and vfs_getnewfsid seems to be ok. In particular, sysctl_vfs_ctl is protected by Giant by being a non-sleeping sysctl handler, that prevents Giant-locked unmount code to interfere with it. Noted by: tegge Reviewed by: dfr Tested by: pho MFC after: 1 month
* Improve KASSERT() call a bit:pjd2008-11-291-1/+2
| | | | | | | | | - Print flags in hex. - Note that flags can be fine and panic can be due unexpected error condition. - Remove redundant new line character. Eventhough panic message excess 80 characters keep it in one line so it is easier to grep.
* MFp4: Remove assertion that is no longer valid - we now use VOP_CLOSE() inpjd2008-11-291-1/+0
| | | | more places (ie vdev_file.c).
* make 'make universe' not complain aboutbz2008-11-291-0/+1
| | | | | | | | | In file included from /src/sys/modules/powermac_nvram/../../dev/powermac_nvram/powermac_nvram.c:38: @/dev/ofw/ofw_bus.h:36:24: error: ofw_bus_if.h: No such file or directory I am not sure for how long this had not worked and if it was just the latest vimage commit that had revealed this or if nobody had built universe successfully in a while. Btw, the tinderbox did not complain either so that is probably the reason noone had noticed.
* Unbreak mips build by taking first WAG at mb(), wmb() and rmb(). Theimp2008-11-291-0/+4
| | | | latter two are likely pessimal...
* Noticed the following error message:imp2008-11-291-2/+6
| | | | | | | | | | | | mount_msdosfs: /dev/cf0s1: : Operation not supported by device and thought I'd fix it to be: mount_msdosfs: /dev/cf0s1: Operation not supported by device Not sure why errmsg isn't getting filled in, or why this error is even happening at all... (fsck_msdosfs is clean, and I can mount this same CF elsewhere).
* Renamed the FRAMELEN macro to TRUEPHY_FRAMELEN as for powerpcbz2008-11-281-2/+3
| | | | | | it seems to be possible to collide with FRAMELEN from machine/frame.h. Found by: zec
* Add an essential .h file that skipped from the last commit (r185419).zec2008-11-281-0/+82
| | | | | | Pointy hat #1 on... Pointed out by: bz
* Unhide declarations of network stack virtualization structs fromzec2008-11-2818-81/+40
| | | | | | | | | | | | | | | | | | underneath #ifdef VIMAGE blocks. This change introduces some churn in #include ordering and nesting throughout the network stack and drivers but is not expected to cause any additional issues. In the next step this will allow us to instantiate the virtualization container structures and switch from using global variables to their "containerized" counterparts. Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* o FreeBSD 6.4-RELEASE added.maxim2008-11-281-6/+8
|
* With the permissions of phk@ change the license on kern_jail.cbz2008-11-281-6/+22
| | | | to a 2 clause BSD license.
OpenPOWER on IntegriCloud