Alan Cox
e86256c1f4
o Move vm_freeze_copyopts() from vm_map.{c.h} to vm_object.{c,h}. It's plainly
...
an operation on a vm_object and belongs in the latter place.
2002-05-06 00:12:47 +00:00
Bruce Evans
5eb6f4bc21
Restored db_elf.c from the Attic. This will be used for a quick fix for
...
the longstanding brokenness of symbols in ddb at boot time. It doesn't
compile and is not attached to the build yet.
2002-05-06 00:05:44 +00:00
Maxime Henrion
9d997d8be8
Add the lchflags(2) syscall.
...
Reviewed by: rwatson
2002-05-05 23:47:41 +00:00
Maxime Henrion
8d9b781fb5
Add an entry for the lchflags(2) syscall. It's useful to prevent
...
a symlink deletion.
Reviewed by: rwatson
2002-05-05 23:37:44 +00:00
Jeff Roberson
576365ba36
Move a KASSERT() in open() prior to unlocking the vnode. It's not safe to
...
call VOP_GETVOBJECT without a lock.
2002-05-05 23:17:13 +00:00
Alan Cox
c50fe92b8d
o Condition the compilation of uiomoveco() and vm_uiomove()
...
on ENABLE_VFS_IOOPT.
o Add a comment to the effect that this code is experimental
support for zero-copy I/O.
2002-05-05 22:42:40 +00:00
Luigi Rizzo
43d11e8453
Indentation and comments cleanup, no functional change.
...
MFC after: 3 days
2002-05-05 21:27:47 +00:00
Poul-Henning Kamp
81e017430a
Expand the one-line function pbreassignbuf() the only place it is or could
...
be used.
2002-05-05 20:37:08 +00:00
Poul-Henning Kamp
d08961bec3
Move some UFS related stuff home where it belongs.
2002-05-05 20:04:33 +00:00
Orion Hodson
7dace039d8
No longer attempt to power off the ACLINK during suspend - luigi
...
reports this causes his ich machine to hang.
2002-05-05 15:37:09 +00:00
Maxime Henrion
4e039937d9
Add a KERNELDUMPMAGIC_CLEARED macro to unbreak savecore. Since
...
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
2002-05-05 13:47:21 +00:00
Marcel Moolenaar
e80835fe0e
o Add struct mca_guid
...
o Add currently known GUIDs
o Slight restyling
2002-05-05 08:26:25 +00:00
Marcel Moolenaar
33264d92ba
o Include md_var.h
...
o Remove definition of struct ia64_fdesc
o Remove prototype of os_boot_rendez
o Use the FDESC_FUNC and FDESC_GP abstractions
2002-05-05 08:18:42 +00:00
Marcel Moolenaar
fd4a02c900
Remove definition of struct ia64_fdesc. It's been moved to md_var.h
2002-05-05 08:16:10 +00:00
Marcel Moolenaar
8cc99b71a9
o Move definition of struct ia64_fdesc here to remove duplication.
...
o Add prototype of os_boot_rendez.
2002-05-05 08:14:32 +00:00
Alan Cox
15fdd586e3
o Remove GIANT_REQUIRED from vm_map_lookup() and vm_map_lookup_done().
...
o Acquire and release Giant around vm_map_lookup()'s call
to vm_object_shadow().
2002-05-05 05:36:28 +00:00
Bruce Evans
f5216b9a19
Return the correct error code (ENOSYS, not EINVAL) from nosys(). Getting
...
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.
2002-05-05 04:50:47 +00:00
Bruce Evans
a9a0f15a69
Fixed breakage of binary compatibility of the kern.clockrate sysctl in
...
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.
2002-05-05 04:33:09 +00:00
Bruce Evans
f318190a01
Fixed checking for VM86 mode in doreti which I broke in rev.1.30. Only
...
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
2002-05-05 03:19:48 +00:00
Jeff Roberson
c7173f58fa
Use pages instead of uz_maxpages, which has not been initialized yet, when
...
creating the vm_object. This was broken after the code was rearranged to
grab giant itself.
Spotted by: alc
2002-05-04 21:49:29 +00:00
Alan Cox
79660d837c
o Make _vm_object_allocate() and vm_object_allocate() callable
...
without holding Giant.
o Begin documenting the trivial cases of the locking protocol
on vm_object.
2002-05-04 20:23:48 +00:00
David E. O'Brien
856f29cf94
Use -ffreestanding for kernel bits unconditionally.
2002-05-04 20:07:33 +00:00
Maxime Henrion
afd458b0fa
Fix a typo.
...
Submitted by: dwmalone
2002-05-04 19:50:09 +00:00
Poul-Henning Kamp
60a084052b
Shake unused stuff out of the flags in struct buf->b_flags.
2002-05-04 19:40:34 +00:00
Poul-Henning Kamp
e31c615c60
Remove a six year old undocumented #ifdef : NO_B_MALLOC.
2002-05-04 19:24:55 +00:00
Poul-Henning Kamp
2a5bcfdef6
The struct buf->b_act was not used anywere.
2002-05-04 19:06:32 +00:00
Bill Fenner
7bf744074d
Restore the ability interrupt dumps on i386, based on
...
the old kern_shutdown.c . Other archs might be able to
use similar code but I don't have anything to test on.
2002-05-04 17:45:48 +00:00
Matthew Dillon
9f9435545b
Remove obsolete code (that was already #if 0'd out).
...
Requested by: Hiten Pandya <hitmaster2k@yahoo.com>
2002-05-04 17:10:15 +00:00
Maxime Henrion
614be65181
When a program launched on the local console exits, the shell will
...
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>
2002-05-04 15:42:38 +00:00
Doug Rabson
9e861cfaa4
Use region 7 addresses for the slabs in the PV and PT zones so that we
...
don't confuse the zone allocater by translating region 5 addresses to
region 7 addresses (which is unavoidable for PTEs).
2002-05-04 12:21:32 +00:00
Poul-Henning Kamp
d9fc2b816e
Do not call nge_tick() if we get an PHY interrupt, nge_tick() calls
...
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.
2002-05-04 11:15:33 +00:00
Poul-Henning Kamp
37c0fba7c4
Increase gigE negotiation timeout to 17 seconds.
...
10 seconds is not enough to negotiate a gigE link with a cisco switch which
holds carrier off for several seconds between tries.
2002-05-04 11:08:49 +00:00
Poul-Henning Kamp
fd94424c78
Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't really
...
do anything at the end of the day except bloat the drivers which has
copy&pasted it.
2002-05-04 11:00:30 +00:00
Marcel Moolenaar
9a1bf46934
Make sure we don't index the pm_rid array out of bounds in
...
pmap_ensure_rid(). This can happen because the function is
called for both user and kernel addresses, while the rid array
only has room for user addresses. This bug got exposed by rev
1.58 of ia64/ia64/pmap.c and rev 1.8 of ia64/include/pmap.h.
2002-05-04 08:04:28 +00:00
Alfred Perlstein
698f85d3e3
style(9): 'if' and 'while' need a space after them.
2002-05-04 07:40:49 +00:00
Jeff Roberson
5df148630f
Include systm.h so panic(9) is defined when doing DEBUG_ALL_VFS_LOCKS.
2002-05-04 02:40:37 +00:00
Jeff Roberson
441271159e
Include systm.h for panic(9) so that DEBUG_ALL_VFS_LOCKS compiles.
2002-05-04 02:37:00 +00:00
Jeff Roberson
ef317162da
include systm.h in vnode_if.c so that panic is defined when we're doing
...
DEBUG_ALL_VFS_LOCKS.
2002-05-04 02:35:13 +00:00
Alan Cox
8c5c5d049f
o Remove GIANT_REQUIRED from vm_map_lookup_entry() and
...
vm_map_check_protection().
o Call vm_map_check_protection() without Giant held in munmap().
2002-05-04 02:07:36 +00:00
Poul-Henning Kamp
1ed91802ee
HPFS picks up the vop_stdgetpages and vop_stdputpages member functions
...
via the default entry and the default vop vector.
2002-05-03 18:23:29 +00:00
Juli Mallett
ea0b7a7699
Typo fix: detects -> detect.
...
Reviewed by: phk
2002-05-03 17:59:25 +00:00
Poul-Henning Kamp
9589c2561c
Fix a memory-leak when configuring a vnode backed md(4) device fails.
...
Submitted by: Martin Faxér <gmh003532@brfmasthugget.se>
MFC after: 4 weeks
2002-05-03 17:55:10 +00:00
Dag-Erling Smørgrav
d95ec55335
s/pfs_badop/vop_eopnotsupp/
...
Submitted by: phk
2002-05-03 14:58:25 +00:00
Poul-Henning Kamp
48e5da550a
Initialize time_second to 1 instead of zero to pacify slightly bogus arp code.
...
Various minor style fixes from BDE.
2002-05-03 08:46:03 +00:00
Poul-Henning Kamp
9ebe64ca1b
Don't grab the lock until somewhat later in attach to avoid a lock
...
reversal.
2002-05-03 08:44:53 +00:00
Poul-Henning Kamp
afe564a200
Name ufs_vop_[gs]etextattr() consistently with the rest of our VOPs and
...
put then in the ufs_vnops where they belong, rather than in the ffs_vnops.
Ok'ed by: rwatson
Sponsored by: DARPA & NAI Labs.
2002-05-03 08:40:33 +00:00
Seigo Tanimura
6041fa0a60
As malloc(9) and free(9) are now Giant-free, remove the Giant lock
...
across malloc(9) and free(9) of a pgrp or a session.
2002-05-03 07:46:59 +00:00
Seigo Tanimura
5cbc7077cb
The first argument of pgsigio() is now struct sigio **.
2002-05-03 07:45:26 +00:00
Seigo Tanimura
c8d8a686e4
Fix the lock order reversal between the sigio lock and a process/pgrp lock in
...
funsetownlst() by locking the sigio lock across funsetownlst().
2002-05-03 05:32:25 +00:00
Marcel Moolenaar
cb5e1f4f73
Adjust KINFO_PROC_SIZE due to segsz_t being changed from a 32-bit to
...
a 64-bit integral.
2002-05-03 01:41:37 +00:00