summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* - Lock the vm_object when iterating over its list of resident pages.alc2003-04-251-0/+8
|
* Convert the midway driver to use busdma. Except for this conversion theharti2003-04-257-3671/+3495
| | | | | | | | | | | | | | | | | | | | following changes have been done: - stylify. The original code was too hard to read. - get rid of a number of compilation options (Adaptec-only, Eni-only, no-DMA). - more debugging features. - locking. This is not correct yet in the absence of interface layer locking, but is correct enough to not to cause lock order reversals. - remove RAW mode. There are no users of this in the tree and I doubt that there are any. - remove NetBSD compatibility code. There was no way to keep NetBSD non-busdma and FreeBSD busdma code together. - if_en now buildable as a module. This has been actively tested on sparc64 and i386 with ENI server and client cards and an Adaptec card (thanks to kjc). Reviewed by: mdodd, arr
* Regen.jhb2003-04-259-102/+9
|
* Oops, the thr_* and jail_attach() syscall entries should be NOPROTO ratherjhb2003-04-253-21/+21
| | | | than STD.
* Remove harmless invalid cast.jake2003-04-252-2/+2
| | | | Sponsored by: DARPA, Network Associates Laboratories
* Make fxp(4) INTR_MPSAFE (but do not enable MPSAFE just yet):njl2003-04-252-51/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add fxp_start_body() and change fxp_start() to just acquire locks and then call fxp_start_body(). Places that would call fxp_start() with locks held (mutex recursion) now call fxp_start_body() directly. Remove MTX_RECURSE flag from sc_mtx. [gallatin] - Change fxp_attach() to work without the softc lock, saving interrupt hooking until the head of fxp_attach(). - Call ether_ifattach() before overriding ifp parameters. This reverts part of 1.155. - Remove multiple error paths in fxp_attach(). - Teardown interrupt in fxp_detach() before unlocking the softc. - Make sure mutex is not held in fxp_release() - Delete the miibus instance and/or self in fxp_release(), not in fxp_detach(). This can happen if attach fails partway through. - Move ifmedia_removeall to fxp_release() since attach may fail after media have been allocated. - Add locking to fxp_suspend, fxp_resume, fxp_start, fxp_intr, fxp_poll, fxp_tick, fxp_ioctl, fxp_watchdog. - Pass in ifp to fxp_intr_body since its callers sometimes already use it. - Add compatibility define for INTR_MPSAFE for 4.x. [gallatin] - You don't need to bzero softc. Ideas from: gallatin, mux Tested by: >400M packets of dd/ssh, NFS, ping on i386 UP
* - Relax the Giant required in vm_page_remove().alc2003-04-251-3/+2
| | | | | | | | | | - Remove the Giant required from vm_page_free_toq(). (Any locking errors will be caught by vm_page_remove().) This remedies a panic that occurred when kmem_malloc(NOWAIT) performed without Giant failed to allocate the necessary pages. Reported by: phk
* Import latest changes from the vendor. This also is reported to fix thescottl2003-04-254-38/+116
| | | | | | | driver at long last! Many thanks to vaidas.damosevicius@if.lt for keeping this issue alive and pursuing Intel for a fix, Intel/ICP for working on the driver, and Sergey Osokin for bringing the original patches up to 5-CURRENT.
* Add an argument to get_mcontext() which specified whether thedeischen2003-04-2513-52/+52
| | | | | | | | | | | | | | | | | | | | syscall return values should be cleared. The system calls getcontext() and swapcontext() want to return 0 on success but these contexts can be switched to at a later time so the return values need to be cleared in the saved register sets. Other callers of get_mcontext() would normally want the context without clearing the return values. Remove the i386-specific context saving from the KSE code. get_mcontext() is not i386-specific any more. Fix a bad pointer in the alpha get_mcontext() code. The context was being bcopy()'d from &td->tf_frame, but tf_frame is itself a pointer, so the thread was being copied instead. Spotted by jake. Glanced at by: jake Reviewed by: bde (months ago)
* Update the DRM to the latest from DRI CVS. Includes some bugfixes and removalanholt2003-04-2534-2557/+437
| | | | | | of the infrastructure for the gamma driver which was removed a while back. The DRM_LINUX option is removed because the handler is now provided by the linux compat code itself.
* Include altkstack pages in the RSS regardless of whether the processtjr2003-04-251-8/+6
| | | | is swapped out. Pointed out by jhb.
* Add an ioctl handler for the DRM. This removes the need for the DRM_LINUXanholt2003-04-242-0/+17
| | | | option, which has been a source of frustration for many users.
* Regen.jhb2003-04-249-12/+174
|
* Fix the thr_create() entry by adding a trailing \. Also, sync up thejhb2003-04-243-12/+12
| | | | MP safe flag for thr_* with the main table.
* VOP_FSYNC() expects to be called with the vnode locked, so lock fvp intruckman2003-04-241-1/+9
| | | | | | nfs_rename() before calling VOP_FSYNC() and unlock fvp immediately after. Reviewed by: bde
* Fix a bug with df on large (>1TB) nfsv3 file servers on 32 bit clientpeter2003-04-241-11/+23
| | | | | | | machines where the 'long' number of blocks in struct statfs wont fit. Instead of chosing an artificial 512 byte block size, simply scale it up until we avoid an overflow. NFSv3 reports the sizes in bytes, and the blocksize is a figment of nfsclient's imagination.
* Fail to mount a device if the bytes per sector in the BPB is less thanjhb2003-04-241-0/+6
| | | | DEV_BSIZE or if the number of FAT sectors is zero.
* Make P_PROTECTED not conflict with P_STOPPED_SIG. Replacewes2003-04-241-2/+1
| | | | | | P_UNUSED100000 which is *truly* unused, until now. Submitted by: Robert Drehmel <robert@zoot.drehmel.com>
* Fix printf warnings for i386 with PAE.simokawa2003-04-242-14/+16
| | | | Submitted by: harti
* Fix a typo in UINT_MAX definition.kan2003-04-241-1/+1
|
* It seems that 1 was not a magic value as I thought, but a coincidence.des2003-04-241-2/+2
| | | | | | | | Instead of applying the adjustment to processes with a start time of 1, apply it to all processes with a start time of less than 3600. None of this would be necessary if the start times were recorded in ticks instead of seconds and microseconds.
* Do a better job of calculating the RSS for swapped-out processes:tjr2003-04-241-3/+9
| | | | | | | | don't include the kernel stacks of swapped-out threads in the page count, but do include the alternate kernel stack. jhb provided some helpful comments on this. PR: 49102
* Fix printf warning for RELENG_4.simokawa2003-04-241-0/+4
|
* Free mount credentials (mnt_cred) when freeing the mount structtjr2003-04-241-0/+5
| | | | | in failure cases to avoid leaking struct ucreds, and ultimately leaking struct uidinfo references.
* Add some IEEE 1394 OHCI chips.simokawa2003-04-242-1/+26
| | | | | Partially submitted by: Tetsuya Ryuchi <ryuchi@ryuchi.org> PR: misc/51336
* - Move swap_pager_isswapped()'s prototype to a more logical place.alc2003-04-242-1/+1
|
* - Acquire the vm_object's lock when performing vm_object_page_clean().alc2003-04-2418-14/+45
| | | | | | - Add a parameter to vm_pageout_flush() that tells vm_pageout_flush() whether its caller has locked the vm_object. (This is a temporary measure to bootstrap vm_object locking.)
* When filling out a kinfo_proc structure, if we come across a processdes2003-04-241-0/+2
| | | | | | whose p_stats->p_start has the magic value 1, replace it with boottime. Some users were apparently confused by the fact that ps(1) reported a start time in early 1970 for system processes.
* Don't print anything for fault at cpu_switch_load_gs, just like otherdavidxu2003-04-242-12/+6
| | | | | code to recover fault in doreti because of invalid segment registers, silently push error to userland.
* Tweak to previous commit: increment ifp->if_iqdrops if the m_copy() fails.archie2003-04-231-1/+2
| | | | Suggested by: Neelkanth Natu <neelnatu@yahoo.com>
* 1. Allow drivers to query CIS strings from OLDCARD.imp2003-04-234-0/+69
| | | | | | | | | 2. Include backwards compatibility good for the moment (eventually will be turned off in current, but allow for a short transition period). PR: 51333 Submited by: Scott Mitchell (1) MFC after: 2 weeks
* Add accessor for cis4 string. Neither OLDCARD nor NEWCARD supportimp2003-04-231-0/+1
| | | | | | | this yet, but that will change soon. Pr: 51333 Submited by: Scott Mitchell
* Add a new sys/limits.h file which in turn depends on machine/_limits.hkan2003-04-238-371/+389
| | | | | | | | | to get actual constant values. This is in preparation for machine/limits.h retirement. Discussed on: standards@ Submitted by: Craig Rodrigues <rodrigc@attbi.com> (*) Modified by: kan
* Introduce a g_waitfor_event() function which posts an event and waits forphk2003-04-236-35/+69
| | | | it to be run (or cancelled) and use this instead of home-rolled versions.
* More of the event stuff can now be private to geom_event.cphk2003-04-233-14/+11
|
* Rename g_call_me() to g_post_event(), and give it a flagphk2003-04-2312-34/+35
| | | | argument to determine if we can M_WAITOK in malloc.
* Remove the now unused hardcoded g_post_event() event support.phk2003-04-232-63/+4
|
* Use bus_space*() instead of in*() and out*().jhay2003-04-234-317/+280
|
* Turn EV_NEW_PROVIDER into a g_call_me() event.phk2003-04-233-25/+31
|
* Convert EV_SPOILED event to use g_call_me().phk2003-04-233-21/+24
|
* Remove Giant from osigblock(), osigsetmask(), and kern_sigaltstack().jhb2003-04-231-15/+7
|
* Turn the hardwired NEW_CLASS event into a g_call_me() event.phk2003-04-233-22/+34
|
* Move the shutdown eventhandler stuff to a more logical place.phk2003-04-233-11/+12
|
* Update many of the locking notes and comments for structjhb2003-04-231-49/+50
| | | | thread/kse/ksegroup/proc.
* The signotify() sanity check in userret() doesn't need Giant anymore.jhb2003-04-231-2/+0
|
* Add lock assertions for various proc/thread/kse/ksegroup fields to thejhb2003-04-232-0/+16
| | | | scheduler functions.
* - Reorganize osigstack() to do the copyin first, grab the proc lock once,jhb2003-04-231-19/+13
| | | | | | | do all the various sigstack dances, unlock the proc lock, and finally do the copyout. This more closely resembles the behavior of kern_sigaltstack() and closes a small race. - Remove Giant from osigstack as it is no longer needed.
* Remove Giant from [gs]etpriority().jhb2003-04-231-6/+0
|
* - Protect p_numthreads with the sched_lock.jhb2003-04-234-27/+33
| | | | | - Protect p_singlethread with both the sched_lock and the proc lock. - Protect p_suspcount with the proc lock.
* Fix a case where the return value from m_copy() was not being checkedarchie2003-04-231-6/+6
| | | | | | | for NULL before proceeding, causing a crash if mbufs were exhausted. MFC after: 3 days Reported by: Mark Gooderum <mark@verniernetworks.com>
OpenPOWER on IntegriCloud