summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | First pass at 64-bit elf supportimp2008-12-311-0/+117
| | |
* | | Update or eliminate some stale comments.alc2008-12-312-12/+5
| | |
* | | Document the relationship between enum VM_GUEST and the vm_guest_sysctl_namesivoras2008-12-301-1/+3
| | | | | | | | | | | | | | | | | | array. Approved by: gnn (original version)
* | | Avoid an unnecessary memory dereference in vm_map_entry_splay().alc2008-12-301-3/+4
| | |
* | | Add a VOP_VPTOCNP implementation for pseudofs which covers file systemsmarcus2008-12-301-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | such as procfs and linprocfs. This implementation's locking was enhanced by kib. Reviewed by: kib des Approved by: des kib Tested by: pho
* | | Style change to vm_map_lookup(): Eliminate a macro of dubious value.alc2008-12-301-11/+8
| | |
* | | Added missing second part of cleaning j->ip[46] as requested by bzpho2008-12-301-0/+2
| | | | | | | | | | | | | | | Approved by: kib (mentor) Pointy hat: pho
* | | Add missing comma.brueffer2008-12-301-1/+1
| | |
* | | Mdoc and wording improvements, also point to cpucontrol(8).brueffer2008-12-301-17/+23
| | |
* | | Disable USB bluetooth (needs netgraph built in) and USB audio (doesn'trpaulo2008-12-301-3/+3
| | | | | | | | | | | | compile).
* | | Mdoc and wording improvements.brueffer2008-12-301-9/+13
| | |
* | | Disable USB bluetooth (needs netgraph built in) and USB audio (doesn'trpaulo2008-12-301-3/+3
| | | | | | | | | | | | compile).
* | | Move the implementation of the vm map's fast path on address lookup fromalc2008-12-301-34/+23
| | | | | | | | | | | | | | | | | | | | | vm_map_lookup{,_locked}() to vm_map_lookup_entry(). Having the fast path in vm_map_lookup{,_locked}() limits its benefits to page faults. Moving it to vm_map_lookup_entry() extends its benefits to other operations on the vm map.
* | | Add a kernel config file so that users have less difficulty testingrpaulo2008-12-302-0/+220
| | | | | | | | | | | | | | | | | | USBng. If it makes sense, it could be done for arm/mips too.
* | | Oops, missed removing an 's' in previous rev.kensmith2008-12-301-1/+1
| | | | | | | | | | | | Submitted by: Jens Schweikhardt (schweikh <at> schweikhardt <dot> net)
* | | Make sure that unused j->ip[46] are clearedpho2008-12-301-2/+4
| | | | | | | | | | | | | | | Reviewed by: bz Approved by: kib (mentor)
* | | Clean up this message a little bit.kensmith2008-12-301-4/+3
| | |
* | | Clean up this message a little bit.kensmith2008-12-301-4/+3
| | |
* | | Rename mbcnt to mbcnt_delta in uipc_send() -- unlike other localrwatson2008-12-301-3/+3
| | | | | | | | | | | | | | | | | | | | | variables named mbcnt in uipc_usrreq.c, this instance is a delta rather than a cache of sb_mbcnt. MFC after: 3 weeks
* | | Remove the /usr/X11R6 paths. It has been long enough since the X stuffkensmith2008-12-301-2/+0
| | | | | | | | | | | | | | | | | | | | | moved to /usr/local. Checked with: des (last person to have fiddled with this) MFC after: 1 month
* | | Clear the pointers to the file in the struct filedesc before file is closedkib2008-12-301-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | in fdfree. Otherwise, sysctl_kern_proc_filedesc may dereference stale struct file * values. Reported and tested by: pho MFC after: 1 month
* | | In r185557, the check for existing negative entry for the given namekib2008-12-301-22/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | did not compared nc_dvp with supplied parent directory vnode pointer. Add the check and note that now branches for vp != NULL and vp == NULL are the same, thus can be merged. Reported and reviewed by: kan Tested by: pho MFC after: 2 weeks
* | | A number of small changes to make the 'save choice to disk' safer,luigi2008-12-302-28/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and re-enable it as default. In particular: + re-enable the 'update' flag in the Makefile (of course!); + commit Warner's patch "orb $NOUPDATE,_FLAGS(%bp)" to avoid writing to disk in case of a timeout/default choice; + fix an off-by-one count in the partition scan code that would print the wrong name for unknown partitions; + unconditionally change the boot prompt to 'Boot:' instead of 'Default:' to make room for the extra code/checks/messages. Some of the changes listed below are also made to save space; + rearrange and fix comments for known partition types. Right now we explicitly recognise *BSD, Linux, FAT16 (type 6, used on many USB keys), NTFS (type 7), FAT32 (type 11). Depending on other options we also recognise Extended (type 5), FAT12 (type 1) and FAT16 < 32MB (type 4). + Add an entry "F6 PXE" when the code is built with -DPXE (which is a default now). Technically, F6 boots through INT18, so the prompt 'PXE' is a bit misleading. Unfortunately the name INT18 is too long and does not fit in - we could use ROM perhaps. The reason I picked 'PXE' is that on many (I believe) new systems INT18 calls PXE. Apart from the choice of the name for PXE/ROM/INT18, this should close pending issues on the 1-sector boot0 code and we should be able to move the code to RELENG_7 when it reopens. No boot0cfg changes are necessary. MFC after: 3 weeks
* | | Bump the odometer of the years, this time a bit early for 7.1R.imp2008-12-301-2/+2
| | |
* | | Bump the odometer of the years. A little early this year for 7.1R.imp2008-12-301-1/+1
| | |
* | | Add gssd.h to the list of SRCS so one can build without 'make depend' first.obrien2008-12-301-1/+1
| | |
* | | Sound less scary about errorousous disk geometry due to wanting to limitobrien2008-12-303-63/+125
| | | | | | | | | | | | | | | | | | to 65535 cylinders. Submitted by: Carlos A. M. dos Santos <unixmania@gmail.com>
* | | Fix compilation. Also move ogetkerninfo() to kern_xxx.c.ed2008-12-292-212/+208
| | | | | | | | | | | | | | | | | | | | | It seems I forgot to remove `int error' from a single piece of code. I'm also moving ogetkerninfo() to kern_xxx.c, because it belongs to the class of compat system information system calls, not the generic sysctl code.
* | | Include param.h instead of types.h before mount.h so that the nestedrwatson2008-12-291-1/+1
| | | | | | | | | | | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 weeks
* | | Include param.h instead of types.h before mount.h so that the nestedrwatson2008-12-291-0/+1
| | | | | | | | | | | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 days
* | | Include param.h instead of types.h before user.h so that the nestedrwatson2008-12-299-9/+9
| | | | | | | | | | | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 weeks
* | | Add missing -o to usage output.simon2008-12-291-1/+1
| | | | | | | | | | | | MFC after: 3 days
* | | When the insmntque() in the pfs_vncache_alloc() fails, vop_reclaim callskib2008-12-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pfs_vncache_free() that removes pvd from the list, while it is not yet put on the list. Prevent the invalid removal from the list by clearing pvd_next and pvd_prev for the newly allocated pvd, and only move pfs_vncache list head when the pvd was at the head. Suggested and approved by: des MFC after: 2 weeks
* | | Push down Giant inside sysctl. Also add some more assertions to the code.ed2008-12-295-76/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the existing code we didn't really enforce that callers hold Giant before calling userland_sysctl(), even though there is no guarantee it is safe. Fix this by just placing Giant locks around the call to the oid handler. This also means we only pick up Giant for a very short period of time. Maybe we should add MPSAFE flags to sysctl or phase it out all together. I've also added SYSCTL_LOCK_ASSERT(). We have to make sure sysctl_root() and name2oid() are called with the sysctl lock held. Reviewed by: Jille Timmermans <jille quis cx>
* | | vm_map_lock_read() does not increment map->timestamp, so we shouldkib2008-12-293-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compare map->timestamp with saved timestamp after map read lock is reacquired, not with saved timestamp + 1. The only consequence of the +1 was unconditional lookup of the next map entry, though. Tested by: pho Approved by: des MFC after: 2 weeks
* | | Use curproc->p_sysent->sv_flags bit SV_ILP32 for detection of the 32 bitkib2008-12-291-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | caller, instead of direct comparision with ia32_freebsd_sysvec. Tested by: pho Approved by: des MFC after: 2 weeks
* | | Drop the pseudofs vnode lock around call to pfs_read handler. The handlerkib2008-12-291-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | may need to lock arbitrary vnodes, causing either lock order reversal or recursive vnode lock acquisition. Tested by: pho Approved by: des MFC after: 2 weeks
* | | After the pfs_vncache_mutex is dropped, another thread may attempt tokib2008-12-291-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | do pfs_vncache_alloc() for the same pfs_node and pid. In this case, we could end up with two vnodes for the pair. Recheck the cache under the locked pfs_vncache_mutex after all sleeping operations are done [1]. This case mostly cannot happen now because pseudofs uses exclusive vnode locking for lookup. But it does drop the vnode lock for dotdot lookups, and Marcus' pseudofs_vptocnp implementation is vulnerable too. Do not call free() on the struct pfs_vdata after insmntque() failure, because vp->v_data points to the structure, and pseudofs_reclaim() frees it by the call to pfs_vncache_free(). Tested by: pho [1] Approved by: des MFC after: 2 weeks
* | | 1. Add the ability to tweak the token output before targets in job mode.obrien2008-12-296-4/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | E.g., .MAKE.JOB.PREFIX=${.newline}---[${.MAKE.PID}] would produce ---[1234] target --- 2. Added ${.newline} as a simple means of being able to include '\n' in the assignment of .MAKE.JOB.PREFIX Obtained from: NetBSD
* | | Consistently use Var_SetGlobal().obrien2008-12-293-4/+4
| | |
* | | merge 186535, 186537, and 186538 from releng_7_xenkmacy2008-12-2932-1417/+1328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Log: - merge in latest xenbus from dfr's xenhvm - fix race condition in xs_read_reply by converting tsleep to mtx_sleep Log: unmask evtchn in bind_{virq, ipi}_to_irq Log: - remove code for handling case of not being able to sleep - eliminate tsleep - make sleeps atomic
* | | For consistency use LLE_IS_VALID() in this 4th place that is actuallybz2008-12-281-1/+1
| | | | | | | | | | | | | | | interested in the (void *)-1 return value hack. This way we can easily identify those special parts of the code.
* | | drop rnh lock before destroying itkmacy2008-12-281-0/+1
| | |
* | | Remove unused variable.ganbold2008-12-281-3/+0
| | | | | | | | | | | | | | | | | | | | | Found with: Coverity Prevent(tm) CID: 542 Approved by: weongyo
* | | Include std.ixp425 for "cpu" and comment out duplicate memory mapbz2008-12-281-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. Using the already included std.avila is not considered to be entirely right (and the options slightly differ) but the best match we currently have. Upcoming work should fit better. Reorder another variable to match the layout of other configs. Reviewed by: sam, warner (earlier version with options removed)
* | | Like in the rest of the file and the network stack use inp asbz2008-12-271-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variable name for the inpcb. For consistency with the other *_hdrsiz functions use 'size' instead of 'siz' as variable name. No functional change. MFC after: 4 weeks
* | | Non-functional (style) changes:bz2008-12-271-206/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Always use round brackets with return (). - Add empty line to beginning of functions without local variables. - Comments start with a capital letter and end in a '.'. While there adapt a few comments. Reviewed by: rwatson MFC after: 4 weeks
* | | Convert function definitions to constantly use ANSI-stylebz2008-12-271-98/+34
| | | | | | | | | | | | | | | | | | | | | parameter declarations. Reviewed by: rwatson MFC after: 4 weeks
* | | - Fix incorrect array declaration that was causing the stack overflowstas2008-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | on some (most?) Asus laptops. Discussed with: rpaulo Approved by: kib (mentor) MFC after: 2 weeks
* | | Rewrite ipsec6_setspidx_inpcb() to match the logic in thebz2008-12-271-21/+11
| | | | | | | | | | | | | | | | | | (now) equivalent IPv4 counterpart. MFC after: 4 weeks
OpenPOWER on IntegriCloud