Commit Graph

84302 Commits

Author SHA1 Message Date
jake
3581f2e766 Teach libkvm to deal with direct mapped addresses. 2002-12-27 01:45:05 +00:00
tjr
dc47dfe349 Be more consistent with "static". 2002-12-27 01:01:03 +00:00
hsu
fcddbac61e Long chain of calls starting with bridge_on(), going through IPv6, and
ending up at ifa_ifwithdstaddr() could lead to a recursive lock of
the ifnet list mutex.
2002-12-27 00:24:35 +00:00
phk
86237323ce white-space changes 2002-12-26 21:02:50 +00:00
phk
42303b7842 Use a mutex assert to document our locking circumstances. 2002-12-26 20:48:22 +00:00
phk
95b53f849f We should not need to hold Giant for sbuf operations any more. 2002-12-26 20:46:30 +00:00
phk
4b8243309b Add an XXX comment to explain the predicament. 2002-12-26 20:45:37 +00:00
ru
b648174f01 s/pseudo-device/device/ 2002-12-26 19:56:29 +00:00
nyan
5c9a5fad65 Return an error if the size of the sector is zero. This is for removable
devices that is not inserted any media.

This is MFC candidate.

Submitted by:	ISAKA Yoji <isaka@cory.jp>
2002-12-26 15:50:45 +00:00
tjr
f52003d597 Unbreak for the !__XSI_VISIBLE case when another header that defines
size_t has not been included first.
2002-12-26 14:44:45 +00:00
tjr
9ed5e14b3d Add "restrict" qualifiers to the prototype for wordexp(). 2002-12-26 14:38:27 +00:00
tjr
cf830fd3a1 Add an implementation of the POSIX wordexp() and wordfree() functions,
which perform shell-style word expansion on strings. This is still a
little rough around the edges.

PR:		13420
2002-12-26 14:34:18 +00:00
tjr
dc84fecc6f Add the POSIX <wordexp.h> header file.
PR:		13420
2002-12-26 14:30:55 +00:00
tjr
2513cac775 Add the "wordexp" shell built-in command which will be used to implement
the POSIX wordexp() function.
2002-12-26 14:28:54 +00:00
iedowse
2a09ef0733 When resuming after a system suspend, re-issue the UHCI_CMD_MAXP
command in case this setting was not saved. Since bandwidth reclamation
(-current only) often results in bus activity continuing to the end
of every frame, most transfers would fail with IOERROR if this
setting is missed.

Reviewed by:	n_hibma
MFC after:	1 week
2002-12-26 13:25:57 +00:00
davidxu
05fff6e162 Set %bx register instead of %di register, see vbe3.0, page 45. 2002-12-26 13:20:58 +00:00
ru
391c68aa50 MFS: Split export list. 2002-12-26 12:20:25 +00:00
simokawa
7f505f2e5f Cosmetic change. s/Firewire/FireWire/. 2002-12-26 06:50:09 +00:00
simokawa
0cc4eba491 Replace ntohl() with ntohs() because orb_hi is u_int16_t. 2002-12-26 06:41:37 +00:00
hsu
97a36d5147 Disable radix node locking for sysctl until we fix the sysctl infrastructure
to not sleep.
2002-12-26 03:35:57 +00:00
simokawa
86881be851 firewire.c
- Fix permission of device node.

fwochi.c, fwohcireg.h
- Detect phy access failure correct way.
- Set root hold-off bit before initiating bus reset.
	This should fix the problem with VIA6306.

fwohcivar.h
- Fix over-allocation of array. (fwohcivar.h)

sbp.c
- Return CAM_DEV_NOT_THERE rather than CAM_TID_INVALID to prevent retry.
2002-12-26 03:17:59 +00:00
grog
211a5c36f0 Clarify the distinction between the Proclamation of the Province of
South Australia and the date of the Proclamation Day holiday.
2002-12-25 23:15:36 +00:00
ru
7c77e1c140 Typo in function name. 2002-12-25 11:40:53 +00:00
ru
f1281bc5b8 I'm not sure what was the problem at the time of revision 1.37
when julian@ added it, but the commented out code had at least
one bug -- not freeing the allocated mbuf.

Anyway, this comment no longer applies as of revision 1.67, so
remove it.
2002-12-25 10:55:44 +00:00
hsu
e8fb8ec7ab Range-check the address family parameter passed in to the sysctl handler.
Submitted by:	ru
2002-12-25 10:51:20 +00:00
ru
ba65aaecd7 Revision 1.67 changes correspond to CSRG revision 8.3.1.1 changes. 2002-12-25 10:50:08 +00:00
ru
d1b9781ba6 If the caller of rtrequest*(RTM_DELETE, ...) asked for a copy of
the entry being removed (ret_nrt != NULL), increment the entry's
rt_refcnt like we do it for RTM_ADD and RTM_RESOLVE, rather than
messing around with 1->0 transitions for rtfree() all over.
2002-12-25 10:21:02 +00:00
ru
10fa4d605b A month after pst@ has committed his revision 1.8, it was
incorporated by UCB as revision 8.5.  Do a diff reduction.
2002-12-25 09:16:58 +00:00
hsu
15e3318781 Ensure that the made-up inode number for a Unix domain socket is persistent. 2002-12-25 07:59:39 +00:00
hsu
8dca88296f Validate inp to prevent an use after free. 2002-12-24 21:00:31 +00:00
rwatson
056f6abea8 Flush vop_refreshlabel() definition, since it is no longer used.
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-24 19:47:13 +00:00
alc
6c305940bb - Hold the page queues lock around calls to vm_page_flag_clear(). 2002-12-24 19:02:03 +00:00
ru
374b3bf84d Spelling: s/then/than/ where appropriate. 2002-12-24 16:52:31 +00:00
rwatson
4b7b11ab2a Require privilege to flush the signal cache on if_an and if_wi 802.11
cards.

Reviewed by:	imp (if_wi)
2002-12-24 14:46:01 +00:00
maxim
3e0f4be813 o De-anonymity dummynet(4) and ipfw(4) messages, prepend them
by 'dummynet: ' and 'ipfw: ' prefixes.

PR:		kern/41609
2002-12-24 13:45:24 +00:00
ru
bbb36710e2 mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
maxim
5b2383ee48 Fix usbd.conf parsing: fgetln(3) returns a string without terminating
NUL character so do not expect it.

PR:		bin/46489
MFC after:	1 week
2002-12-24 11:58:05 +00:00
phk
a754937640 White-space changes. 2002-12-24 09:44:51 +00:00
davidxu
e19f6ba8d5 Check NULL pointer to avoid SIGSEGV 2002-12-24 07:40:10 +00:00
alc
f95e171cf5 - Hold the page queues lock around calls to vm_page_wakeup() and
vm_page_flag_clear().
2002-12-24 07:32:38 +00:00
alc
946b3d26d2 - Hold the page queues lock around vm_page_wakeup(). 2002-12-24 04:24:58 +00:00
hsu
bbd78c8988 SMP locking for radix nodes. 2002-12-24 03:03:39 +00:00
trhodes
a88ae3c478 Various language tweaks.
PR:		45604
Submitted by:	Chris Pepper <pepper@rockefeller.edu>
2002-12-24 01:04:42 +00:00
jake
341de1265e - Change the way the direct mapped region is implemented to be generally
useful for accessing more than 1 page of contiguous physical memory, and
  to use 4mb tlb entries instead of 8k.  This requires that the system only
  use the direct mapped addresses when they have the same virtual colour as
  all other mappings of the same page, instead of being able to choose the
  colour and cachability of the mapping.
- Adapt the physical page copying and zeroing functions to account for not
  being able to choose the colour or cachability of the direct mapped
  address.  This adds a lot more cases to handle.  Basically when a page has
  a different colour than its direct mapped address we have a choice between
  bypassing the data cache and using physical addresses directly, which
  requires a cache flush, or mapping it at the right colour, which requires
  a tlb flush.  For now we choose to map the page and do the tlb flush.

This will allows the direct mapped addresses to be used for more things
that don't require normal pmap handling, including mapping the vm_page
structures, the message buffer, temporary mappings for crash dumps, and will
provide greater benefit for implementing uma_small_alloc, due to the much
greater tlb coverage.
2002-12-23 23:39:57 +00:00
dwmalone
8ebca93ca1 Add a new ftp mirror in Ireland which offers a service over IPv6.
MFC after:      1 week
Reviewed by:	ume
2002-12-23 23:25:39 +00:00
phk
e3c5e6eea2 Move the declaration of the socket fileops from socketvar.h to file.h.
This allows us to use the new typedefs and removes the needs for a number
of forward struct declarations in socketvar.h
2002-12-23 22:46:47 +00:00
julian
ae0bf50e13 Make it work -current style. 2002-12-23 22:33:08 +00:00
julian
670abbd965 Make ng_fec.c compile again since Sam's changes.
Submitted by:	Hiten Pandya (hiten@unixdaemons.com)
2002-12-23 22:31:24 +00:00
phk
5394bd24f2 Outdent the string rather than use concatenation. 2002-12-23 22:12:17 +00:00
phk
65a5a08ab4 Detediousficate declaration of fileops array members by introducing
typedefs for them.
2002-12-23 21:53:20 +00:00