Matthew Dillon
676274db9b
Remove support for the badly broken MAP_INHERIT (from -current only).
2001-08-24 19:29:56 +00:00
Matthew Dillon
dbad546ba7
Update the mmap.2 and minherit.2 manual pages. Add a short explanation and
...
referal from mmap to minherit for MAP_INHERIT. Fully document the
minherit.2 manual page (because frankly, my dear, however you think it
currently works is almost certainly wrong!). I may soon re-implement
MAP_COPY because I believe we can support it properly now, but I will have
to call it something else and that is for a later time.
2001-08-24 19:28:00 +00:00
Matthew Dillon
c45da89917
Remove MAP_NOEXTEND. It came from 4.4-lite and not only was never
...
implemented, but mmap()'s default behavior is *already* to not extend
files. Only write() or ftruncate() can extend a file.
2001-08-24 18:22:46 +00:00
John Baldwin
6385dec00e
Style nits:
...
- Don't use punctuation or newlines in panic messages.
- Remove excess blank lines.
Requested and partially submitted by: bde
2001-08-24 17:46:58 +00:00
Warner Losh
d625c99d74
Explain what we're doing in pcic_pci_shutdown a little better. Try to
...
explain the subtle side effects that are going to happen and why we go
ahead and ack the interrupt source. This stuff is tricky to get
right.
Also, emperical tests have shown that doing a shutdown in attach to be
ineffectual, so remove it from there. Analysis of the code paths
shows that nearly identical writes to these registers happen in later
parts of the code. The hanging problem on thinkpads when we change
the interrupt routing type is something else.
2001-08-24 17:29:42 +00:00
John Baldwin
e5dfa86a70
Axe a commented, unused #define related to the old giant lock.
2001-08-24 16:52:31 +00:00
John Baldwin
134b29765c
INTREN() and INTRDIS() have been MP safe for a while. Don't say that they
...
are "soon to be" MP safe in the comments.
2001-08-24 16:51:47 +00:00
John Baldwin
a0f831f573
Remove references to the old giant kernel lock in various comments.
2001-08-24 16:46:15 +00:00
Peter Pentchev
ccdbd10cb7
Prevent passing a null pointer as a filename to vn_open(),
...
if for some reason expand_name() failed to build a core file name.
PR: 29931
Submitted by: Foldi Tamas <crow@kapu.hu>
Reviewed by: dd, -arch
MFC after: 1 month
2001-08-24 15:49:30 +00:00
Brian Somers
1a939a075f
Handle return values of 0 from NgRecvMsg() properly.
2001-08-24 14:53:41 +00:00
Brian Somers
321d268b28
Understand that a return value of 0 from NgRecvMsg() means that the
...
socket was closed.
This prevents erroneous ``Unexpected netgraph version'' from turning
up in the log.
2001-08-24 14:52:38 +00:00
Brian Somers
fd048a1c8a
Explain what the return value from NgRecvMsg() and NgRecvData() means,
...
specifically that 0 means the socket has been closed.
2001-08-24 14:52:05 +00:00
Andrey A. Chernov
f0e093f298
Fd is macro too, so use \&Fd
2001-08-24 11:12:58 +00:00
Andrey A. Chernov
aa0b534660
Fildes -> Fd too (started from big letter)
2001-08-24 11:05:11 +00:00
Andrey A. Chernov
a5b1af6c71
Change
...
start means ...
to
.Fa l_start
means ...
2001-08-24 10:59:32 +00:00
Sheldon Hearn
56b38b7bc7
Fix up English from previous 3 revisions.
...
There is no such argument 'fildes' in the SYNOPSIS. It's called 'fd'.
2001-08-24 10:36:29 +00:00
Andrey A. Chernov
5215e1ea12
Copy from kern_lockf.c: remove extra check
2001-08-24 10:22:16 +00:00
Andrey A. Chernov
dc6e1079e6
Remove extra check unneded now
2001-08-24 10:20:26 +00:00
Peter Wemm
7d1192a784
On today's kernels masking with ~KERNBASE is turning out to be less
...
than useful. It still hits at least 8 digits. Adjust for reality.
This is still not satisfactory for the alpha if you add "-O paddr".
2001-08-24 09:56:44 +00:00
Peter Wemm
fbb75ab833
Handle kvm_getprocs() returning nothing. Dont pass -1 to a size
...
for malloc().
2001-08-24 09:53:26 +00:00
Peter Wemm
6f8c6a6977
Make ps -M corefile work again. This has been broken for quite some time.
...
kvm_proclist() was aborting when it saw the ithreads with no pgrp.
2001-08-24 09:43:44 +00:00
Peter Wemm
241ca2287a
Banish hard-coded KERNBASE references from savecore. Dynamically
...
adjust to whatever kernbase is in the kernel that we are dumping.
2001-08-24 09:26:17 +00:00
Peter Wemm
fd131b1483
Dynamically adapt to kernbase changes on crashdumps, falling back to
...
KERNBASE if the "kernbase" symbol is not present on older kernels.
2001-08-24 09:12:04 +00:00
Peter Wemm
f85f304006
Dynamically adjust to the value of KERNBASE in a crashdump, with
...
a fallback for old kernels without the "kernbase" symbol.
2001-08-24 08:53:30 +00:00
Peter Wemm
c1c2006ca7
Export the actual KERNBASE to the symbol table. We can use nlist() to get
...
this without having to second guess it in userland.
2001-08-24 08:29:54 +00:00
Peter Wemm
5897d41109
Move cpu_fxsr definition to C code (so debug info is generated) and where
...
it is easily #ifdef'ed so that we dont miss unintentional references to it.
2001-08-24 08:27:24 +00:00
Warner Losh
662460d3d5
Move code to shutdown the pcic_pci_shutdown. Call it on system
...
shutdown and also before we get going with the device initialization.
This may fix the hangs some people are seeing on warmboot. It appears
that some machines will reset the cardbus bridge on boot, while others
don't. So we turn off the card, and ack the interrupts (which likely
is a nop in the shutdown case since we're still fielding interrupts).
This should turn off the interrupts.
Since I don't have hardware that hangs on reboot, I'm committing this
without testing that aspect of the patch (it causes no harm on my
Dell).
2001-08-24 07:43:35 +00:00
Warner Losh
9bec31a4c0
Two fixes. First, put into place a more generic chipset specific
...
initialization structure. Warn the user for those chipsets that
aren't yet customized that they might not work. Second, try to power
off the slot on attach and ack the interrupts. I don't know, but this
might solve the hangs that people will see on Thinkpads if they set
hw.pcic.init_routing=1.
2001-08-24 07:30:18 +00:00
Nick Sayer
2afcd749c7
Get rid of redundant device_set_desc. Both the PCI and PCCARD versions
...
do this in the probe routine now.
2001-08-24 05:47:50 +00:00
Kenneth D. Merry
b915499708
Remove a duplicate "that".
...
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-24 02:24:58 +00:00
Nick Sayer
fa081a357e
In order for the MA301 to pass interrupts from the PCCard, you must
...
go into the PLX 9052's interrupt control register and turn on the magic
interrupt enable bit.
Partial thanks are due to OpenBSD for pointing out that the chip is a
PLX 9052 and pointing me to the datasheet PDF.
2001-08-24 02:14:26 +00:00
Robert Watson
670f6b2fc6
o Clarify comments in vaccess_acl_posix1e() ACL evaluation routine so
...
as to improve readability and accuracy.
Obtained from: TrustedBSD Project
2001-08-24 01:41:42 +00:00
Bruce A. Mah
a6c6c6a29b
Reflect that the lge(4) driver has been tested on the Alpha.
...
Reviewed by: wpaul
2001-08-24 00:30:50 +00:00
Dima Dorfman
dae32f31ab
begin executed --> being executed
...
Obtained from: NetBSD
2001-08-24 00:18:37 +00:00
Nick Sayer
15d2a7c783
if_wi can be either pci (without pccard) or pccard
2001-08-23 23:58:49 +00:00
John Baldwin
6f2d81026c
- callout_stop() now returns an integer value instead of void so
...
describe it.
- Add a return values section.
2001-08-23 23:52:59 +00:00
John Baldwin
a63e78202c
Spelling fix: depreciated -> deprecated.
2001-08-23 23:41:53 +00:00
John Baldwin
e6f6e49f5c
Remove refernces to M_ASLEEP/asleep/await.
2001-08-23 23:40:53 +00:00
John Baldwin
b4e95913f7
Remove references to asleep/await.
2001-08-23 23:37:31 +00:00
John Baldwin
b0b7cb508c
Use witness_upgrade/downgrade for sx_try_upgrade/downgrade.
2001-08-23 22:51:22 +00:00
John Baldwin
8df70cb7a9
Whitespace nit.
2001-08-23 22:47:51 +00:00
John Baldwin
c19fe5e261
Add witness_upgrade() and witness_downgrade() for handling upgrades and
...
downgrades of shared/exclusive locks.
2001-08-23 22:47:05 +00:00
John Baldwin
d7c4536a55
Convert some KASSERT()'s into if (foo) panic() because they are testing
...
how locks are managed by the rest of the kernel, not verifying the internal
integrity of witness itself.
2001-08-23 22:44:47 +00:00
David Greenman
dfa902ee24
Killed reference to MAP_INHERIT which is not supported in FreeBSD.
2001-08-23 22:39:52 +00:00
Dima Dorfman
98ec4706ee
Correct the comment about bpfattach() to match reality.
...
PR: 29967
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-23 22:38:08 +00:00
Dima Dorfman
745bab7f84
Correct a typo in a comment: FIN_WAIT2 -> FIN_WAIT_2
...
PR: 29970
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-23 22:34:29 +00:00
Dima Dorfman
d736886a81
Implement stty ek
as documented.
...
PR: 24063
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
2001-08-23 22:31:13 +00:00
Dima Dorfman
81b83ee95d
$units is the canonical name for the number of units to create; use it.
...
PR: 29971
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-23 22:19:53 +00:00
Dima Dorfman
d4b0f8e25a
Spelling police: queueing -> queuing
...
PR: 29985
Submitted by: Joseph Mallett <jmallett@xMach.org>
2001-08-23 21:58:38 +00:00
Dima Dorfman
e0723ac957
Spelling police: relabelled -> relabeled
...
PR: 29985
Submitted by: {aac,amr,mlx}.4
2001-08-23 21:52:38 +00:00