Commit Graph

131406 Commits

Author SHA1 Message Date
augustss
f8968198b1 Dont use lockmgr() from interrupt context. 2004-10-24 12:53:26 +00:00
augustss
122fe5d16e Whine about not being able to figure out default language if we are debugging. 2004-10-24 12:52:40 +00:00
augustss
a71f7f822d Don't make activate static. It disagrees with prototype. 2004-10-24 12:50:54 +00:00
augustss
b702a8af08 Don't allow open of low/full speed pipes types that will not work yet. 2004-10-24 08:52:26 +00:00
augustss
3f908f7bc3 Get rid of an oddly placed assert(). 2004-10-24 08:49:13 +00:00
augustss
5f05836624 Do hex conversion right. 2004-10-24 08:47:27 +00:00
skrll
22f25588af s/Id/NetBSD/ 2004-10-24 07:12:40 +00:00
skrll
e0658593c2 Fix the argument to KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK. 2004-10-24 06:58:14 +00:00
christos
cfe914cf35 Change the sc_name buffer size from 16 to 32, since we already oveflow 16
in if_tlp_pci.c... The name code really needs to be fixed so that it does
not have a buffer overflow again:

1. the cardbus and eisa code don't initialize sc_name; it probably should?
2. tlp_attach() seems to print the name and the ethernet address, but
   the pci front end seems to do the same.
3. some of the name determination code in the pci front-end does not guarantee
   nul terminated strings.

Really, all this name code is just bloat and another place for bugs to hide.
2004-10-24 00:35:08 +00:00
heinz
eb3298f1fb Follow the change done for port prep, revision 1.50. This makes output from
the autoconfiguration visible again. (Ok'd by Chuck Silvers).
2004-10-24 00:17:20 +00:00
yamt
62905a1302 uvm_pageidlezero: grab kernel_lock before uvm.fpageqlock. PR/27259. 2004-10-23 21:29:27 +00:00
yamt
c0ebe301d7 don't reference kernel_lock directly. 2004-10-23 21:27:33 +00:00
yamt
d82d2638a7 __cpu_simple_lock: loop without locking cache or asserting LOCK#. 2004-10-23 21:25:22 +00:00
yamt
fa29ea9740 to determine if an interrupt needs to grab the kernel lock or not,
check interrupt's own ipl rather than cpu's current ipl.
2004-10-23 21:24:05 +00:00
thorpej
40efd0eeef Check d_magic2 once, and not d_magic twice. Pointed out by tsarna. 2004-10-23 19:45:32 +00:00
christos
fbbeedbe63 PR/27286: Tom Ivar Helbekkmo: Allow RTM_GET to work with RTA_IFA|RTA_IFP set.
Quiting Tom: The problem is the special case of an RTM_GET message
that wants interface information included in the response, and
therefore include the RTA_IFA or RTA_IFP (or both) flags in the
bitmask that says what addresses are supplied in the message.  For
the RTM_GET message, it doesn't make sense to supply addresses
other than the one you're asking about, so those two other bits
are, in that specific case, overloaded with this meaning.

There is code in sys/net/rtsock.c to handle the case, but at some
time, extra sanity checking of the received message was added, that
failed to take this possibility into account.

The patch, is needed for the Asterisk software PBX to work properly
when it has multiple interfaces active: it needs to ask the kernel
for the IP address of the interface that will be used to communicate
with a given host.
2004-10-23 19:13:22 +00:00
thorpej
dfc3ead10a MBR partition table support for wedges, enabled by the DKWEDGE_METHOD_MBR
option.
2004-10-23 17:25:14 +00:00
thorpej
f9403749b7 Use the new BTINFO_BOOTWEDGE bootinfo to discover the booted disk and
wedge.
2004-10-23 17:20:59 +00:00
thorpej
0798da74ba Add support for passing booted wedge information to the kernel. 2004-10-23 17:20:04 +00:00
thorpej
d80e5712b6 - Adjust minor number usage for wedges; minor number directly maps to
unit now.  Don't pretend wedges have "partitions".
- Fix a buglet related to opening char and block devices of a wedge
  at the same time.
- Add dkwedge_set_bootwedge(), that MD code can call to set booted_device
  and booted_wedge appropriately when MD code knows the parent disk and
  the start/size of the wedge that was booted from.
2004-10-23 17:16:45 +00:00
thorpej
a6be1570c7 - Centralize the declaration of booted_device and booted_partition.
- Add a booted_wedge variable that indicates the wedge that was booted
  from.  If this is NULL, booted_partition is consulted.
- Adjust setroot() and its support routines for root-on-wedges.  Could
  use some tidy-up, but this works for now.
2004-10-23 17:14:11 +00:00
thorpej
dc2f2fbe74 Centralize the declaration of booted_device and booted_partition. 2004-10-23 17:07:37 +00:00
augustss
90d454c7f7 Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated.  Interrupt transfers do not work.
Warn when any low/full speed device is opened.
2004-10-23 16:17:56 +00:00
augustss
e58f453183 Regen. 2004-10-23 14:21:19 +00:00
augustss
f300e07550 Add another serial adapter. From Paul Shupak in PR kern/27197. 2004-10-23 14:20:50 +00:00
augustss
ad40767c5b Regen. 2004-10-23 14:17:36 +00:00
augustss
c24e0726df Add devices. From Paul Shupak in PR kern/25519. 2004-10-23 14:17:07 +00:00
augustss
a187f5b112 Regen. 2004-10-23 14:08:05 +00:00
augustss
bbdfe9d3b8 Add more devices. From OpenBSD. 2004-10-23 14:07:27 +00:00
augustss
e1c26273a8 Alphabetize. 2004-10-23 14:01:41 +00:00
augustss
0c21c79cc5 s/uax/axe/ 2004-10-23 14:00:50 +00:00
augustss
6496ac653d s/uax/axe/ 2004-10-23 13:46:45 +00:00
augustss
00b535e7c0 Both FreeBSD and OpenBSD use Bill Paul axe driver instead of my uax
driver.  Maybe because it actually works on with hardware besides mine? :)
So we switch to axe too.
2004-10-23 13:38:26 +00:00
augustss
d1ea5ecc77 Turn the printf about needing toggle update into a DPRINTF. Things
seem to work even when this message appears.
Why is it there, Charles?
2004-10-23 13:36:43 +00:00
augustss
4f104aa9c0 Try to get the Ethernet address of a CDC device in the prescribed way.
If that fails, just invent one (like before).
2004-10-23 13:29:18 +00:00
augustss
4430265c68 Use new functions for getting descriptors. 2004-10-23 13:28:26 +00:00
augustss
67f0f483bd Make an iterator abstraction for looping through all descriptors.
Move usb_get_string() and make it public.
2004-10-23 13:26:33 +00:00
augustss
c1d4463c05 Add Ethernet descriptor. 2004-10-23 13:24:24 +00:00
kent
90d3337a6a update for mixer names change
bump date
2004-10-23 12:27:21 +00:00
snj
24641424de Kill trailing whitespace introduced in the last revision. 2004-10-23 00:41:08 +00:00
snj
e85784770d Bump date for last, fix a spelling error, sprinkle some Dq, change
some wording.
2004-10-23 00:39:18 +00:00
bouyer
0a0bd752e8 Add an option (-M) to write a mtree specification (which needs to be passed
through sort before being feed to mtree) with file flags, instead of restoring
file flags at the same time as other attributes. Fix various issue with
schg, uchg, sappnd or uappnd flags which cause restore to fail in some case.
Discussed on tech-userlevel:
http://mail-index.netbsd.org/tech-userlevel/2004/10/12/0000.html
2004-10-22 22:38:38 +00:00
jmc
79308267d4 For HOSTTOOL builds, just exclude the chroot support as it's not needed and
avoids having to platform check for fchroot(). Fixes PR#27336
2004-10-22 21:00:18 +00:00
scw
408aca554c Make artsata depend on sata. 2004-10-22 20:05:01 +00:00
peter
224f01f920 Constify. 2004-10-22 18:41:09 +00:00
jmc
693535a5d9 Spelling errors 'dependant' vs 'dependent' from PR#27345 2004-10-22 18:35:41 +00:00
peter
ebfed7ec9e Check the status for each test and print the result or an error message
according to the status code. This fixes a core dump in test 4.

Closes PR bin/27145 from ianzag at megasignal.com
Reviewed by christos, jdolecek.
2004-10-22 18:33:06 +00:00
kent
1b1a5c5dba assign AudioNlfe to UATO_SUBWOOFER
assign "phone" to telephony terimnal types.  The label "phone" is used
in ac97 though it is not defined as AudioN* macro.
2004-10-22 17:00:22 +00:00
kent
4f3a6c3aa2 style fixes
- consistent folding in function declarations
 - define a function as Static if the function is declared as Static
2004-10-22 16:01:49 +00:00
christos
29950aef4a Check the result of stat and warn if things are not found.
Change all err/x to warn/x
2004-10-22 15:50:47 +00:00