]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoInitialize the event tailq.
scottl [Wed, 28 Dec 2005 21:18:55 +0000 (21:18 +0000)]
Initialize the event tailq.

Submitted by: Frank Mayhar
PR: kern/90882
MFC After: 1 day

18 years agoAdd support for printing IPSEC protocol stats if the kernel was compiled
kbyanc [Wed, 28 Dec 2005 20:36:55 +0000 (20:36 +0000)]
Add support for printing IPSEC protocol stats if the kernel was compiled
with FAST_IPSEC rather than the KAME IPSEC stack.

Note that the output of "netstat -s -p ipsec" differs depending on which
stack is compiled into the kernel since they each keep different stats.
This delta also adds the "esp", "ah", and "ipcomp" protocol stats, which
are also available when the kernel is compiled with the FAST_IPSEC stack
(e.g. "netstat -s -p esp").

Submitted by: Matt Titus <titus at nttmcl dot com>
MFC after: 3 days

18 years agoAdd missing parens.
glebius [Wed, 28 Dec 2005 18:00:37 +0000 (18:00 +0000)]
Add missing parens.

Submitted by: njl

18 years agoFix the order of the stereo channels (left <-> right).
netchild [Wed, 28 Dec 2005 17:57:36 +0000 (17:57 +0000)]
Fix the order of the stereo channels (left <-> right).

From the PR:
---snip---
 I think I have found the change which reversed the channels.
 Revision 1.44 of emu10k1.c, which added Audigy support, has the line

 emu_wrptr(sc, v->vnum, FXRT, 0xd01c0000);

 replaced with the following lines:

 if (sc->audigy) {
         emu_wrptr(sc, v->vnum, A_FXRT1, v->fxrt1);
         emu_wrptr(sc, v->vnum, A_FXRT2, v->fxrt2);
         emu_wrptr(sc, v->vnum, A_SENDAMOUNTS, 0);
 }
 else
         emu_wrptr(sc, v->vnum, FXRT, v->fxrt1 << 16);

 where v->fxrt1 << 16 == 0xd10c0000

 I don't have Audigy, so I'm not sure if the problem affects Audigy cards
 too. The order of the channels can't be tested by just altering mixer
 settings. Here's a small program to test if the channels are reversed on
 your sound card:

 #include <sys/soundcard.h>
 #include <fcntl.h>
 #include <unistd.h>

 int main(int argc, char **argv)
 {
  int fd = open("/dev/dsp", O_WRONLY), format = AFMT_S16_LE;
   int channels = 2, rate = 22050, i;

   /* 450 Hz sine wave on left channel, right channel silent */
   unsigned char samples[] = {0, 0, 0, 0, 94, 16, 0, 0, 120, 32, 0, 0,
     9, 48, 0, 0, 208, 62, 0, 0, 143, 76, 0, 0, 12, 89, 0, 0, 19, 100,
     0, 0, 117, 109, 0, 0, 11, 117, 0, 0, 182, 122, 0, 0, 92, 126, 0,
     0, 239, 127, 0, 0, 105, 127, 0, 0, 202, 124, 0, 0, 32, 120, 0, 0,
     124, 113, 0, 0, 251, 104, 0, 0, 193, 94, 0, 0, 249, 82, 0, 0,
     212, 69, 0, 0, 138, 55, 0, 0, 85, 40, 0, 0, 120, 24, 0, 0, 51, 8,
     0, 0, 205, 247, 0, 0, 136, 231, 0, 0, 171, 215, 0, 0, 118, 200,
     0, 0, 44, 186, 0, 0, 7, 173, 0, 0, 63, 161, 0, 0, 5, 151, 0, 0,
     132, 142, 0, 0, 224, 135, 0, 0, 54, 131, 0, 0, 151, 128, 0, 0,
     17, 128, 0, 0, 164, 129, 0, 0, 74, 133, 0, 0, 245, 138, 0, 0,
     139, 146, 0, 0, 237, 155, 0, 0, 244, 166, 0, 0, 113, 179, 0, 0,
     48, 193, 0, 0, 247, 207, 0, 0, 136, 223, 0, 0, 162, 239, 0, 0};

   ioctl(fd, SNDCTL_DSP_SETFMT,&format);
   ioctl(fd, SNDCTL_DSP_CHANNELS,&channels);
   ioctl(fd, SNDCTL_DSP_SPEED,&rate);

   for(i=0;i<500;i++)
     write(fd, &samples, sizeof(samples));
   write(fd, &samples, 2); /* swap channels */
   for(i=0;i<500;i++)
     write(fd, &samples, sizeof(samples));

   return 0;
 }

 You should hear a sound on the left channel followed by a sound on the
 right channel. If you hear a sound on the right channel first, the
 channels are reversed.
---snip---

Owners of an audigy card should verify if it DTRT and report back.

Noticed by: Matthias Buelow <mkb@mukappabeta.de>
Submitted by: Juha-Matti Tilli <juhis@nallukka.net>
PR: 72221

18 years agoTrim trailing whitespace.
kan [Wed, 28 Dec 2005 17:13:31 +0000 (17:13 +0000)]
Trim trailing whitespace.

18 years agoo Fix typos in the comments.
maxim [Wed, 28 Dec 2005 15:18:18 +0000 (15:18 +0000)]
o Fix typos in the comments.

Submitted by: Wojciech A. Koszek

18 years agoCheck for IFF_DRV_RUNNING in the interrupt loop.
glebius [Wed, 28 Dec 2005 13:21:05 +0000 (13:21 +0000)]
Check for IFF_DRV_RUNNING in the interrupt loop.

Reported & tested by: Martin P. Hansen <mph lima.dyndns.dk>

18 years agoIn ng_netflow_disconnect() check whether we are working with "iface"
glebius [Wed, 28 Dec 2005 12:56:59 +0000 (12:56 +0000)]
In ng_netflow_disconnect() check whether we are working with "iface"
or with "out" hook, and clear the right pointer.

Reported by: Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>

18 years agoAdd 'juggle', a simple IPC micro-benchmark that uses various IPC types to
rwatson [Wed, 28 Dec 2005 12:42:12 +0000 (12:42 +0000)]
Add 'juggle', a simple IPC micro-benchmark that uses various IPC types to
perform varying number of small IPC operations.  It runs using a single
process and one thread, a single process and two threads, and using
multiple processes.  Critical to its performance measure are the cost and
frequency of context switches, locking overhead, and threading
performance.  The benchmark generates .csv output appropriate for reading
into a spreadsheet to generate summary statistics and perform statistical
tests easily.

18 years agoFurther updates to the Marvell support code.
sos [Wed, 28 Dec 2005 11:55:43 +0000 (11:55 +0000)]
Further updates to the Marvell support code.
Should be reliable enough for actual use by now.

18 years ago When in rev. 1.47 cardbus_alloc_resources() function was moved from
glebius [Wed, 28 Dec 2005 10:15:01 +0000 (10:15 +0000)]
  When in rev. 1.47 cardbus_alloc_resources() function was moved from
cardbus_cis.c to this file, some code was not merged and thus resource
list entries were invalid. They didn't have a resources attached to
them.
  However, the problem was masked for some time later, because newer
resources list entries were added to the head of the list, and
resource_list_find() always returned the first matching resource list
entry. Usually the underlying driver allocated a valid resource and
added it to the head of the list, and invalid one wasn't used.
  In rev. 1.174 of subr_bus.c the sorting of resource list entries was
reversed demasking the problem in cardbus_alloc_resources().
  This commit fixes the problem returning back some code from
cardbus_cis.c, pre-1.49 revisions.

PR: kern/87114
PR: kern/90441
Hardware provided by: Vasily Olekhov <olekhov yandex.ru>
Reviewed by: imp

18 years agoCorrect a typo
delphij [Wed, 28 Dec 2005 10:03:48 +0000 (10:03 +0000)]
Correct a typo

18 years agoA style nit.
glebius [Wed, 28 Dec 2005 09:37:04 +0000 (09:37 +0000)]
A style nit.

18 years agoDocument new support for Marvell chipsets.
brueffer [Wed, 28 Dec 2005 09:35:29 +0000 (09:35 +0000)]
Document new support for Marvell chipsets.

18 years agoTidy up em_resume():
glebius [Wed, 28 Dec 2005 08:58:28 +0000 (08:58 +0000)]
Tidy up em_resume():
  - Don't call em_init_locked() twice.
  - Collapse two if() blocks into one.

18 years agoSomeone buy me a beer. Now.
ade [Wed, 28 Dec 2005 08:41:57 +0000 (08:41 +0000)]
Someone buy me a beer.  Now.

18 years agoCache the tx producer index instead of reading it every time ti_start is
scottl [Wed, 28 Dec 2005 08:36:32 +0000 (08:36 +0000)]
Cache the tx producer index instead of reading it every time ti_start is
called.

18 years agoti(4) also works on sparc64 now.
simon [Wed, 28 Dec 2005 08:35:30 +0000 (08:35 +0000)]
ti(4) also works on sparc64 now.

18 years agoFix a serious regression from the busdma conversion. Check to make sure
scottl [Wed, 28 Dec 2005 08:14:35 +0000 (08:14 +0000)]
Fix a serious regression from the busdma conversion.  Check to make sure
that we don't overrun the tx descriptor ring before actually trying to
overrun it.

18 years agoCast tv_sec to intmax_t and print with %jd in some ifdef'ed code.
trhodes [Wed, 28 Dec 2005 07:08:54 +0000 (07:08 +0000)]
Cast tv_sec to intmax_t and print with %jd in some ifdef'ed code.

18 years agoAdd some sanity checking to the pccard insertion case. Whine if the
imp [Wed, 28 Dec 2005 05:30:09 +0000 (05:30 +0000)]
Add some sanity checking to the pccard insertion case.  Whine if the
bridge tries to tell us about a new card when we have one already in
the socket.

18 years agoUncomment ti(4) as it's now working.
yongari [Wed, 28 Dec 2005 02:59:16 +0000 (02:59 +0000)]
Uncomment ti(4) as it's now working.

18 years agoBring big-endian architecture support for ti(4).
yongari [Wed, 28 Dec 2005 02:57:19 +0000 (02:57 +0000)]
Bring big-endian architecture support for ti(4).
 . remove unnecessay header files after Scott's bus_dma(9) commit.
 . remove global variable tis which was introduced at the time of
   zero_copy(9) changes. The variable tis was not used at all. The
   same applyes to ti_links in softc so axe it.
 . deregister variables.
 . axe ti_vhandle and switch to use explicit register access for
   accessing NIC local memory. Creates three variants of ti_mem to
   read/write NIC local memory(ti_mem_read, ti_mem_write) and clearing
   NIC local memory(ti_mem_zero). This greatly enhances code
   readability and have ti(4) drop using shared memory scheme for
   Tigon 1. As Tigon 1 switched to use explicit register access for Tx,
   axe ti_tx_ring_nic/ti_cmd_ring in softc.(Tigon 2 used to host ring
   scheme which means there is no need to access NIC local memory via
   register access for Tx and NIC would DMA the modified Tx rings into
   its local memory.) [1]
 . introduce new macro TI_EVENT_*/TI_CMD_* to handle NIC envent/command.
   Instead of using bit fields assginment for accessing the event, use
   shift operations to set/get it. [1]
 . add additional check for valid DMA tags in ti_free_dmamaps().
 . add missing bus_dmamap_sync/bus_dmamap_unload in ti_free_*_ring_*.
 . fix locking nits(MTX_RECURSE mutex) and make ti(4) MPSAFE.
 . change data type of ti_rdata_phys to bus_addr_t and don't blindly
   cast to uint32_t.
 . rearrange detach path and make ti(4) survive during device detach.
 . for Tigon 1, use explicit register access for checking Tx descriptors
   in ti_encap()/ti_txeof(). [1]
 . properly call bus_dmamap_sync(9) for updating statistics.
 . remove extra semicolon in ti_encap()
 . rewrite loading MAC address to work on strict-alignment architectures.
 . move TI_RD_OFF macro to if_tireg.h
 . axe ETHER_ALIGN as it's already defined in <net/ethernet.h>.
 . make macros immuine from expansion by adding parenthesis and do-while.
 . remove alpha specific hack as vtophys(9) is no longer used in ti(4)
   after Scott's bus_dma(9) fix.

Reviewed by: scottl
Obtained from: OpenBSD [1]

18 years agoIn realloc(9), determine size of the original block based on
pjd [Wed, 28 Dec 2005 01:53:13 +0000 (01:53 +0000)]
In realloc(9), determine size of the original block based on
UMA_SLAB_MALLOC flag.
In some circumstances (I observed it when I was doing a lot of reallocs)
UMA_SLAB_MALLOC can be set even if us_keg != NULL.

If this is the case we have wonderful, silent data corruption, because less
data is copied to the newly allocated region than should be.

I'm not sure when this bug was introduced, it could be there undetected
for years now, as we don't have a lot of realloc(9) consumers and it was
hard to reproduce it...
...but what I know for sure, is that I don't want to know who introduce
the bug:) It took me two/three days to track it down (of course most of
the time I was looking for the bug in my own code).

18 years agoAdd a hid blacklist quirk.
flz [Tue, 27 Dec 2005 23:35:38 +0000 (23:35 +0000)]
Add a hid blacklist quirk.

PR: usb/80383
Submitted by: Lonnie Mendez <lmendez19@austin.rr.com>
Tested by: Adam Kropelin <akropel1@rochester.rr.com>, thierry, fenner
Approved by: pjd
MFC after: 1 week

18 years agoFix watch address truncation. The address was truncated when it was passed to
pjd [Tue, 27 Dec 2005 23:23:47 +0000 (23:23 +0000)]
Fix watch address truncation. The address was truncated when it was passed to
amd64_set_watch() as 'unsigned int' and 'unsigned int' is 32bit long on amd64.

Even with that fix hardware watchpoint don't work for me on amd64, ie. when
I set the watchpoint and write a byte there, nothing happens.

18 years agoFix another braino, don't remove the X related socket directories
dougb [Tue, 27 Dec 2005 23:22:18 +0000 (23:22 +0000)]
Fix another braino, don't remove the X related socket directories
right after creating them.

Twiddle whitespace while I'm here.

18 years agoMake sure that the prestart routine is run with *start, instead of
dougb [Tue, 27 Dec 2005 23:08:58 +0000 (23:08 +0000)]
Make sure that the prestart routine is run with *start, instead of
just 'start'.

Reminded by: keramida

18 years agoMerge tzdata2005r from vendor branch. Only significant change is to
wollman [Tue, 27 Dec 2005 19:55:21 +0000 (19:55 +0000)]
Merge tzdata2005r from vendor branch.  Only significant change is to
update those Canadian provinces which have announced that they will
follow the new US DST rules.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r153758,
wollman [Tue, 27 Dec 2005 19:52:05 +0000 (19:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r153758,
which included commits to RCS files with non-trunk default branches.

18 years agoNo sooner did I make noises about seeing the last timezone update of
wollman [Tue, 27 Dec 2005 19:52:05 +0000 (19:52 +0000)]
No sooner did I make noises about seeing the last timezone update of
2005 when another one comes out.  This one, even ADO hopes will be the
last of the year.

Obtained from: Arthur Olson, ftp://elsie.nci.nih.gov/pub/tzdata2005r.tar.gz

18 years agoEnsure that we're aligned at leas tto the size of the resource being requested.
imp [Tue, 27 Dec 2005 19:18:11 +0000 (19:18 +0000)]
Ensure that we're aligned at leas tto the size of the resource being requested.
When cbb_debug is on, print the windows that we're mapping.

18 years agonits
imp [Tue, 27 Dec 2005 18:55:21 +0000 (18:55 +0000)]
nits

18 years agoChange the probes in ATA to return a negative value on success.
sos [Tue, 27 Dec 2005 18:22:11 +0000 (18:22 +0000)]
Change the probes in ATA to return a negative value on success.
This allows other driver to take over if needed during probe, and allows
me to distribute new drivers as modules.

18 years agoUpdate the last commit to also take 48Bit access functions.
sos [Tue, 27 Dec 2005 17:13:11 +0000 (17:13 +0000)]
Update the last commit to also take 48Bit access functions.

18 years agoAdd initial support for the Marvell 88SX[56]0[48][01] series of SATA chips.
sos [Tue, 27 Dec 2005 17:09:52 +0000 (17:09 +0000)]
Add initial support for the Marvell 88SX[56]0[48][01] series of SATA chips.

Hardware donated by: Matthew Jacob
Hardware donated by: Y!

18 years agoFix rebuilds of arrays that got stuck.
sos [Tue, 27 Dec 2005 16:49:33 +0000 (16:49 +0000)]
Fix rebuilds of arrays that got stuck.
Misc minor fixes.

Bughunting and initial fixes by Pav@ and Anton.

18 years agoDocument the EOPNOTSUPP returned by hwpmc(4) if a sampling mode PMC
jkoshy [Tue, 27 Dec 2005 15:35:06 +0000 (15:35 +0000)]
Document the EOPNOTSUPP returned by hwpmc(4) if a sampling mode PMC
is requested on a CPU without an APIC.

Requested by: anholt (a while ago)

18 years agoTry to unbreak the tinderbox: Cast a time_t argument to long before printing
stefanf [Tue, 27 Dec 2005 12:33:18 +0000 (12:33 +0000)]
Try to unbreak the tinderbox: Cast a time_t argument to long before printing
it with %ld.

18 years agoUse variable i instead of variable cpus as an index to get correct kseq.
davidxu [Tue, 27 Dec 2005 12:02:03 +0000 (12:02 +0000)]
Use variable i instead of variable cpus as an index to get correct kseq.

18 years agoDocument CTR6() macro.
pjd [Tue, 27 Dec 2005 11:12:51 +0000 (11:12 +0000)]
Document CTR6() macro.

18 years agoAdd \n to log() message.
glebius [Tue, 27 Dec 2005 00:17:11 +0000 (00:17 +0000)]
Add \n to log() message.

Submitted by: Stanislaw Halik <weirdo tehran.lain.pl>

18 years agoFix breakage introduced in the previous commit.
sobomax [Mon, 26 Dec 2005 22:32:52 +0000 (22:32 +0000)]
Fix breakage introduced in the previous commit.

18 years agoFix typo in comment.
cognet [Mon, 26 Dec 2005 22:09:09 +0000 (22:09 +0000)]
Fix typo in comment.

18 years agoRemove kern.elf32.can_exec_dyn sysctl. Instead extend Brandinfo structure
sobomax [Mon, 26 Dec 2005 21:23:57 +0000 (21:23 +0000)]
Remove kern.elf32.can_exec_dyn sysctl. Instead extend Brandinfo structure
with flags bitfield and set BI_CAN_EXEC_DYN flag for all brands that usually
allow executing elf dynamic binaries (aka shared libraries). When it is
requested to execute ET_DYN elf image check if this flag is on after we
know the elf brand allowing execution if so.

PR: kern/87615
Submitted by: Marcin Koziej <creep@desk.pl>

18 years agodocument deftxkey
sam [Mon, 26 Dec 2005 18:15:09 +0000 (18:15 +0000)]
document deftxkey

18 years ago- Plug a memory leak: free up per-cpu sample buffers at module unload time.
jkoshy [Mon, 26 Dec 2005 16:10:00 +0000 (16:10 +0000)]
- Plug a memory leak: free up per-cpu sample buffers at module unload time.
- Correct a few style nits.

18 years agoCorrect some typos.
schweikh [Mon, 26 Dec 2005 16:09:58 +0000 (16:09 +0000)]
Correct some typos.

18 years agoMFi386: revision 1.621
nyan [Mon, 26 Dec 2005 12:46:36 +0000 (12:46 +0000)]
MFi386: revision 1.621

18 years agoAdd simple suspend and resume methods. We call em_stop() on suspend and
glebius [Mon, 26 Dec 2005 10:39:21 +0000 (10:39 +0000)]
Add simple suspend and resume methods. We call em_stop() on suspend and
em_init() on resume. With this change the network is ready right after
resume, without half minute lag.

Tested by: Jacques Garrigue

18 years agoWrap comment lines to be under 80 characters wide.
jkoshy [Mon, 26 Dec 2005 09:27:24 +0000 (09:27 +0000)]
Wrap comment lines to be under 80 characters wide.

MFC after: 3 days

18 years agoMove global variable private_tss into per-cpu area.
davidxu [Mon, 26 Dec 2005 00:07:19 +0000 (00:07 +0000)]
Move global variable private_tss into per-cpu area.

Reviewed by: jhb

18 years agoOnly decrement the max-src-conn counter for tcp connections that reached
mlaier [Sun, 25 Dec 2005 23:52:00 +0000 (23:52 +0000)]
Only decrement the max-src-conn counter for tcp connections that reached
"established" state.

Similar to OpenBSD's rev. 1.499 by joel but not breaking ABI.

Obtained from: OpenBSD (with changes)
Reported by: Bruno Afonso
MFC after: 3 days
X-MFC: together with local_flags

18 years agoWe will not be responsible for damage to equipment, your ego, county wide
wilko [Sun, 25 Dec 2005 23:29:59 +0000 (23:29 +0000)]
We will not be responsible for damage to equipment, your ego, county wide
power outages, spontaneously generated mini (or larger) black holes,
planetary disruptions, or personal injury or worse that may result from the
use of this material.
                -- taken from Samuel M. Goldwasser's
                   Sam's Strobe FAQ Notes on the Troubleshooting
                   and Repair of Electronic Flash Units and Strobe Lights

18 years agoadd a sysctl to turn debug msgs on/off when built with IFMEDIA_DEBUG
sam [Sun, 25 Dec 2005 23:28:23 +0000 (23:28 +0000)]
add a sysctl to turn debug msgs on/off when built with IFMEDIA_DEBUG

18 years agoFix build after timeval.tv_sec changed from long to time_t.
mlaier [Sun, 25 Dec 2005 22:57:08 +0000 (22:57 +0000)]
Fix build after timeval.tv_sec changed from long to time_t.

18 years agoAdd an example for WEP.
wilko [Sun, 25 Dec 2005 22:09:17 +0000 (22:09 +0000)]
Add an example for WEP.

OK-ed by: sam

18 years agoKill the BUGS section, and remove a similar line noted under -T. As far
trhodes [Sun, 25 Dec 2005 10:36:30 +0000 (10:36 +0000)]
Kill the BUGS section, and remove a similar line noted under -T.  As far
as I know, Sun's NFS support works with TCP just fine.  This is even
hinted at in the PR.

PR: 71782

18 years agoWhen generating profiles (-g) warn about shared objects that were
jkoshy [Sun, 25 Dec 2005 05:11:29 +0000 (05:11 +0000)]
When generating profiles (-g) warn about shared objects that were
not found.

18 years agoSuspend and resume support has been added.
ariff [Sun, 25 Dec 2005 00:47:25 +0000 (00:47 +0000)]
Suspend and resume support has been added.

18 years agoAdd suspend and resume support.
ariff [Sun, 25 Dec 2005 00:43:03 +0000 (00:43 +0000)]
Add suspend and resume support.

18 years agoAdd a64l(), l64a(), and l64a_r() XSI extentions. These functions convert
trhodes [Sat, 24 Dec 2005 22:37:59 +0000 (22:37 +0000)]
Add a64l(), l64a(), and l64a_r() XSI extentions.  These functions convert
between a 32-bit integer and a radix-64 ASCII string.  The l64a_r() function
is a NetBSD addition.

PR: 51209 (based on submission, but very different)
Reviewed by: bde, ru

18 years agoMake tv_sec a time_t on all platforms but alpha. Brings us more in line with
trhodes [Sat, 24 Dec 2005 22:22:17 +0000 (22:22 +0000)]
Make tv_sec a time_t on all platforms but alpha.  Brings us more in line with
POSIX.  This also makes the struct correct we ever implement an i386-time64
architecture.  Not that we need too.

Reviewed by: imp, brooks
Approved by: njl (acpica), des (no objects, touches procfs)
Tested with: make universe

18 years ago"A life lived in fear is a life half lived"
wilko [Sat, 24 Dec 2005 17:55:33 +0000 (17:55 +0000)]
"A life lived in fear is a life half lived"

18 years ago- Don't print an errno string when reporting dropped samples.
jkoshy [Sat, 24 Dec 2005 17:00:33 +0000 (17:00 +0000)]
- Don't print an errno string when reporting dropped samples.
- Prevent an unsuccessful exec() of a target program from triggering
  a false 'dropped samples' message.

18 years agoMake lookups for relocations from old unversioned binaries return
kan [Sat, 24 Dec 2005 15:37:30 +0000 (15:37 +0000)]
Make lookups for relocations from old unversioned binaries return
oldest versioned symbol available. Do not accept hidden symbols for
all other versions.

Use "<obj->path>: <error message>" for all error messages in new
functions to make them more consistent.

18 years agoForward-declare struct trapframe to allow the aic module to compile.
grehan [Sat, 24 Dec 2005 08:27:45 +0000 (08:27 +0000)]
Forward-declare struct trapframe to allow the aic module to compile.

18 years agoAdd missing mount.h include to VFS_LOCK_GIANT() man page.
rwatson [Sat, 24 Dec 2005 08:25:15 +0000 (08:25 +0000)]
Add missing mount.h include to VFS_LOCK_GIANT() man page.

Submitted by: Wojciech A. Koszek <dunstan at freebsd dot czest dot pl>
MFC after: 3 days

18 years agoo NetBSD 3.0 added.
maxim [Sat, 24 Dec 2005 07:30:27 +0000 (07:30 +0000)]
o NetBSD 3.0 added.

18 years agoMaintain the lock on the vnode for most of exec_elfN_imgact().
alc [Sat, 24 Dec 2005 04:57:50 +0000 (04:57 +0000)]
Maintain the lock on the vnode for most of exec_elfN_imgact().
Specifically, it is required for the I/O that may be performed by
elfN_load_section().

Avoid an obscure deadlock in the a.out, elf, and gzip image
activators.  Add a comment describing why the deadlock does not occur
in the common case and how it might occur in less usual circumstances.

Eliminate an unused variable from exec_aout_imgact().

In collaboration with: tegge

18 years agoAvoid kernel panic when attaching a process which may not be stopped
davidxu [Sat, 24 Dec 2005 02:59:29 +0000 (02:59 +0000)]
Avoid kernel panic when attaching a process which may not be stopped
by debugger, e.g process is dumping core. Only access p_xthread if
P_STOPPED_TRACE is set, this means thread is ready to exchange signal
with debugger, print a warning if P_STOPPED_TRACE is not set due to
some bugs in other code, if there is.

The patch has been tested by Anish Mistry mistry.7 at osu dot edu, and
is slightly adjusted.

18 years agoBuild ed on amd64. The pci attachment works with qemu on amd64.
imp [Fri, 23 Dec 2005 21:54:56 +0000 (21:54 +0000)]
Build ed on amd64.  The pci attachment works with qemu on amd64.

I'm holding off on building on sparc64 and others because I don't know
if this driver has had all the inb/outb removed (I think it has).  Nor
do I know if there are byte ordering issues.  There are very few word
operations on an NE2000, but I've not had time to audit them all.

Suggested by: Daniel O'Connor

18 years ago - Improve the INKERNEL macro such that it can no longer give false positives.
jeff [Fri, 23 Dec 2005 21:33:55 +0000 (21:33 +0000)]
 - Improve the INKERNEL macro such that it can no longer give false positives.
   This fixes the stack(9) functionality.

Submitted by: Antoine Brodin <antoine.brodin@laposte.net>

18 years ago - Remove and unused include.
jeff [Fri, 23 Dec 2005 21:32:40 +0000 (21:32 +0000)]
 - Remove and unused include.

Submitted by: Antoine Brodin <antoine.brodin@laposte.net>

18 years agoRegen.
ru [Fri, 23 Dec 2005 20:06:50 +0000 (20:06 +0000)]
Regen.

18 years agoFix build.
ru [Fri, 23 Dec 2005 20:06:14 +0000 (20:06 +0000)]
Fix build.

18 years agoImplement an upper limit for packets per second sent by node.
glebius [Fri, 23 Dec 2005 19:14:38 +0000 (19:14 +0000)]
Implement an upper limit for packets per second sent by node.

18 years agoTypo.
delphij [Fri, 23 Dec 2005 15:50:57 +0000 (15:50 +0000)]
Typo.

18 years agoBump .Dd before I get told off.
ceri [Fri, 23 Dec 2005 15:33:31 +0000 (15:33 +0000)]
Bump .Dd before I get told off.

18 years agoCommands like gmirror, graid3, ... and others which use dlopen() to load
ceri [Fri, 23 Dec 2005 15:31:37 +0000 (15:31 +0000)]
Commands like gmirror, graid3, ... and others which use dlopen() to load
classes from say, /lib/geom, cannot be statically linked completely.
Moreover, those shared objects may require other shared objects (i.e.
 for geom, libraries like -lmd, -lcrypto).

The libs_so extension to crunchgen fixes this by allowing some libraries
to be linked in dynamically.  This requires that a copy of rtld and the
shared libraries be made available to the crunched binary, and so is not
suitable for all environments.  Crunchgen configurations which do not
use the 'libs_so' keyword are unaffected and produce identical binaries
with and without this commit.

Approved by: murray (mentor, in spirit), jhb
In collaboration with: Adrian Steinmann <ast at marabu dot ch>
MFC After: 6 weeks

18 years agoRemove debugging statement that slipped into lone of the previous commits
kan [Fri, 23 Dec 2005 15:30:53 +0000 (15:30 +0000)]
Remove debugging statement that slipped into lone of the previous commits
unintentionally.

18 years agoMark the return address of the call to ast() in the generic trap
grehan [Fri, 23 Dec 2005 13:05:27 +0000 (13:05 +0000)]
Mark the return address of the call to ast() in the generic trap
handling code so the stack trace unwinders don't start trying to
go into user-space.

Found by trying to create core dumps with a KTR_COMPILE/KTR_GEOM
kernel, which results in a stack_save() call in the ast() coredump
path - this created a panic, and then calling 'trace' in ddb resulted
in the black screen of death after printing out most of the backtrace.

18 years agoAdd abort2() prototype
phk [Fri, 23 Dec 2005 12:28:10 +0000 (12:28 +0000)]
Add abort2() prototype

18 years agoAdd abort2 manual page.
phk [Fri, 23 Dec 2005 12:27:42 +0000 (12:27 +0000)]
Add abort2 manual page.

Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
Edited by: phk

18 years agoFix build error.
nyan [Fri, 23 Dec 2005 12:14:55 +0000 (12:14 +0000)]
Fix build error.

18 years agoRegenerate sysent with new abort2 system call.
phk [Fri, 23 Dec 2005 11:58:42 +0000 (11:58 +0000)]
Regenerate sysent with new abort2 system call.

Implement abort2(const char *reason, int narg, void **args);

Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>

18 years agoAdd missing 455-462 syscalls as unimplemented
phk [Fri, 23 Dec 2005 11:56:39 +0000 (11:56 +0000)]
Add missing 455-462 syscalls as unimplemented

18 years agoAdd abort2() systemcall.
phk [Fri, 23 Dec 2005 11:54:11 +0000 (11:54 +0000)]
Add abort2() systemcall.

18 years agoMake sbuf_copyin() return the number of bytes copied on success.
phk [Fri, 23 Dec 2005 11:49:53 +0000 (11:49 +0000)]
Make sbuf_copyin() return the number of bytes copied on success.

Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>

18 years agoCreate the taskqueue_fast handler with INTR_MPSAFE so that it doesn't run
scottl [Fri, 23 Dec 2005 06:18:33 +0000 (06:18 +0000)]
Create the taskqueue_fast handler with INTR_MPSAFE so that it doesn't run
with Giant.

MFC After: 3 days

18 years agoAdd the example that green@ used in his commit log for the dump to a
imp [Fri, 23 Dec 2005 02:18:01 +0000 (02:18 +0000)]
Add the example that green@ used in his commit log for the dump to a
pipe functionality.  I've done a cvs log main.c about a dozen times
now.  Maybe others will find this useful.

18 years agoUse device_printf() and if_printf() rather than printf() and axe
yongari [Fri, 23 Dec 2005 02:04:41 +0000 (02:04 +0000)]
Use device_printf() and if_printf() rather than printf() and axe
bge_unit from the softc.

Requested by: marius

18 years agoMerge tzdata2005q from vendor branch. Data changes for the following
wollman [Thu, 22 Dec 2005 23:40:21 +0000 (23:40 +0000)]
Merge tzdata2005q from vendor branch.  Data changes for the following
locales: Azerbaijan, Brazil, Cuba, Gaza, Georgia, Jordan, Kirgizstan,
Nicaragua, Uruguay.

18 years agoIndiana still hasn't sorted itself out, and probably won't before the
wollman [Thu, 22 Dec 2005 23:34:50 +0000 (23:34 +0000)]
Indiana still hasn't sorted itself out, and probably won't before the
end of the year, so import what I hope to be the last database update
for 2005.

Obtained from: ftp://elsie.nci.nih.gov/pub/tzdata2005q.tar.gz

18 years agoThis commit was generated by cvs2svn to compensate for changes in r153667,
wollman [Thu, 22 Dec 2005 23:34:50 +0000 (23:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r153667,
which included commits to RCS files with non-trunk default branches.

18 years agoTweak how the MD code calls the fooclock() methods some. Instead of
jhb [Thu, 22 Dec 2005 22:16:09 +0000 (22:16 +0000)]
Tweak how the MD code calls the fooclock() methods some.  Instead of
passing a pointer to an opaque clockframe structure and requiring the
MD code to supply CLKF_FOO() macros to extract needed values out of the
opaque structure, just pass the needed values directly.  In practice this
means passing the pair (usermode, pc) to hardclock() and profclock() and
passing the boolean (usermode) to hardclock_cpu() and hardclock_process().
Other details:
- Axe clockframe and CLKF_FOO() macros on all architectures.  Basically,
  all the archs were taking a trapframe and converting it into a clockframe
  one way or another.  Now they can just extract the PC and usermode values
  directly out of the trapframe and pass it to fooclock().
- Renamed hardclock_process() to hardclock_cpu() as the latter is more
  accurate.
- On Alpha, we now run profclock() at hz (profhz == hz) rather than at
  the slower stathz.
- On Alpha, for the TurboLaser machines that don't have an 8254
  timecounter, call hardclock() directly.  This removes an extra
  conditional check from every clock interrupt on Alpha on the BSP.
  There is probably room for even further pruning here by changing Alpha
  to use the simplified timecounter we use on x86 with the lapic timer
  since we don't get interrupts from the 8254 on Alpha anyway.
- On x86, clkintr() shouldn't ever be called now unless using_lapic_timer
  is false, so add a KASSERT() to that affect and remove a condition
  to slightly optimize the non-lapic case.
- Change prototypeof  arm_handler_execute() so that it's first arg is a
  trapframe pointer rather than a void pointer for clarity.
- Use KCOUNT macro in profclock() to lookup the kernel profiling bucket.

Tested on: alpha, amd64, arm, i386, ia64, sparc64
Reviewed by: bde (mostly)

18 years agobge(4) is working on sparc64 now.
brueffer [Thu, 22 Dec 2005 21:46:05 +0000 (21:46 +0000)]
bge(4) is working on sparc64 now.

18 years agoAdd entry for /rescue/nextboot.sh since it was renamed to /rescue/nextboot.
jhb [Thu, 22 Dec 2005 21:16:06 +0000 (21:16 +0000)]
Add entry for /rescue/nextboot.sh since it was renamed to /rescue/nextboot.

18 years agoInitialize object dagmembers list before checking version dependencies.
kan [Thu, 22 Dec 2005 16:42:38 +0000 (16:42 +0000)]
Initialize object dagmembers list before checking version dependencies.

18 years agoReturn BUS_PROBE_GENERIC rather than 0 in the probe routine.
jhb [Thu, 22 Dec 2005 16:25:22 +0000 (16:25 +0000)]
Return BUS_PROBE_GENERIC rather than 0 in the probe routine.

Requested by: marius