aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Do not leak hooks in ng_bypass().Gleb Smirnoff2006-10-111-0/+3
| | | | | | | Submitted by: Alexander Motin <mav alkar.net> Notes: svn path=/head/; revision=163244
* Make it buildable.Gleb Smirnoff2006-10-111-1/+1
| | | | Notes: svn path=/head/; revision=163241
* Unbreak a short one.Gleb Smirnoff2006-10-111-2/+1
| | | | | | | Submitted by: maxim Notes: svn path=/head/; revision=163240
* Break long line.Gleb Smirnoff2006-10-111-1/+2
| | | | Notes: svn path=/head/; revision=163239
* Use hash functions with better distribution. Tested on live traffic.Gleb Smirnoff2006-10-111-11/+11
| | | | | | | Submitted by: Alexander Motin <mav alkar.net> Notes: svn path=/head/; revision=163238
* o Do not do args->f_id.addr_type == 6 when there isMaxim Konovalov2006-10-111-2/+2
| | | | | | | IS_IP6_FLOW_ID() exactly for that. Notes: svn path=/head/; revision=163237
* o Kill a nit in the comment.Maxim Konovalov2006-10-111-1/+1
| | | | Notes: svn path=/head/; revision=163236
* o Extend not very informative ipfw(4) message 'drop session, too manyMaxim Konovalov2006-10-111-2/+32
| | | | | | | | | | | | entries' by src:port and dst:port pairs. IPv6 part is non-functional as ``limit'' does not support IPv6 flows. PR: kern/103967 Submitted by: based on Bruce Campbell patch MFC after: 1 month Notes: svn path=/head/; revision=163235
* Use bitcount32() from sys/systm.h instead of my own.Gleb Smirnoff2006-10-111-17/+4
| | | | Notes: svn path=/head/; revision=163234
* - Update the baudrate every time the parent changes its link state.Gleb Smirnoff2006-10-111-3/+4
| | | | | | | | - Rearrange the curly braces so that this piece of code is more readable. Notes: svn path=/head/; revision=163232
* Merge the rest of my changes.Ruslan Ermilov2006-10-111-13/+26
| | | | Notes: svn path=/head/; revision=163224
* Fix CPU value.Ruslan Ermilov2006-10-111-1/+1
| | | | Notes: svn path=/head/; revision=163222
* Using the ptr defines broke the powerpc build - convert set_mmfsa to the sameKip Macy2006-10-111-2/+2
| | | | | | | convention as the rest of openfirm.c Notes: svn path=/head/; revision=163221
* Change the x86 interrupt code to suspend/resume interrupt controllersJohn Baldwin2006-10-1015-98/+224
| | | | | | | | | | | | | | | | | | | | | (PICs) rather than interrupt sources. This allows interrupt controllers with no interrupt pics (such as the 8259As when APIC is in use) to participate in suspend/resume. - Always register the 8259A PICs even if we don't use any of their pins. - Explicitly reset the 8259As on resume on amd64 if 'device atpic' isn't included. - Add a "dummy" PIC for the local APIC on the BSP to reset the local APIC on resume. This gets suspend/resume working with APIC on UP systems. SMP still needs more work to bring the APs back to life. The MFC after is tentative. Tested by: anholt (i386) Submitted by: Andrea Bittau <a.bittau at cs.ucl.ac.uk> (3) MFC after: 1 week Notes: svn path=/head/; revision=163219
* Don't pass unused bufsz to kern_shmctl().John Baldwin2006-10-101-7/+6
| | | | Notes: svn path=/head/; revision=163217
* Only try to copyin a msqid for the IPC_SET command to msgctl(). OtherJohn Baldwin2006-10-101-5/+6
| | | | | | | | | commands (such as IPC_RMID) were bogusly failing with EFAULT. Tested by: jkim Notes: svn path=/head/; revision=163216
* Remove unnecessary casts before PTRIN().John Baldwin2006-10-101-11/+11
| | | | Notes: svn path=/head/; revision=163215
* Oops, fix sign bug in #ifdef for value of INTRCNT_COUNT.John Baldwin2006-10-102-4/+4
| | | | | | | | | PR: kern/99870 Submitted by: jkim MFC after: 3 days Notes: svn path=/head/; revision=163212
* Distinguish between two distinct kinds of errors from VOP_BMAP() inAlan Cox2006-10-101-2/+12
| | | | | | | | | | | | | | | vnode_pager_generic_getpages(): (1) that VOP_BMAP() is unsupported by the underlying file system and (2) an error in performing the VOP_BMAP(). Previously, vnode_pager_generic_getpages() assumed that all errors were of the first type. If, in fact, the error was of the second type, the likely outcome was for the process to become permanently blocked on a busy page. MFC after: 3 weeks Reviewed by: tegge Notes: svn path=/head/; revision=163210
* Remind firmware of the ESSID to use in a directed scan. This fixes scanningMax Laier2006-10-101-3/+17
| | | | | | | | | | for hidden APs when we are not comming from iwi_config. Reported by: Andrew N. Below MFC after: 3 days Notes: svn path=/head/; revision=163209
* Do allow jailed superuser to override the port ACL.Robert Watson2006-10-101-1/+1
| | | | | | | | MFC after: 3 days Submitted by: Michal Mertl <mime at traveller dot cz> Notes: svn path=/head/; revision=163208
* Mark the audit system calls as being un-implemented in jails. Currently we doChristian S.J. Peron2006-10-101-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | not trust jails enough to execute audit related system calls. An example of this is with su(1), or login(1) within prisons. So, if the syscall request comes from a jail return ENOSYS. This will cause these utilities to operate as if audit is not present in the kernel. Looking forward, this problem will be remedied by allowing non privileged users to maintain and their own audit streams, but the details on exactly how this will be implemented needs to be worked out. This change should fix situations when options AUDIT has been compiled into the kernel, and utilities like su(1), or login(1) fail due to audit system call failures within jails. This is a RELENG_6 candidate. Reported by: Christian Brueffer Discussed with: rwatson MFC after: 3 days Notes: svn path=/head/; revision=163207
* Guard against invalid metadata.Pawel Jakub Dawidek2006-10-101-0/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=163206
* Do not translate the IN_ACCESS inode flag into the IN_MODIFIED while filesystemKonstantin Belousov2006-10-105-34/+89
| | | | | | | | | | | | | | | | | | is suspending/suspended. Doing so may result in deadlock. Instead, set the (new) IN_LAZYACCESS flag, that becomes IN_MODIFIED when suspend is lifted. Change the locking protocol in order to set the IN_ACCESS and timestamps without upgrading shared vnode lock to exclusive (see comments in the inode.h). Before that, inode was modified while holding only shared lock. Tested by: Peter Holm Reviewed by: tegge, bde Approved by: pjd (mentor) MFC after: 3 weeks Notes: svn path=/head/; revision=163194
* The powerpc and sparc64 MD `reboot' commands should never have existedBruce Evans2006-10-103-26/+10
| | | | | | | | | | | | | | | | | | | | since they just duplicated the MI `reset' command. Instead of removing them, make `reboot' an MI alias for `reboot' since this gives a better way of killing the `r' alias for `reset'. Remove the `registers' command that was used to kill the alias. Turn the powerpc and sparc64 MD `halt' command into an MI command. A copy of sparc64/db_interface.c grew in sun4v just after I found the extra reboot commands. It has not been changed, and is now not identical. Duplicated commands come out duplicated in ddb's online help, but cause large problems when used (e.g., on i386's with 2 halt's and an hwatch, typing h doesn' give the expected message about an ambiguous command, but hangs like the halt command or a looping parseri would). Notes: svn path=/head/; revision=163192
* Fixed loss of whitespace suppression at ends of lines. WhitespaceBruce Evans2006-10-101-3/+3
| | | | | | | | | | | | | suppression is only needed at ends of lines, but rev.1.32 forced it off precisely there. The --More-- prompt is now cleared by explicitly forcing out the whitespace in "\r \r". It might be better to use the line editor's clearing functions, but these are currently static and not much different. Notes: svn path=/head/; revision=163190
* correct diag request to fetch isr state on fatal interruptsSam Leffler2006-10-091-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=163187
* Fix style(9) nits.Jung-uk Kim2006-10-092-76/+74
| | | | Notes: svn path=/head/; revision=163181
* Fix 32-bit PTE in the GART table.Jung-uk Kim2006-10-092-2/+6
| | | | | | | Noticed by: jmg Notes: svn path=/head/; revision=163180
* provide routines to access VPD data at the PCI layer...John-Mark Gurney2006-10-096-182/+397
| | | | | | | | | remove sk's own implementation, and use the new calls to get the data... Reviewed by: -arch Notes: svn path=/head/; revision=163163
* more sun4v fallout - missed addKip Macy2006-10-091-0/+143
| | | | | | | Approved by: rwatson (mentor) Notes: svn path=/head/; revision=163154
* unbreak buildkernel for sparc64 - fallout from sun4vKip Macy2006-10-091-6/+5
| | | | | | | | Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163152
* unbreak sparc64 loader buildKip Macy2006-10-092-2/+1
| | | | | | | | | | | re-add accidentally deleted asi value remove sun4v only header include Approved by: rwatson (mentor) Reviewed by: jmg Notes: svn path=/head/; revision=163151
* kernel clean up to make the sun4v kernel buildKip Macy2006-10-0914-27/+199
| | | | | | | | Reviewed by: jmg Approved by: rwatson (mentor) Notes: svn path=/head/; revision=163146
* add sun4v support to the sparc64 boot loaderKip Macy2006-10-095-10/+1109
| | | | | | | | | Approved by: rwatson (mentor) Reviewed by: jmg Tested by: kris, dwhite, and jmg Notes: svn path=/head/; revision=163145
* Use LIST_FOREACH_SAFE instead of a hand rolled version.Andrew Thompson2006-10-091-8/+4
| | | | Notes: svn path=/head/; revision=163142
* Change vnode_pager_generic_getpages() so that it does not panic if theAlan Cox2006-10-081-2/+13
| | | | | | | | | | | given file is sparse. Instead, it zeroes the requested page. Reviewed by: tegge PR: kern/98116 MFC after: 3 days Notes: svn path=/head/; revision=163140
* Added few more pci ids for Intel, ATI, NVidia, VIA and SiS.Ariff Abdullah2006-10-081-2/+30
| | | | Notes: svn path=/head/; revision=163136
* Added some aliases:Bruce Evans2006-10-081-0/+3
| | | | | | | | | | | | | | | | - `b' is now an official alias for `break'. It used to be an unofficial alias, but this was broken by adding the `bt' alias for `trace'. - `t' is now an official alias for `trace'. It used to be an unofficial alias, but this was broken by adding the `thread' command. - `registers' is now an alias for `show registers'. This is a hack to break the unofficial `r' alias for `reset'. `r' really means `registers' in some debuggers, so I sometimes type it accidentally and am annoyed when it resets the system. A short command shouldn't have such a large effect. Now at least `res' must be typed to disambiguate `reset'. Notes: svn path=/head/; revision=163135
* Fixed formatting of printing of command tables. WIth the default maxBruce Evans2006-10-084-6/+6
| | | | | | | | | | | | | | | | | | output width of 79, only 6 columns of width 12 each fit, but 7 columns were printed. The fix is to pass the width of the next output to db_end_line() and not assume there that this width is always 1. Related unfixed bugs: - 1 character is wasted for a space after the last column - suppression of trailing spaces used to limit the misformatting, but seems to have been lost - in db_examine(), the width of the next output is not know and is still assumed to be 1. Notes: svn path=/head/; revision=163134
* Remove unnecessary test case. (As written, that branch will neverAlexander Leidinger2006-10-081-2/+0
| | | | | | | | | | | be followed.) Submitted by: ryanb Found with: Coverity Prevent CID: 239860 Notes: svn path=/head/; revision=163133
* - change if (cond) panic() to KASSERT.Alexander Leidinger2006-10-081-3/+4
| | | | | | | | | | | - Dont forget to free em in a case of error. Suggested by: ssouhlal Submitted by: rdivacky Tested with: LTP Notes: svn path=/head/; revision=163132
* - Replace homegrown check for FIFO with S_ISFIFO. [1]Alexander Leidinger2006-10-081-1/+7
| | | | | | | | | | | - Check the status of the options before messing with it. Inspired by: NetBSD [1] Submitted by: rdivacky Tested with: LTP Notes: svn path=/head/; revision=163131
* Implement /proc/sys/kernel/pid_max.Alexander Leidinger2006-10-081-0/+19
| | | | | | | | Submitted by: rdivacky Tested with: LTP Notes: svn path=/head/; revision=163129
* Various mdoc and grammar fixes.Paolo Pisati2006-10-081-275/+278
| | | | | | | | Approved by: glebius Reviewed by: glebius, ru Notes: svn path=/head/; revision=163127
* Sort libalias files.Paolo Pisati2006-10-081-2/+2
| | | | | | | | Approved by: glebius Reviewed by: glebius, ru Notes: svn path=/head/; revision=163126
* Add missing PCI ID for the acer m5288Søren Schmidt2006-10-081-0/+1
| | | | Notes: svn path=/head/; revision=163124
* Add a USB umass(4) quirk for Panasonic KXL-840AN CD-R drive.Florent Thoumie2006-10-072-0/+5
| | | | | | | | | PR: usb/81073 Submitted by: James E. Flemer <jflemer@alum.rpi.edu> MFC after: 3 days Notes: svn path=/head/; revision=163105
* Add a USB quirk for CMOTECH CDMA USB modem.Florent Thoumie2006-10-072-0/+5
| | | | | | | | | PR: usb/97948 Submitted by: Alexei Volkov <kot@kotzone.ru> MFC after: 3 days Notes: svn path=/head/; revision=163104
* Add a USB quirk for Motorola A41x/V32x USB phones.Florent Thoumie2006-10-072-0/+3
| | | | | | | | | PR: usb/97512 Submitted by: Mark Diekhans <markd@kermodei.com> MFC after: 3 days Notes: svn path=/head/; revision=163103