Matthew Dillon
2ee4dc6565
Add INHERIT_XXX defines for minherit() system call.
...
Remove MAP_INHERIT - it is no longer supported.
2001-08-24 19:48:07 +00:00
Matthew Dillon
676274db9b
Remove support for the badly broken MAP_INHERIT (from -current only).
2001-08-24 19:29:56 +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
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
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
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
Nick Sayer
15d2a7c783
if_wi can be either pci (without pccard) or pccard
2001-08-23 23:58:49 +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
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
John Baldwin
1432aa0c5e
Add a new kernel option RESTARTABLE_PANICS. If this option is present,
...
then one can restart from a panic by resetting the panicstr variable to
NULL. This commit conditionalizes the previously committed functionality
on this variable. It also removes the __dead2 attribute from the panic()
function so that when one continues from a panic() the behavior will
be predictable.
2001-08-23 20:32:21 +00:00
Bill Paul
645ed1a78b
Fix a bug in the ste_setmulti() routine. The NIC has 4 16-bit multicast
...
hash registers, not 2 32-bit ones. This would prevent the multicasr filter
from being programmed correctly in some cases.
2001-08-23 18:22:55 +00:00
Andrey A. Chernov
f6bf1abc1b
Stupid error from my side in prev. commit: || -> &&
2001-08-23 18:02:29 +00:00
John Baldwin
e2870579fa
Clear the sx_xholder pointer when downgrading an exclusive lock.
2001-08-23 17:57:37 +00:00
Andrey A. Chernov
5d97bedb22
vn_stat(): if va_size (u_quad_t) > OFF_MAX, return EOVERFLOW, don't copy it
...
blindly to st_size
2001-08-23 17:56:48 +00:00
Andrey A. Chernov
2a31175b6e
Copy yet one check for SEEK_END overflow
2001-08-23 17:12:42 +00:00
Andrey A. Chernov
6fb9fbceab
Add yet one check for SEEK_END overflow
2001-08-23 17:09:23 +00:00
Andrey A. Chernov
db106eff39
lseek: fix check for vattr.va_size overflow. Check suggested by bde simple not
...
works with unsigned types.
2001-08-23 17:01:25 +00:00
Andrey A. Chernov
e02faad5ca
Implement l_len<0 per POSIX check.
...
Check for valid l_whence too.
2001-08-23 16:13:59 +00:00
Andrey A. Chernov
ea4313e351
Copy my newly introduced l_len<0 'oops' fix from kern_lockf.c
2001-08-23 16:06:14 +00:00
Andrey A. Chernov
62be011ebd
Oops, fix my broken handling of new l_len<0 case
2001-08-23 16:00:27 +00:00
Andrey A. Chernov
e3e2c03de3
Copy POSIX l_len<0 handling from kern_lockf.c
2001-08-23 15:44:24 +00:00
Andrey A. Chernov
f510e1c2ec
Originally BSD return EINVAL for l_len < 0, but now POSIX wants it too,
...
so implement POSIX l_len < 0 handling.
2001-08-23 15:40:30 +00:00
Andrey A. Chernov
bbf6984cec
Cosmetique: correct English in comments
...
non-cosmetique: add missing break; - original code was broken here
2001-08-23 14:45:31 +00:00
Andrey A. Chernov
6d24c65d96
Cosmetique: correct English in comments
...
Pointed by: bde
2001-08-23 14:41:39 +00:00
Andrey A. Chernov
6c3f4fef64
Even better move: suppose that server is able to handle SEEK_END,
...
so check arguments for all but not SEEK_END case, leaving SEEK_END
handling for server
2001-08-23 14:21:26 +00:00
Andrey A. Chernov
e018907ed4
Apparently SEEK_END locking not supported by NFS. Previous variant
...
returns EINVAL in that case, change it to EOPNOTSUPP.
2001-08-23 14:09:16 +00:00
Andrey A. Chernov
b82f5b624c
Cosmetique: more <sys/*> into one group, separate include families by
...
blank line
2001-08-23 13:51:17 +00:00
Andrey A. Chernov
fb2f187058
Move <machine/*> after <sys/*>
...
Pointed by: bde
2001-08-23 13:27:58 +00:00
Andrey A. Chernov
b44af710d3
Move <machine/*> after <sys/*>
...
Pointed by: bde
2001-08-23 13:21:17 +00:00
Andrey A. Chernov
4b207d9868
Move <machine/*> after <sys/*>
...
Add missing fdrop() before EOVERFLOW
Pointed by: bde
2001-08-23 13:19:32 +00:00
Cameron Grant
4132a3b206
the feederchain builder is currently broken for recording channels. disable
...
it until it is fixed. this limits recording to native formats and speeds
only.
2001-08-23 12:27:27 +00:00
Cameron Grant
334326a17f
handle bogus values passed to SOUND_PCM_WRITE_CHANNELS/SNDCTL_DSP_CHANNELS
...
ioctls better- if 0 is passed, return the current setting. if 1 or 2 are
passed, behave accordingly. treat values >2 as 2.
PR: kern/29964
2001-08-23 12:21:12 +00:00
Cameron Grant
48875621e1
make the 4dwave nx chip work
...
Submitted by: Philippe Anel <xigh@noos.fr>
2001-08-23 12:02:29 +00:00
Cameron Grant
92f39b2c05
MFS: make SNDCTL_DSP_SETTRIGGER work
2001-08-23 11:58:38 +00:00