summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Convert vnode_pager_freepage() to vm_free_page().bp2001-05-031-2/+2
| | | | Forgotten by: alfred
* Wrap around MALLOC_DECLARE() invocation with #ifdef.bp2001-05-031-0/+2
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-022-2/+2
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* Get IP multicast working on VLAN devices:fenner2001-05-022-7/+6
| | | | | | | | | | | - Allocate zeroed memory in ether_resolvemulti() to prevent equal() from comparing garbage and determining that two otherwise-equal sockaddr_dls are different. - Fill in all required fields of the sockaddr_dl - Actually copy the multicast address into the sockaddr_dl when calling if_addmulti() - Don't claim that we don't have a way to resolve layer 3 addresses into layer 2 addresses; use the ethernet way.
* Merged from sys/isa/sio.c revision 1.330.kato2001-05-022-16/+18
|
* Merged from sys/isa/fd.c revision 1.195.kato2001-05-022-4/+8
|
* Merged from sys/i386/isa/npx.c revisions 1.96 and 1.97.kato2001-05-021-12/+25
|
* Merged from sys/i386/isa/clock.c revisions 1.172 and 1.173.kato2001-05-023-3/+45
|
* Merged the rest of changes in sys/i386/i386/machdep.c revision 1.447.kato2001-05-022-12/+10
|
* Fixed panics in npx exception handling. When using IRQ13 exceptionbde2001-05-023-21/+54
| | | | | | | | | | | | | | | | | | handling, SMPng always switches the npx context away from curproc before calling the handler, so the handler always paniced. When using exception 16 exception handling, SMPng sometimes switches the npx context away from curproc before calling the handler, so the handler sometimes paniced. Also, we didn't lock the context while using it, so we sometimes didn't detect the switch and then paniced in a less controlled way. Just lock the context while using it, and return without doing anything except clearing the busy latch if the context is not for curproc. This fixes the exception 16 case and makes the IRQ13 case harmless. In both cases, the instruction that caused the exception is restarted and the exception repeats. In the exception 16 case, we soon get an exception that can be handled without doing anything special. In the IRQ13 case, we get an easy to kill hung process.
* Only define DEBUG if it's undefined. This should eventually go, butbrian2001-05-021-0/+2
| | | | can stay for now in case of problems.
* Add a ``digi'' driver.brian2001-05-0249-7/+44345
| | | | | | | | | | | | | | | | | | This driver supports PCI Xr-based and ISA Xem Digiboard cards. dgm will go away soon if there are no problems reported. For now, configuring dgm into your kernel warns that you should be using digi. This driver is probably close to supporting Xi, Xe and Xeve cards, but I wouldn't expect them to work properly (hardware donations welcome). The digi_* pseudo-drivers are not drivers themselves but contain the BIOS and FEP/OS binaries for various digiboard cards and are auto-loaded and auto-unloaded by the digi driver at initialisation time. They *may* be configured into the kernel, but waste a lot of space if they are. They're intended to be left as modules. The digictl program is (mainly) used to re-initialise cards that have external port modules attached such as the PC/Xem.
* Fix up unit attention and selection timeout handling in various peripheralken2001-05-013-14/+8
| | | | | | | | | | | | drivers. - change daprevent() to set CAM_RETRY_SELTO and SF_RETRY_UA when it calls cam_periph_runccb(). - change the pt(4) driver to ignore unit attentions - change the targ(4) driver to retry selection timeouts - clean up a few formatting glitches in the targ(4) driver Reviewed by: gibbs
* pseudo-device -> device in kernel config.schweikh2001-05-012-2/+2
| | | | Reviewed by: joerg, dd
* Use ufs_bmaparray() rather than VOP_BMAP() on our own vnodes.phk2001-05-011-2/+2
|
* Remove blatantly pointless call to VOP_BMAP().phk2001-05-012-9/+3
| | | | Use ufs_bmaparray() rather than VOP_BMAP() on our own vnodes.
* Remove blatantly pointless call to VOP_BMAP().phk2001-05-012-8/+2
|
* Implement vop_std{get|put}pages() and add them to the default vop[].phk2001-05-0125-381/+47
| | | | | Un-copy&paste all the VOP_{GET|PUT}PAGES() functions which do nothing but the default.
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-01226-768/+1186
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Turn on preemption by default on the alpha arch. This also removes thejhb2001-05-012-6/+0
| | | | | | PREEMPTION kernel option. Not objected to by: -alpha
* Add sense key table entries for DATA PROTECT and BLANK CHECK. This willken2001-04-301-0/+2
| | | | | | | prevent scsi_sense_desc() from deferencing a NULL pointer when a drive happens to return one of these sense keys. Reported by: Michael Samuel <michael@miknet.net>
* Allow the size of the SSC memory disk used with the SKI emulator to bejhb2001-04-301-0/+1
| | | | overridden in the kernel config file via the SSC_NSECT option.
* Uncut&paste som bogus use of VOP_BMAP in cd9660::VOP_STRATEGY.phk2001-04-302-20/+8
| | | | XXX mark some stuff which looks like further cut&paste junk.
* Uncut&paste som bogus use of VOP_BMAP in hpfs::VOP_STRATEGY.phk2001-04-301-6/+6
| | | | | At the same time, eliminate uninitialized use of a vnode pointer. Interesting GCC didn't spot this.
* In camperiphscsisenseerror(), don't return an error when the error actionken2001-04-301-0/+3
| | | | | | is SS_NOP. Submitted by: joerg
* Regen.n_hibma2001-04-302-7/+14
|
* Add 4300C Idn_hibma2001-04-301-1/+2
| | | | Submitted by: Ernst de Haan <ernst@heinz.jollem.com>
* Fix an errant search and replace that broke SCSI start unit commands.ken2001-04-301-1/+1
| | | | This should fix automatic spinups as well as 'camcontrol start'.
* Backed out previous commit. It cause massive filesystem corruption,bde2001-04-302-0/+2
| | | | | | | | | | | | | | | | | | | not to mention a compile-time warning about the critical function becoming unused, by replacing spec_bmap() with vop_stdbmap(). ntfs seems to have the same bug. The factor for converting specfs block numbers to physical block numbers is 1, but vop_stdbmap() uses the bogus factor btodb(ap->a_vp->v_mount->mnt_stat.f_iosize), which is 16 for ffs with the default block size of 8K. This factor is bogus even for vop_stdbmap() -- the correct factor is related to the filesystem blocksize which is not necessarily the same to the optimal i/o size. vop_stdbmap() was apparently cloned from nfs where these sizes happen to be the same. There may also be a problem with a_vp->v_mount being null. spec_bmap() still checks for this, but I think the checks in specfs are dead code which used to support block devices.
* When panic()'ing because of recursion on a non-recursive mutex, printalfred2001-04-301-2/+2
| | | | | | out the location it was initially locked. Ok'd by: jake
* Make rtprio work again.jake2001-04-291-19/+14
| | | | | | | | | | - add a missing break which caused RTP_SET to always return EINVAL - break instead of returning if p_can fails so proc_lock is always dropped correctly - only copyin data that is actually needed - use break instead of goto - make rtp_to_pri return EINVAL instead of -1 if the values are out or range so we don't have to translate
* o As part of the move to not maintaining copies of the vnode owning uidrwatson2001-04-293-3/+3
| | | | | | | | | | | | | | | | and gid in the ACL, vaccess_acl_posix1e() was changed to accept explicit file_uid and file_gid as arguments. However, in making the change, I explicitly checked file_gid against cr->cr_groups[0], rather than using groupmember, resulting in ACL_GROUP_OBJ entries being compared to the caller's effective gid only, not the remainder of its groups. This was recently corrected for the version of the group call without privilege, but the second test (when privilege is added) was missed. This change replaces an additiona cr->cr_groups[0] check with groupmember(). Pointed out by: jedgar Reviewed by: jedgar Obtained from: TrustedBSD Project
* VOP_BALLOC was never really a VOP in the first place, so convert itphk2001-04-2914-61/+48
| | | | to UFS_BALLOC like the other "between UFS and FFS function interfaces".
* Add a vop_stdbmap(), and make it part of the default vop vector.phk2001-04-2924-414/+33
| | | | | | Make 7 filesystems which don't really know about VOP_BMAP rely on the default vector, rather than more or less complete local vop_nopbmap() implementations.
* Make a panic less misleading.phk2001-04-292-2/+2
|
* Call ufs_bmaparray() directly instead of indirectly via VOP_BMAP().phk2001-04-291-2/+3
|
* Remove two unused arguments from ufs_bmaparray().phk2001-04-294-62/+47
|
* Remove faint traces of blind copy&paste.phk2001-04-291-1/+0
|
* Remove faint traces of non-existant ffs_bmap().phk2001-04-291-2/+0
|
* Remove incorrect comment.alfred2001-04-292-2/+0
| | | | | Submitted by: quinot@inf.enst.fr <quinot@inf.enst.fr> PR: kern/26893
* Revert consequences of changes to mount.h, part 2.grog2001-04-2995-189/+0
| | | | Requested by: bde
* Bring in ficl 2.05.dcs2001-04-2926-1804/+3992
| | | | | | | This version has a step debugger, which now completely replaces the old trace feature. Also, we moved all of the FreeBSD-specific MI code to loader.c, reducing the diff between this and the official FICL distribution.
* don't unlock the channel in chn_read, msleep will do it for us.cg2001-04-291-2/+0
| | | | PR: kern/26430
* Add back in the bits to remove any existing "schg" flags as we haveobrien2001-04-295-0/+10
| | | | kernel's out in wild that still have these flags set.
* Instead of asserting that a mutex is not still locked after unlocking it,alfred2001-04-281-1/+1
| | | | | | assert that the mutex is owned and not recursed prior to unlocking it. This should give a clearer diagnostic when a programming error is caught.
* Add in a missing call to forward_hardclock() in the SMP case.jhb2001-04-285-0/+15
| | | | Submitted by: bde
* be more specific in identifying the chip typecg2001-04-271-14/+73
|
* Address a number of problems with sysctl_vm_zone().alfred2001-04-271-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The zone allocator's locks should be leaflocks, meaning that they should never be held when entering into another subsystem, however the sysctl grabs the zone global mutex and individual zone mutexes while holding the lock it calls SYSCTL_OUT which recurses into the VM subsystem in order to wire user memory to do a safe copy. This can block and cause lock order reversals. To fix this: lock zone global. get a count of the number of zones. unlock global. allocate temporary storage. format and SYSCTL_OUT the banner. lock global. traverse list. make sure we haven't looped more than the initial count taken to avoid overflowing the allocated buffer. lock each nodes. read values and format into buffer. unlock individual node. unlock global. format and SYSCTL_OUT the rest of the data. free storage. return. Other problems included not checking for errors when doing sysctl out of the column header. Fixed. Inconsistant termination of the copied string. Fixed. Objected to by: des (for not using sbuf) Since the output is not variable length and I'm actually over allocating signifigantly and I'd like to get this fixed now, I'll work on the sbuf convertion at a later date. I would not object to someone else taking it upon themselves to convert it to sbuf. I hold no MAINTIANER rights to this code (for now).
* Better handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc():fenner2001-04-271-7/+9
| | | | | - Don't print the "promiscuous mode (enabled|disabled)" on failure - Restore the reference count on failure
* Move the disklabel construction to the attach function instead ofsos2001-04-271-9/+9
| | | | | in open. This prevent panics when a the disklabel is accessed on an ATA-RAID subdisk.
OpenPOWER on IntegriCloud