summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* I didn't intend to delete this rm from the Makefile. It snuck in atimp2002-12-182-0/+2
| | | | | | | | | the last second before the commit. # likely we can remove this hack now that gcc generates better aligned code # in the align to word case. Noticed by: bde
* - Hold the page queues lock when performing vm_page_busy().alc2002-12-181-2/+5
| | | | | - Replace vm_page_sleep_busy() with proper page queues locking and vm_page_sleep_if_busy().
* Hold the page queues lock when performing vm_page_flag_set().alc2002-12-182-1/+9
|
* Cosmetic cleanup of unsigned buglets.mckusick2002-12-181-5/+5
| | | | | Submitted by: Bruce Evans <bde@zeta.org.au> Sponsored by: DARPA & NAI Labs.
* Back out revision 1.38. disklabel now understands vinum volumes again.grog2002-12-181-5/+1
|
* Reduce diffs with Peter's expanded diffs:imp2002-12-172-8/+8
| | | | | 1) Put back the keyboard printing printf, at the cost of 58 bytes. 2) Minor tweak to getstr at no apparent cost.
* Add a check for negative offset locations and return EINVAL for them.phk2002-12-171-0/+5
|
* Make both UFS1 and UFS2 fit on the same boot blocks. These are aimp2002-12-174-142/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | subset of Peter's patchs that are believed to be safe. Makefile tweaks: o -fomit-frame-pointer o Change default to building both UFS1 and UFS2 bootblocks. Lots of boot2 tweaks: o lookup is only ever called with kname, so use it directly. o inline memsize o getstr are only ever called with cmd, so hardware that. o tweaks to the parsing code to test after the conversion rather than before since we tested after anyways. o eliminate support for %x in printf. o eliminate a few bytes in printfs. o Tweak the boot banner. o eliminate support for wd and " " devices (I might add wd back to keep bde happy). o eliminate support for a few arguments. This takes us from -162 bytes free to 67 bytes free. I've tested this only on a few systems, so be careful when updating to this change. Submitted by: peter, imp, ian
* Remove unused lockcnt variable.phk2002-12-171-3/+0
| | | | Approved by: mckusick
* Hold the page queues lock when performing vm_page_flag_set().alc2002-12-172-1/+3
|
* Indent properly.phk2002-12-171-1/+2
|
* Remove unused variable cn_devfsdev.phk2002-12-171-2/+1
|
* Remove unused and incorrectly maintained variable "in_interfaces"phk2002-12-171-4/+0
|
* Don't cast a pointer to (intptr_t) and then on to (int) when we cannotphk2002-12-171-3/+3
| | | | | be sure that (int) is large enough. Instead cast only to (intptr_t) and cast the switch/case values to (intptr_t) as well.
* Try to fix the problem with burncd blank not seeing the end ofsos2002-12-171-14/+9
| | | | the blank operation.
* This should be the way PC98 ATA disks are seen geometry wise.sos2002-12-173-4/+10
| | | | Should go into 5_0_RELEASE as well.
* Don't mangle geometry for pc98, this will happen in the ata driver.phk2002-12-171-4/+0
|
* Unspam some experimental changes which should not have been committed.phk2002-12-171-13/+40
|
* Remember to hold topology lock when we change things.phk2002-12-171-0/+2
| | | | Spotted by: kuriyama
* Constify the dumpconf() function.phk2002-12-171-1/+1
|
* Back out 1.19 to rethink approachnjl2002-12-172-4/+4
| | | | Requested by: julian@
* Check that the dump device is large enough. Otherwise we couldmarcel2002-12-171-0/+10
| | | | | | | | | end up with a dump offset that's smaller than the start of the dump device and either clobber data in preceding partitions or try to write beyond the end of the medium (unsigned wrap). Implement legacy behaviour to never write to the first 64KB as that is where metadata (ie disklabels) may reside.
* Automatically issue a "continue" along with the "detach" command. Thisnjl2002-12-172-4/+4
| | | | | | fixes the problem of cleanly restarting a target after entering gdb mode. Reviewed by: archie@
* Fix syntax in last commit.dillon2002-12-172-6/+6
|
* Convert the xl(4) driver to the busdma API. This should makemux2002-12-172-157/+300
| | | | | | | it possible to use this driver under ia64, sparc64 (though there may be endianness issues with this one) and other archs. Tested on: i386, alpha (gallatin)
* Reformat last changejulian2002-12-162-10/+14
| | | | Requested by: nate@
* Get rid of g_slice_addslice() and use g_slice_config() instead.phk2002-12-166-130/+101
| | | | Tested with: i386 + src/tools/regression/geom
* Don't dump core into a partition that is too small for it.julian2002-12-162-0/+18
| | | | | If we do, we usually wrote backwareds into the proceeding partititon which is usually the root partition.
* Constification and some s/int/u_int/ changes.phk2002-12-1611-84/+85
|
* Change the way ELF coredumps are handled. Instead of unconditionallydillon2002-12-162-11/+32
| | | | | | | | | | | | | | | | | | | skipping read-only pages, which can result in valuable non-text-related data not getting dumped, the ELF loader and the dynamic loader now mark read-only text pages NOCORE and the coredump code only checks (primarily) for complete inaccessibility of the page or NOCORE being set. Certain applications which map large amounts of read-only data will produce much larger cores. A new sysctl has been added, debug.elf_legacy_coredump, which will revert to the old behavior. This commit represents collaborative work by all parties involved. The PR contains a program demonstrating the problem. PR: kern/45994 Submitted by: "Peter Edwards" <pmedwards@eircom.net>, Archie Cobbs <archie@dellroad.org> Reviewed by: jdp, dillon MFC after: 7 days
* Add the trm(4) driver.cognet2002-12-162-0/+2
| | | | MFC after: 1 day
* The HP DAT 40 tape drive should be able to handle variable block sizes.trhodes2002-12-161-0/+4
| | | | | | | | | But for some reason the block size is different when a different type of tape is placed in the drive. This commit fixes that. PR: 46209 Submitted by: Alex Wang <alex@alexwang.com> Approved by: mjacob
* Remove the hto(be|le)[slq] and (be|le)toh[slq] macros defined inrobert2002-12-166-40/+18
| | | | | | | | | | | _KERNEL scope from "src/sys/sys/mchain.h". Replace each occurrence of the above in _KERNEL scope with the appropriate macro from the set of hto(be|le)(16|32|64) and (be|le)toh(16|32|64) from "src/sys/sys/endian.h". Tested by: tjr Requested by: comment marked with XXX
* Ignore IEEE1284 descriptors when looking for bidirectional mode. We don'tdes2002-12-161-2/+2
| | | | | | | really know how to talk IEEE1284, so attaching to that interface makes the printer unusable. Approved by: joe
* MFNetBSD: 1.52-1.55des2002-12-161-4/+17
| | | | | Mostly OpenBSD-related changes. Remove newline from panic string. Remove an unreachable break statement.
* Fix the panic that occurs when kldunloading trm by using the correctcognet2002-12-162-29/+51
| | | | | | | | prototype for trm_detach and freeing all resources. While I'm there, handle better errors in trm_attach and remove the PCI_BASE_ADDR0 definition, since it's what PCIR_MAPS is used for. MFC after: 3 days
* fixed a bug that IPv6 multicast packet is not forwarded if its packet size ↵suz2002-12-161-1/+1
| | | | | | | | is equal to the outgoing interface's MTU Approved by: re Obtained from: KAME MFC after: 3 days
* Regen: swapoffmarcel2002-12-169-12/+15
|
* Change swapoff from MNOPROTO to UNIMPL. The former doesn't work.marcel2002-12-163-3/+3
|
* unifdef -DPC98 -U__alpha__phk2002-12-151-315/+13
|
* Perform vm_object_lock() and vm_object_unlock() on kmem_objectalc2002-12-151-0/+4
| | | | around vm_page_lookup() and vm_page_free().
* Update to previous change (1.54) to use an approperly wide inode fieldmckusick2002-12-152-9/+12
| | | | | | | | so as to work correctly on 64-bit platforms. Reported-by: Jake Burkholder <jake@locore.ca> Sponsored by: DARPA & NAI Labs. Approved by: Ian Dowse <iedowse@maths.tcd.ie>
* Regenerate system calls (swapoff added)dillon2002-12-155-7/+15
|
* This is David Schultz's swapoff code which I am finally able to commit.dillon2002-12-1513-40/+530
| | | | | | | This should be considered highly experimental for the moment. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
* Fix a refcount race with the vmspace structure. In order to preventdillon2002-12-153-9/+27
| | | | | | | | | | | | | | | | | | resource starvation we clean-up as much of the vmspace structure as we can when the last process using it exits. The rest of the structure is cleaned up when it is reaped. But since exit1() decrements the ref count it is possible for a double-free to occur if someone else, such as the process swapout code, references and then dereferences the structure. Additionally, the final cleanup of the structure should not occur until the last process referencing it is reaped. This commit solves the problem by introducing a secondary reference count, calling 'vm_exitingcnt'. The normal reference count is decremented on exit and vm_exitingcnt is incremented. vm_exitingcnt is decremented when the process is reaped. When both vm_exitingcnt and vm_refcnt are 0, the structure is freed for real. MFC after: 3 weeks
* o Trim EOL whitespaces.maxim2002-12-152-24/+24
| | | | MFC after: 1 week
* o s/if_name[16]/if_name[IFNAMSIZ]/maxim2002-12-151-1/+1
| | | | | Reviewed by: luigi MFC after: 1 week
* o M_DONTWAIT is mbuf(9) flag: malloc(M_DONTWAIT) -> malloc(M_NOWAIT).maxim2002-12-151-7/+7
| | | | | | | The bug does not affect anything because M_NOWAIT == M_DONTWAIT. Reviewed by: luigi MFC after: 1 week
* o Fix byte order logging issue: sa.sin_port is already in host byte order.maxim2002-12-151-1/+1
| | | | | | | PR: kern/45964 Submitted by: Sascha Blank <sblank@tiscali.de> Reviewed by: luigi MFC after: 1 week
* o Clear a high bit of ipc_perm.seq so msgget(3) never returns amaxim2002-12-151-1/+1
| | | | | | | | negative message queue id. PR: kern/46122 Submitted by: Vladimir B.Grebenschikov <vova@sw.ru> MFC after: 2 weeks
OpenPOWER on IntegriCloud