summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix style in previous commit.cognet2007-12-071-5/+6
| | | | Pointed out by: njl
* Preallocate some space to return the scan results, some drivers do not properlythompsa2007-12-071-9/+25
| | | | | | | | | pass back the desired buffer length. This fixes scanning with the Marvell 88W8335 and BCM4328 wireless cards. PR: kern/118370 Submitted by: Weongyo Jeong Tested by: Ed Schouten
* Increment FreeBSD_version to mark the addition of callchain supportjkoshy2007-12-071-1/+1
| | | | to hwpmc.
* Kernel and hwpmc(4) support for callchain capture.jkoshy2007-12-0718-135/+783
| | | | Sponsored by: FreeBSD Foundation and Google Inc.
* Add padding for anticipated functionalitykmacy2007-12-077-13/+28
| | | | | | | | | | | | - vimage - TOE - multiq - host rtentry caching Rename spare used by 80211 to if_llsoftc Reviewed by: rwatson, gnn MFC after: 1 day
* - More fixes for lock misses on the transfer of data torrs2007-12-073-105/+126
| | | | | | | | | the sent_queue. Sometimes I wonder why any code ever works :-) - Fix the pad of the last mbuf routine, It was working improperly on non-4 byte aligned chunks which could cause memory overruns. MFC after: 1 week
* Allow simultaneous opens of the device for issuing commands to theemaste2007-12-072-75/+151
| | | | controller. This is merged from Adaptec driver build 11669.
* Turn MPASS(0) into panic with more obvious reason why the assertiondelphij2007-12-071-5/+5
| | | | is failed.
* Regen.jhb2007-12-064-10/+26
|
* Add freebsd32 compat wrappers for msgctl() and __semctl() usingjhb2007-12-061-4/+4
| | | | | | kern_msgctl() and kern_semctl(). MFC after: 1 week
* Add freebsd32 compat wrappers for msgctl() and _semctl() usingjhb2007-12-062-25/+219
| | | | | | kern_msgctl() and kern_semctl(). MFC after: 1 week
* Move 32-bit SYSV IPC structure definitions into freebsd32_ipc.h.jhb2007-12-062-36/+72
| | | | MFC after: 1 week
* size_max should be unsigned, as such, use size_t here.delphij2007-12-061-1/+1
|
* Erm, add a missing else, we do not want to increase the mapping counters forcognet2007-12-061-1/+1
| | | | | | | both kernel and userland when we create a pv for pmap_kernel. Reported by: Mark Tinguely <tinguely AT casselton DOT net> MFC After: 3 days
* Move several data structure definitions out of freebsd32_misc.c and intojhb2007-12-064-83/+94
| | | | | | freebsd32.h instead. MFC after: 1 week
* Remove more dup'd codejulian2007-12-061-21/+0
| | | | MFC After: 1 week
* remove duped codejulian2007-12-061-26/+1
| | | | | Reviewed By: gnn MRC after: 1 week
* No need to assert that a == b when we just set a = b.julian2007-12-061-1/+0
|
* Change uint8_t to equivalent base language type and add line break where 80kmacy2007-12-061-4/+6
| | | | | | characters is exceeded in bit macros Requested by: Bruce Evans
* Add more PCI ID's from Adaptec's driver, including two requestedemaste2007-12-061-0/+16
| | | | | | | | | | | | | by Daniel Kamm. Adaptec RAID 51245 Adaptec RAID 51645 Adaptec RAID 52445 Adaptec RAID 5405 Sun STK RAID REM Sun STK RAID EM SG-XPCIESAS-R-IN SG-XPCIESAS-R-EX
* Simpler version of the previous commit.des2007-12-061-5/+2
|
* Only attach to a GPT partition if it has the GPT_ENT_TYPE_FREEBSD type.jhb2007-12-061-0/+13
| | | | | | | | XXX: This only works currently with GEOM_GPT which only exists in 6.x. XXX: I didn't add 'mbroffset' support for a GPT partition holding a BSD label as I'm not sure if they use relative or absolute offsets. MFC after: 3 days
* Respect the fact that the value a may be constant so cast to const uint8_t *kmacy2007-12-061-2/+2
|
* Add a BSD disklabel backend to g_part:marcel2007-12-067-15/+498
| | | | | | | o Disklabels can have between 8 and 20 partitions (inclusive). o No device special file is created for the raw partition. o Switch ia64 to use this backend. o No support for boot code yet.
* Add PCI IDs for additional cards:emaste2007-12-061-0/+12
| | | | | | | | | AOC-USAS-S4i AOC-USAS-S8i AOC-USAS-S4iR AOC-USAS-S8iR AOC-USAS-S8i-LP AOC-USAS-S8iR-LP
* Hold Giant over the entire execution of the suspend path instead ofnjl2007-12-061-4/+4
| | | | | | | dropping it after each call into newbus. This doesn't fix any known problems but seems more correct. Submitted by: Marko Zec <zec / icir.org>
* - optimize the initialization of the SB max variables.rrs2007-12-062-9/+20
| | | | | | | | | | | | - Missing lock when sending data and moving it to the outqueue. - If a mbuf alloc fails during moving to outqueue the reassembly of the old mbuf chain was incorrect. - some_taken becomes a counter in sctputil.c instead of a set to 1. - Fix a panic to be only under invarients and have a proper recovery. - msg_flags needed to be set.to the value collected not or'd. MFC after: 1 week
* Fix bit macros to work on multi-byte typeskmacy2007-12-051-4/+4
| | | | MFC after: 1 day
* Fix a use-after-free.philip2007-12-051-2/+1
| | | | | | Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam MFC after: 1 day
* Plug two potential (root-only, local) information leaks. buf is notphilip2007-12-052-8/+8
| | | | | | | | initialized before use and returned integrally instead of up to size. Submitted by: Ilja van Sprundel <ilja -at- netric.org> Reviewed by: secteam MFC after: 1 day
* - Puts default limits on 4k/9k and 16k zones for mbufs all basedrrs2007-12-051-6/+67
| | | | | | | | | on 1/2 of each of the successive limits tied to the limit for 2k clusters. - Adds real functionality in so that doing a sysctl to change these actually changes them :-) MFC after: 1 week
* Bring in support for: Marvell Yukon 8039remko2007-12-052-0/+3
| | | | | | | PR: 118401 Submitted by: Skip Ford <skip at menantico dot com> Approved by: imp (mentor), yongari MFC After: 3 days
* Use curthread instead of the FIRST_THREAD_IN_PROC for vnlru and syncer,kib2007-12-051-15/+42
| | | | | | | | | | | | | | | | | when applicable. Aquire Giant slightly later for vnlru. In the syncer, aquire the Giant only when a vnode belongs to the non-MPsafe fs. In both speedup_syncer() and syncer_shutdown(), remove the syncer thread from the lbolt sleep queue after the syncer state is modified, not before. Herded by: attilio Tested by: Peter Holm Reviewed by: ups MFC after: 1 week
* Stop serial console and gdb serial port from getting all screwed up.julian2007-12-051-1/+1
| | | | | | PR: 65278 MFC in: 3 days Submitted by: ups@
* In nmount(), internally convert the mount option: "rdonly" to "ro".rodrigc2007-12-051-3/+6
| | | | | | | | | | | | | This makes updates mounts such as: "mount -u -o rdonly" work more like, "mount -u -o ro". References to "-o rdonly" were changed to "-o ro" in revision 1.60 of the mount(8) man page, but some people still like to use "-o rdonly" since it was documented in earlier versions of FreeBSD. Requested by: rwatson MFC after: 1 week
* Apply a workaround for the unkillable jail problem where some devices createdthompsa2007-12-051-0/+2
| | | | | | | | | | | within the jail are never freed. si_cred is only used by the MAC framework so make the cred reference conditional on it being compiled in, this is not a fix and will need to be reviewed for any new consumers of si_cred. This will quell some user complaint when using jails with a default kernel. Reviewed by: rwatson MFC after: 3 days
* Support monitor mode where the frame is discarded after bpf and stats ↵thompsa2007-12-051-0/+5
| | | | processing.
* Remove obsolete comment on a way of getting kernel configuration file fromwkoszek2007-12-041-2/+1
| | | | | | | | | INCLUDE_CONFIG_FILE. Make a user to look at what config(8) actually does, and how can one fetch actual configuration file. Reported by: many Reviewed by: cognet (mentor) Approved by: cognet (mentor)
* Cast address of 'bssid' to uint8_t since printf() expects to get unsignedwkoszek2007-12-041-1/+1
| | | | | | | | | argument in %6D case. Submitted by: thompsa Compile-tested: wkoszek Reviewed by: cognet (mentor) Approved by: cognet (mentor)
* Cast 'data' to 'u_char', as printf() requires this type to be unsigned. Thiswkoszek2007-12-041-1/+1
| | | | | | | | | is what gcc3 complains about. Without this change, it's impossible to build the kernel with gcc3. Tested by: cognet@ (mentor) Approved by: cognet@ (mentor)
* Remove redundant checks for msgsnd(3) and msgrcv(3).jkim2007-12-041-6/+0
| | | | | | COMPAT_IA32 (implicitly) requires SYSVSEM, SYSVSHM and SYSVMSG in kernel. Pointed out by: jhb
* Explicitly initialize 'ret' to 0'. It lets one to build tmpfs from thewkoszek2007-12-041-0/+2
| | | | | | latest source tree with older compiler--gcc3. Approved by: cognet (mentor)
* - More fixes for the non-blocking msg send, had the skip of the pre-blockrrs2007-12-042-4/+5
| | | | | | | | | test incorrect. - Fix the initial buf calculation to be more friendly, calc is the same but we use different variable to make it easier amongst the different code versions. MFC after: 1 week
* Explicitly initialize 'error' to 0 (two places). It lets one to build tmpfswkoszek2007-12-041-1/+3
| | | | | | | from the latest source tree with older compiler--gcc3. Reviewed by: kib@ (on freebsd-current@) Approved by: cognet@ (mentor)
* Increment __FreeBSD_version on account of changes to the jumbo framesalc2007-12-041-1/+1
| | | | | | allocator. (See revision 1.35 of kern/kern_mbuf.c.) Requested by: Andrew Gallatin
* - Opps, signedness issue with one of the new var's (this is an issuerrs2007-12-041-1/+1
| | | | | | mainly in apple but with the right -Wall it could effect us too). MFC after: 1 week
* - Found a problem in non-blocking sends. Whenrrs2007-12-044-86/+115
| | | | | | | | | | | | | | | | | | | | sending, once the locks are all unlocked to do the copy's in, its possible that other events could then raise the number of bytes outstanding pushing it so not all the message would fit. This would then cause us to send only part of the message. This fix makes it so we keep a "reserved" amount that can be kept in mind when making calculations to send. - rcv msg args with a NULL/NULL for to/tolen will return an error incorrectly for the 1-2-1 model. - We were not doing 0 len return correctly and not setting cantrcv more correctly. Previouly we "fixed" this area by taking out the socantrcv since we then could not get the data out. The correct rix is to still flag the socket but alow a by-pass route to continue to read until all data is consumed. MFC after: 1 week
* For the sake of convenience, print the name of the network interfaceyar2007-12-041-2/+2
| | | | | | IPv4 address duplication was detected on. Idea by: marck
* Fix the ABI change of the signal delivered on the access to the pagekib2007-12-042-4/+58
| | | | | | | | | | | | | | | | | | | | | with insufficient protection mode. For the i386 and amd64, create the tunable, machdep.prot_fault_translation, with the following behaviour: 0 = autodetect the signal to be delivered on KERN_PROTECTION_FAILURE from vm_fault based on the ELF OSABI note: no note or __FreeBSD_version < 700004 - SIGBUS/BUS_PAGE_FAULT note, and __FreeBSD_version >= 700004 - SIGSEGV/SEGV_ACCERR 1 = always SIGBUS/BUS_PAGE_FAULT 2 = always SIGSEGV/SEGV_ACCERR This would do mostly automatic correction of ABI breakage, with the exception of the untaged binaries for 7-CURRENT/RELENG_7 before the note is fixed. For them, sysctl would allow to run the binary with manual settings. Discussed with: portmgr (kris) PR: kern/118304 MFC after: 3 days
* Implement fetching of the __FreeBSD_version from the ELF ABI-tag note.kib2007-12-046-5/+49
| | | | | | | The value is read into the p_osrel member of the struct proc. p_osrel is set to 0 for the binaries without the note. MFC after: 3 days
OpenPOWER on IntegriCloud