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
Cameron Grant
1662598f0c
MFS: allow multiple opens of mixer devices
2001-08-23 11:56:07 +00:00
Cameron Grant
67b1dce3bc
many changes:
...
* add new channels to the end of the list so channels used in order of
addition
* de-globalise definition of struct snddev_info and provide accessor
functions where necessary.
* move the $FreeBSD$ tag in each .c file into a macro and allow the
/dev/sndstat handler to display these when set to maximum verbosity to aid
debugging.
* allow each device to register its own sndstat handler to reduce the amount
of groping sndstat must do in foreign structs.
2001-08-23 11:30:52 +00:00
Andrey A. Chernov
4779017439
adv. lock:
...
copy EOVERFLOW handling code from main variant
fix type of 'size' arg
2001-08-23 08:54:22 +00:00
Andrey A. Chernov
e9d095afdc
adv. lock:
...
detect off_t overflow _before_ it occurse and return EOVERFLOW instead of
EINVAL
2001-08-23 08:20:21 +00:00
Andrey A. Chernov
69cc1d0d7f
Detect off_t EOVERFLOW of start/end offsets calculations for adv. lock,
...
as POSIX require.
2001-08-23 07:42:40 +00:00
Nick Sayer
499147571e
Oops. The new pci_ids array should be static.
2001-08-23 03:06:16 +00:00
Peter Wemm
85ceedd60f
Fix a #endif misplacement in 1.231 due to misapplied patch
...
Pointy hat to: peter
2001-08-23 01:50:31 +00:00
Peter Wemm
66875a2aff
Fix a comment error that was fixed in the pc98 version. hw.maxmem is
...
really hw.physmem.
2001-08-23 01:49:12 +00:00
Peter Wemm
520f648f42
Merge i386/machdep.c rev 1.474: dont overextend %cs. (finally, it doesn't
...
conflict with unmerged changes)
2001-08-23 01:47:26 +00:00
Peter Wemm
2ddb1aff19
Merge i386/machdep.c rev 1.469: whitespace changes to fit 80 columns
...
Forgotten by: jhb
2001-08-23 01:46:23 +00:00
Peter Wemm
2fb7d2e4c2
Merge i386/machdep.c rev 1.468: make breakpoint/trace interrupt instead
...
of trap gates
Forgotten by: bde
2001-08-23 01:43:38 +00:00