summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* o Add ar.lc to the pcb.marcel2002-05-072-139/+190
| | | | | | | | | o Create pcb_save as the backend for savectx and cpu_switch. o While here, use explicit bundling for pcb_save and optimize for compactness (~87% density). o Not part of the commit is a backend pcb_restore. restorectx() still jumps halfway into cpu_switch().
* Switch from just holding the interlock to holding the standard lock throughoutjeff2002-05-071-12/+17
| | | | | getnewvnode(). This is safer. In the future, we should investigate requiring only the interlock to get the vnode object.
* Include <sys/lockmgr.h> for definitions of deprecated locking interfaces --bde2002-05-061-0/+1
| | | | don't depend on namespace pollution in other headers.
* Make funsetown() take a 'struct sigio **' so that the locking canalfred2002-05-0613-43/+56
| | | | | | | | | | | | | | | | be done internally. Ensure that no one can fsetown() to a dying process/pgrp. We need to check the process for P_WEXIT to see if it's exiting. Process groups are already safe because there is no such thing as a pgrp zombie, therefore the proctree lock completely protects the pgrp from having sigio structures associated with it after it runs funsetownlst. Add sigio lock to witness list under proctree and allproc, but over proc and pgrp. Seigo Tanimura helped with this.
* MFNetBSD: ugen.c (1.57), ulpt.c (1.48), usb.c (1.67), usbdi.c (1.96),joe2002-05-067-28/+27
| | | | | | | | usbdi.h (1.60) (and local changes compatibility changes to ufm.c and urio.c) date: 2002/02/11 15:11:49; author: augustss; Give usbd_do_request_flags() an extra argument for the timeout.
* When checking to see if the init process calls exit1(), compare p to thejhb2002-05-061-1/+1
| | | | | | initproc proc pointer instead of checking to see if the pid is 1. Submitted by: bde
* Style fixes in local variable declarations.jhb2002-05-061-9/+10
| | | | Submitted by: bde
* Revised MLD-related definitionsume2002-05-063-69/+94
| | | | | | | | | | | | - Used mld_xxx and MLD_xxx instead of mld6_xxx and MLD6_xxx according to the official defintions in rfc2292bis (macro definitions for backward compatibility were provided) - Changed the first member of mld_hdr{} from mld_hdr to mld_icmp6_hdr to avoid name space conflict in C++ This change makes ports/net/pchar compilable again under -CURRENT. Obtained from: KAME
* - Style fixes in some comments.jhb2002-05-061-9/+10
| | | | | | | - Whitespace nit. - Sort some includes. Submitted by: bde (mostly)
* Add support for the D-Link DFE-690TXD Cardbus card which has a RealTek 8139jhb2002-05-062-1/+9
| | | | with its own PCI ID.
* Add suspend/resume code mostly merged from fxp/rl driver.iwasaki2002-05-064-0/+176
| | | | | | | This is temporary hack, better and generalized solution probably should be implemented at lower layer(MII or PCI?). Tested by: shoko.araki@soliton.co.jp MFC after: 1 week
* Add another Askey ISA modem ID.dwmalone2002-05-061-0/+1
| | | | | PR: 35813 Submitted by: Chris Knight <chris@aims.com.au>
* o Header files shouldn't depend on options: Provide prototypesalc2002-05-062-5/+0
| | | | | | | for uiomoveco(), uioread(), and vm_uiomove() regardless of whether ENABLE_VFS_IOOPT is defined or not. Submitted by: bde
* o Condition the compilation and use of vm_freeze_copyopts()alc2002-05-064-3/+16
| | | | on ENABLE_VFS_IOOPT.
* Hold the currently selected vnode's lock across the call to VOP_GETVOBJECT.jeff2002-05-061-2/+4
| | | | | | | Don't try to create a vm object before the file system has a chance to finish initializing it. This is incorrect for a number of reasons. Firstly, that VOP requires a lock which the file system may not have initialized yet. Also, open and others will create a vm object if it is necessary later.
* o Some improvements to the page coloring of vm objects, particularly,alc2002-05-061-9/+17
| | | | | | for shadow objects. Submitted by: bde
* Include <sys/queue.h> so that this file provides its own namespacebde2002-05-061-0/+1
| | | | | pollution which is required for its includes of <sys/_lock.h> and <sys/_mutex.h> to work.
* s/sysctl -w/sysctl/jedgar2002-05-061-1/+1
|
* o Move vm_freeze_copyopts() from vm_map.{c.h} to vm_object.{c,h}. It's plainlyalc2002-05-064-78/+78
| | | | an operation on a vm_object and belongs in the latter place.
* Restored db_elf.c from the Attic. This will be used for a quick fix forbde2002-05-061-0/+381
| | | | | the longstanding brokenness of symbols in ddb at boot time. It doesn't compile and is not attached to the build yet.
* Add the lchflags(2) syscall.mux2002-05-058-7/+63
| | | | Reviewed by: rwatson
* Add an entry for the lchflags(2) syscall. It's useful to preventmux2002-05-051-0/+1
| | | | | | a symlink deletion. Reviewed by: rwatson
* Move a KASSERT() in open() prior to unlocking the vnode. It's not safe tojeff2002-05-052-6/+8
| | | | call VOP_GETVOBJECT without a lock.
* o Condition the compilation of uiomoveco() and vm_uiomove()alc2002-05-054-4/+16
| | | | | | on ENABLE_VFS_IOOPT. o Add a comment to the effect that this code is experimental support for zero-copy I/O.
* Indentation and comments cleanup, no functional change.luigi2002-05-051-51/+58
| | | | MFC after: 3 days
* Expand the one-line function pbreassignbuf() the only place it is or couldphk2002-05-053-16/+1
| | | | be used.
* Move some UFS related stuff home where it belongs.phk2002-05-052-7/+7
|
* No longer attempt to power off the ACLINK during suspend - luigiorion2002-05-051-3/+0
| | | | reports this causes his ich machine to hang.
* Add a KERNELDUMPMAGIC_CLEARED macro to unbreak savecore. Sincemux2002-05-051-0/+1
| | | | | | | | it is a "magic" value, what it expands to is not really important. I set it to "Cleared Kernel Dump", but that can be changed later if someone thinks it's not good enough. Pointy hat to: fenner
* o Add struct mca_guidmarcel2002-05-051-6/+28
| | | | | o Add currently known GUIDs o Slight restyling
* o Include md_var.hmarcel2002-05-051-10/+5
| | | | | | o Remove definition of struct ia64_fdesc o Remove prototype of os_boot_rendez o Use the FDESC_FUNC and FDESC_GP abstractions
* Remove definition of struct ia64_fdesc. It's been moved to md_var.hmarcel2002-05-051-8/+0
|
* o Move definition of struct ia64_fdesc here to remove duplication.marcel2002-05-051-1/+11
| | | | o Add prototype of os_boot_rendez.
* o Remove GIANT_REQUIRED from vm_map_lookup() and vm_map_lookup_done().alc2002-05-051-2/+2
| | | | | o Acquire and release Giant around vm_map_lookup()'s call to vm_object_shadow().
* Return the correct error code (ENOSYS, not EINVAL) from nosys(). Gettingbde2002-05-051-1/+1
| | | | | | | | | killed by SIGSYS for unimlemented syscalls is bad enough. Obtained from: Lite2 branch The Lite2 branch has some other interesting unmerged (?) bits in this file. They are well hidden among cosmetic regressions.
* Fixed breakage of binary compatibility of the kern.clockrate sysctl inbde2002-05-052-0/+2
| | | | | | sys/time.h rev.1.53, etc. Zero out the entire struct clkinfo and not just the new spare part of it so that there is no possibility of leaking kernel stack context to userland.
* Fixed checking for VM86 mode in doreti which I broke in rev.1.30. Onlybde2002-05-051-6/+12
| | | | | | | | | the case of VM86 calls from the kernel was broken, so this bug was not a security hole. PR: 36710 Submitted by: David Xu <davidx@viasoft.com.cn> (version for RELENG_4) MFC after: 3 days
* Use pages instead of uz_maxpages, which has not been initialized yet, whenjeff2002-05-041-2/+2
| | | | | | | creating the vm_object. This was broken after the code was rearranged to grab giant itself. Spotted by: alc
* o Make _vm_object_allocate() and vm_object_allocate() callablealc2002-05-042-22/+21
| | | | | | without holding Giant. o Begin documenting the trivial cases of the locking protocol on vm_object.
* Use -ffreestanding for kernel bits unconditionally.obrien2002-05-041-2/+0
|
* Fix a typo.mux2002-05-042-2/+2
| | | | Submitted by: dwmalone
* Shake unused stuff out of the flags in struct buf->b_flags.phk2002-05-041-9/+11
|
* Remove a six year old undocumented #ifdef : NO_B_MALLOC.phk2002-05-041-12/+0
|
* The struct buf->b_act was not used anywere.phk2002-05-041-1/+0
|
* Restore the ability interrupt dumps on i386, based onfenner2002-05-043-0/+21
| | | | | the old kern_shutdown.c . Other archs might be able to use similar code but I don't have anything to test on.
* Remove obsolete code (that was already #if 0'd out).dillon2002-05-041-18/+0
| | | | Requested by: Hiten Pandya <hitmaster2k@yahoo.com>
* When a program launched on the local console exits, the shell willmux2002-05-041-1/+2
| | | | | | | | call read() to get the next command, and scread() disables the screensaver. We don't want this behaviour in the sc_saver_keybonly case. Submitted by: Olivier Houchard <doginou@ci0.org>
* Use region 7 addresses for the slabs in the PV and PT zones so that wedfr2002-05-041-1/+1
| | | | | don't confuse the zone allocater by translating region 5 addresses to region 7 addresses (which is unavoidable for PTEs).
* Do not call nge_tick() if we get an PHY interrupt, nge_tick() callsphk2002-05-041-3/+11
| | | | | | | | | mii_tick() which should only be called once per second. Our current MII/PHY state-engine is not able to deal with PHY interrupts as far as I can tell, and most net drivers don't seem to use the link/status change call-back mechanism. It seems that MII/PHY was orphaned before it grew up.
* Increase gigE negotiation timeout to 17 seconds.phk2002-05-041-5/+5
| | | | | 10 seconds is not enough to negotiate a gigE link with a cisco switch which holds carrier off for several seconds between tries.
OpenPOWER on IntegriCloud