summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a problem reported by Pierre Beyssac. Sometinmes when ndis_get_info()wpaul2005-01-144-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls MiniportQueryInformation(), it will return NDIS_STATUS_PENDING. When this happens, ndis_get_info() will sleep waiting for a completion event. If two threads call ndis_get_info() and both end up having to sleep, they will both end up waiting on the same wait channel, which can cause a panic in sleepq_add() if INVARIANTS are turned on. Fix this by having ndis_get_info() use a common mutex rather than using the process mutex with PROC_LOCK(). Also do the same for ndis_set_info(). Note that Pierre's original patch also made ndis_thsuspend() use the new mutex, but ndis_thsuspend() shouldn't need this since it will make each thread that calls it sleep on a unique wait channel. Also, it occured to me that we probably don't want to enter MiniportQueryInformation() or MiniportSetInformation() from more than one thread at any given time, so now we acquire a Windows spinlock before calling either of them. The Microsoft documentation says that MiniportQueryInformation() and MiniportSetInformation() are called at DISPATCH_LEVEL, and previously we would call KeRaiseIrql() to set the IRQL to DISPATCH_LEVEL before entering either routine, but this only guarantees mutual exclusion on uniprocessor machines. To make it SMP safe, we need to use a real spinlock. For now, I'm abusing the spinlock embedded in the NDIS_MINIPORT_BLOCK structure for this purpose. (This may need to be applied to some of the other routines in kern_ndis.c at a later date.) Export ntoskrnl_init_lock() (KeInitializeSpinlock()) from subr_ntoskrnl.c since we need to use in in kern_ndis.c, and since it's technically part of the Windows kernel DDK API along with the other spinlock routines. Use it in subr_ndis.c too rather than frobbing the spinlock directly.
* Set math_errhandling to MATH_ERREXCEPT. Now that we have fenv.h, wedas2005-01-141-1/+1
| | | | | | basically support this, subject to gcc's lack of FENV_ACCESS support. In any case, the previous setting of math_errhandling to 0 is not allowed by POSIX.
* Remove some #if 0'd code.das2005-01-141-7/+0
|
* Markup fixes.ru2005-01-141-6/+6
|
* CAM will sometimes remove a disk again even before it finished beingphk2005-01-141-2/+4
| | | | | initialized. We already cancel the pending events but we need to not dereference the geom pointer which never got set different from NULL.
* Bah, another whitespace fix.jhb2005-01-141-1/+1
|
* Remove an extraneous space.jhb2005-01-141-1/+1
|
* Markup fixes.ru2005-01-141-50/+95
|
* Remove redundant code to drop per-thread debug register state fromjhb2005-01-142-14/+1
| | | | | cpu_exit() as this is already performed in cpu_thread_exit() and the debug state is per-thread rather than per-process.
* - Remove some OBE comments regarding cpu_exit(). cpu_exit() is no longerjhb2005-01-144-21/+6
| | | | | | | | the last action of kern_exit(). Instead, it is a MD callout to cleanup per-process state during exit. - Add notes of concern to Alpha and ia64 about the possible need to drop fp state in cpu_thread_exit() rather than in cpu_exit() since it is per-thread state rather than per-process.
* Drop the 'active-' prefix from the polarity printf to be consistent withjhb2005-01-141-1/+1
| | | | the rest of the interrupt code.
* Give up on trying to please everyone and restore 1.64 with regards totrhodes2005-01-141-1/+0
| | | | dealing with sudo users.
* Markup fixes.ru2005-01-141-11/+22
|
* NULL-terminate the . and .. directory entries. Apparently some tools ignorescottl2005-01-141-0/+2
| | | | | | d_namlen and assume that d_name is null-terminated. Submitted by: Andriy Gapon
* Replace the min() macro with a test that doesn't truncate the 64-bit valuesscottl2005-01-141-1/+4
| | | | that are used. Thanks to Bruce Evans for pointing this out.
* Improve readability for the recently introduced changes by havingdelphij2005-01-141-4/+4
| | | | | | their sizeof(*p) instead of explicitlly specifying their types. Suggested by: nectar
* Fix the pbio include file installation process and thedds2005-01-144-8/+17
| | | | | | | corresponding documentation. Noticed by: ru Reviewed by: ru
* make umtx timeout relative so userland can select different clock type,davidxu2005-01-142-56/+55
| | | | | e.g, CLOCK_REALTIME or CLOCK_MONOTONIC. merge umtx_wait and umtx_timedwait into single function.
* Use a better name than underscore-tmpfile for better representationdelphij2005-01-141-5/+5
| | | | | | of the meaning. Suggested by: stefanf
* Fixed sparc64 LINT build.ru2005-01-141-0/+1
|
* 64-bit clean + WARNS=6:delphij2005-01-144-27/+31
| | | | | | | | | | | | | | | | | - Convert the (char *) cast+cast backs magic to memcpy(3). Without this, the resulting code is potentially risky with higher optimization levels. - Avoid same name when calling local variables, as well as global symbols. This reduces confusion for both human and compiler. - Add necessary casts, consts - Use new style function defination. - Minor style.Makefile(5) tweak - Bump WARNS?= from 0 to 6 ** for the aout code: changes are intentionally limited to ease maintaince.
* Raise & drop IFF_RUNNING upon receival of netgraph flow controlglebius2005-01-141-0/+12
| | | | messages.
* Consider IFF_UP as "administratively up" flag, and IFF_RUNNING asglebius2005-01-141-2/+2
| | | | "operationally up" flag. Hence this, revert 1.35 to use IFF_RUNNING.
* Markup and grammar fixes.ru2005-01-141-5/+7
|
* Markup nit.ru2005-01-141-1/+1
|
* Tiny markup fixes.ru2005-01-141-14/+14
|
* Markup fixes.ru2005-01-141-16/+16
|
* Markup fixes.ru2005-01-141-9/+13
|
* Typo fix.keramida2005-01-141-1/+1
|
* This commit was generated by cvs2svn to compensate for changes in r140229,ru2005-01-141-0/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up a vendor fix for a problem exposed by tr/tr.1,v 1.30.ru2005-01-141-0/+2
| |
* | Markup fixes.ru2005-01-141-10/+16
| |
* | Markup fixes.ru2005-01-141-29/+34
| |
* | Fix off-by-one error.stefanf2005-01-141-1/+1
| |
* | Tiny markup nits.ru2005-01-144-22/+23
| |
* | o Clean up interface between ip_fw_chk() and its callers:glebius2005-01-145-89/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ip_fw_chk() returns action as function return value. Field retval is removed from args structure. Action is not flag any more. It is one of integer constants. - Any action-specific cookies are returned either in new "cookie" field in args structure (dummynet, future netgraph glue), or in mbuf tag attached to packet (divert, tee, some future action). o Convert parsing of return value from ip_fw_chk() in ipfw_check_{in,out}() to a switch structure, so that the functions are more readable, and a future actions can be added with less modifications. Approved by: andre MFC after: 2 months
* | Eliminate unused and constant arguments to smbfs_vinvalbuf()phk2005-01-144-26/+13
| |
* | Eliminate constant and unused arguments to nwfs_vinvalbuf()phk2005-01-144-25/+14
| |
* | Eliminate unused and unnecessary "cred" argument from vinvalbuf()phk2005-01-1413-27/+25
| |
* | Mark all inline asms that read the floating-point control or statusdas2005-01-147-11/+11
| | | | | | | | | | | | | | registers as volatile. Instructions that *wrote* to FP state were already marked volatile, but apparently gcc has license to move non-volatile asms past volatile asms. This broke amd64's feupdateenv at -O2 due to a WAR conflict between fnstsw and fldenv there.
* | pcic is no more on i386 port, so remove it from the hints.imp2005-01-141-9/+0
| |
* | This commit was generated by cvs2svn to compensate for changes in r140216,njl2005-01-141-0/+7
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Clean up a small memory leak introduced with the previous commit tonjl2005-01-141-0/+7
| | | | | | | | | | | | | | | | | | | | | dsutils.c. We need to GC the implicitly-returned object. Submitted by: Robert.Moore at Intel MFC after: 1 day
* | | Match the LINUX32's style with existing styleobrien2005-01-1412-68/+68
| | | | | | | | | | | | | | | | | | Submitted by: Jung-uk Kim <jkim@niksun.com> Use positive, not negative logic.
* | | Fix Linux compat 'uname -m' on AMD64.obrien2005-01-141-1/+7
| | | | | | | | | | | | | | | Submitted by: Jung-uk Kim <jkim@niksun.com> (patch reworked by me)
* | | Fixed too many of "the", and enclose multi-word argument in double quotes.stefanf2005-01-131-4/+3
| | | | | | | | | | | | Obtained from: ru
* | | Remove duplicate code.phk2005-01-131-4/+0
| | |
* | | Use the standard FreeBSD licenseimp2005-01-135-37/+25
| | | | | | | | | | | | Approved by: imp, jon
* | | Use the standard FreeBSD license for these files.imp2005-01-134-28/+22
| | | | | | | | | | | | Approved by: imp, jon
* | | Whitespace in vop_vector{} initializations.phk2005-01-1314-54/+63
| | |
OpenPOWER on IntegriCloud