]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoMarkup, wording and capitalization fixes
Christian Brueffer [Wed, 13 Aug 2003 12:44:45 +0000 (12:44 +0000)]
Markup, wording and capitalization fixes

PR: 55441
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
MFC after: 3 days

21 years agoGrammar and spelling fixes
Christian Brueffer [Wed, 13 Aug 2003 12:39:44 +0000 (12:39 +0000)]
Grammar and spelling fixes

PR: 55442
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
MFC after: 3 days

21 years agoReplace a panic with a .1Hz retry loop.
Poul-Henning Kamp [Wed, 13 Aug 2003 12:35:25 +0000 (12:35 +0000)]
Replace a panic with a .1Hz retry loop.
Not a perfect solution, but far cheaper than one.

21 years agoGrammar and spelling fixes
Christian Brueffer [Wed, 13 Aug 2003 12:34:54 +0000 (12:34 +0000)]
Grammar and spelling fixes

PR: 55443
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>

21 years agoFix typo
Christian Brueffer [Wed, 13 Aug 2003 12:20:33 +0000 (12:20 +0000)]
Fix typo

PR: 55480
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
MFC after: 3 days

21 years agoForced commit to record the PR for the previous commit.
Hartmut Brandt [Wed, 13 Aug 2003 11:02:37 +0000 (11:02 +0000)]
Forced commit to record the PR for the previous commit.

Remembered by: maxim

PR: bin/45967

21 years agoImplement what has been documented for a long time: make -debug switch
Hartmut Brandt [Wed, 13 Aug 2003 10:56:40 +0000 (10:56 +0000)]
Implement what has been documented for a long time: make -debug switch
on socket debugging.

Okay'ed by: markm

21 years agoThe syncache has made use of TCPDEBUG problematic, because the SYN
Hartmut Brandt [Wed, 13 Aug 2003 10:20:57 +0000 (10:20 +0000)]
The syncache has made use of TCPDEBUG problematic, because the SYN
segments are lost for the application. This broke, for example,
ports/benchmarks/dbs which needs the SYN segment to filter the
contents of the trace buffer for the connection it is interested in.

This patch makes the SYN segments available again. Unfortunately they
are now associated with the listening socket instead of the new one, so
a change to applications is required, but without this patch it wouldn't
work altogether.

PR: kern/45966

21 years agoThe tcp_trace call needs the length of the header. Unfortunately the
Hartmut Brandt [Wed, 13 Aug 2003 08:50:42 +0000 (08:50 +0000)]
The tcp_trace call needs the length of the header. Unfortunately the
code has rotten a bit so that the header length is not correct at
the point when tcp_trace is called. Temporarily compute the correct
value before the call and restore the old value after. This makes
ports/benchmarks/dbs to almost work.

This is a NOP unless you compile with TCPDEBUG.

21 years agoA number of patches in the last years have created new return paths
Hartmut Brandt [Wed, 13 Aug 2003 08:46:54 +0000 (08:46 +0000)]
A number of patches in the last years have created new return paths
in tcp_input that leave the function before hitting the tcp_trace
function call for the TCPDEBUG option. This has made TCPDEBUG mostly
useless (and tools like ports/benchmarks/dbs not working). Add
tcp_trace calls to the return paths that could be identified in this
maze.

This is a NOP unless you compile with TCPDEBUG.

21 years agoMake this WARNS=6 clean by just constifying two local char pointers.
Hartmut Brandt [Wed, 13 Aug 2003 07:51:06 +0000 (07:51 +0000)]
Make this WARNS=6 clean by just constifying two local char pointers.

21 years agoPut all the argument-less options together in the synopsis as required
Hartmut Brandt [Wed, 13 Aug 2003 07:43:08 +0000 (07:43 +0000)]
Put all the argument-less options together in the synopsis as required
by style(9).

21 years agoImplement two command line options that allow one to change the
Hartmut Brandt [Wed, 13 Aug 2003 07:42:07 +0000 (07:42 +0000)]
Implement two command line options that allow one to change the
file descriptors that are used for input and output. That allows
one, for example, to use nghook to bi-directionally pipe the
input and output into/from another non-netgraph-aware program.

21 years agoImplement the nwchan keyword that has been in the man page, but was
Hartmut Brandt [Wed, 13 Aug 2003 07:35:07 +0000 (07:35 +0000)]
Implement the nwchan keyword that has been in the man page, but was
not implemented. This is just handy if you want to ddb the address
some process is waiting on.

21 years agoA small statistics tool for gauging the statistical significance
Poul-Henning Kamp [Wed, 13 Aug 2003 07:21:54 +0000 (07:21 +0000)]
A small statistics tool for gauging the statistical significance
of data from benchmarks etc.  Implements "Student's t" for various
confidence levels, defaults to 95%.

If your benchmarks are not significant at the 95% confidence level,
we don't want to hear about it.

21 years agoIn case we encounter a zero sectorsize provider in g_io_check(), fail
Poul-Henning Kamp [Wed, 13 Aug 2003 06:42:56 +0000 (06:42 +0000)]
In case we encounter a zero sectorsize provider in g_io_check(), fail
the request with a printf rather than a divide by zero error.

21 years agoDon't run verify directly as that would require the perl script to
Marcel Moolenaar [Wed, 13 Aug 2003 03:59:18 +0000 (03:59 +0000)]
Don't run verify directly as that would require the perl script to
have execute permissions. Run "perl verify" instead. Replace all
occurences of the hardcoding of ./verify with $(VERIFY) to allow
it to be overridden as well.

21 years agoDon't use VM_MIN_KERNEL_ADDRESS to check if the faulting address is
Marcel Moolenaar [Wed, 13 Aug 2003 03:20:10 +0000 (03:20 +0000)]
Don't use VM_MIN_KERNEL_ADDRESS to check if the faulting address is
in user space or kernel space. VM_MIN_KERNEL_ADDRESS starts after the
gateway page, which means that improper memory accesses to the gateway
page while in user mode would panic the kernel. Use VM_MAX_ADDRESS
instead. It ends before the gateway page. The difference between
VM_MIN_KERNEL_ADDRESS and VM_MAX_ADDRESS is exactly the gateway page.

21 years agoReduce the size of the vm map (and by inclusion the vm space) on 64-bit
Alan Cox [Wed, 13 Aug 2003 03:13:22 +0000 (03:13 +0000)]
Reduce the size of the vm map (and by inclusion the vm space) on 64-bit
architectures by moving a field within the structure.

21 years agoPut an instruction group break between the move to ar.rnat and the
Marcel Moolenaar [Wed, 13 Aug 2003 02:49:50 +0000 (02:49 +0000)]
Put an instruction group break between the move to ar.rnat and the
move to ar.rsc. The RSE must be in enforced lazy mode when writing
to RSE modifyable registers. In this case we restore the RSE NaT
collection register ar.rnat. I have seen 2 general exception faults
on pluto1 now that indicate that the move to ar.rsc has already
happened prior to the move to ar.rnat, meaning that the RSE is not
in enforced lazy mode anymore. The ia64 dependency and instruction
ordering rules seem to allow having both registers written to in
the same instruction group, provided ar.rsc is written to later than
ar.rnat (based on the ordering semantics). It appears that we may
be pushing our luck. For now, put them in seperate cycles (by means
of the instruction group break). If we ever get a general exception
fault on the move to ar.rnat again, we have definite proof that
something else is fishy.

21 years agoAlways set tcb for bound thread, and switch tcb for M:N thread at correct
David Xu [Wed, 13 Aug 2003 01:49:07 +0000 (01:49 +0000)]
Always set tcb for bound thread, and switch tcb for M:N thread at correct
time.

21 years agoImply NOLIBC_R for PowerPC.
David E. O'Brien [Wed, 13 Aug 2003 00:13:37 +0000 (00:13 +0000)]
Imply NOLIBC_R for PowerPC.

21 years agoExpand inline the relevant parts of src/COPYRIGHT for Matt Dillon's
Warner Losh [Tue, 12 Aug 2003 23:24:05 +0000 (23:24 +0000)]
Expand inline the relevant parts of src/COPYRIGHT for Matt Dillon's
copyrighted files.

Approved by: Matt Dillon

21 years agoMove the stop_dhcp in start_dhcp again before the
Martin Blapp [Tue, 12 Aug 2003 22:44:48 +0000 (22:44 +0000)]
Move the stop_dhcp in start_dhcp again before the
delay. It seems that dhclient really needs the time
to get killed.

21 years agoOops.. Some debugging code snuck in here.
Paul Saab [Tue, 12 Aug 2003 22:33:49 +0000 (22:33 +0000)]
Oops.. Some debugging code snuck in here.
Requeue the request if the controller is busy.

21 years agoRemove the dhclient.${interface}.pid defines. They are now
Martin Blapp [Tue, 12 Aug 2003 22:27:08 +0000 (22:27 +0000)]
Remove the dhclient.${interface}.pid defines. They are now
obsolete. A working dhclient with OMAPI will also not need
this.

21 years agoDon't forget to set kcb_self.
David Xu [Tue, 12 Aug 2003 22:13:06 +0000 (22:13 +0000)]
Don't forget to set kcb_self.

21 years agoRemove extra space.
Maxime Henrion [Tue, 12 Aug 2003 20:34:31 +0000 (20:34 +0000)]
Remove extra space.

21 years agoMake this working with two or more pccards and with more than
Martin Blapp [Tue, 12 Aug 2003 20:22:44 +0000 (20:22 +0000)]
Make this working with two or more pccards and with more than
one internal device. Don't call the startup procedure again if
we already use start.

Support a manually started dhclient and keep its configured
interfaces after pccard removal.

Make pccard_ether working in single-user mode without /usr mounted.

21 years agoFixup comment.
John Baldwin [Tue, 12 Aug 2003 20:20:23 +0000 (20:20 +0000)]
Fixup comment.

21 years agoReduce the size of the vm object on 64-bit architectures by moving
Alan Cox [Tue, 12 Aug 2003 20:10:32 +0000 (20:10 +0000)]
Reduce the size of the vm object on 64-bit architectures by moving
a field within the structure.

21 years agoAdd a '-M mask' option so that users can have different
Tom Rhodes [Tue, 12 Aug 2003 20:06:56 +0000 (20:06 +0000)]
Add a '-M mask' option so that users can have different
masks for files and directories.  This should make some
of the Midnight Commander users happy.

Remove an extra ')' in the manual page.

PR: 35699
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> (original version)
Tested by: simon

21 years agoCorrect a grammatical error.
Ceri Davies [Tue, 12 Aug 2003 20:01:10 +0000 (20:01 +0000)]
Correct a grammatical error.

21 years ago- Convert Alpha over to the new calling conventions for cpu_throw() and
John Baldwin [Tue, 12 Aug 2003 19:33:36 +0000 (19:33 +0000)]
- Convert Alpha over to the new calling conventions for cpu_throw() and
  cpu_switch() where both the old and new threads are passed in as
  arguments.  Only powerpc uses the old conventions now.
- Update comments in the Alpha swtch.s to reflect KSE changes.

Tested by: obrien, marcel

21 years agoSupport EINPROGRESS and properly deal with 64bit physical addressing.
Paul Saab [Tue, 12 Aug 2003 17:55:53 +0000 (17:55 +0000)]
Support EINPROGRESS and properly deal with 64bit physical addressing.

21 years agoHalted CPU's should not accumulate time.
Paul Saab [Tue, 12 Aug 2003 17:01:10 +0000 (17:01 +0000)]
Halted CPU's should not accumulate time.

Reviewed by: jhb

21 years agomalloc() may return NULL.
Hajimu UMEMOTO [Tue, 12 Aug 2003 16:58:32 +0000 (16:58 +0000)]
malloc() may return NULL.

Obtained from: KAME
MFC after: 1 week

21 years agoFix typo
Martin Blapp [Tue, 12 Aug 2003 15:15:34 +0000 (15:15 +0000)]
Fix typo

21 years ago- No need to bzero() the softc structure.
Maxime Henrion [Tue, 12 Aug 2003 14:55:12 +0000 (14:55 +0000)]
- No need to bzero() the softc structure.
- Use BUS_DMA_ZERO where appropriate.

21 years agoRemove two useless bzero() calls.
Maxime Henrion [Tue, 12 Aug 2003 14:51:18 +0000 (14:51 +0000)]
Remove two useless bzero() calls.

Reviewed by: cognet

21 years agoBuild the atmconfig utility into rescue.
Hartmut Brandt [Tue, 12 Aug 2003 14:33:48 +0000 (14:33 +0000)]
Build the atmconfig utility into rescue.

21 years agoCreate a directory for ATM documentation and help files.
Hartmut Brandt [Tue, 12 Aug 2003 14:26:57 +0000 (14:26 +0000)]
Create a directory for ATM documentation and help files.

21 years agoAdd a program for configuration of the ATM drivers and the IP over ATM
Hartmut Brandt [Tue, 12 Aug 2003 14:25:57 +0000 (14:25 +0000)]
Add a program for configuration of the ATM drivers and the IP over ATM
stuff. This utility allows inspection of the ATM characteristics,
the PHY layer, including statistics of both, the retrival of the
list of currently open channels and also allows access to utopia(4).

21 years agoChange the code that enables/disables the ATM channel to use the
Hartmut Brandt [Tue, 12 Aug 2003 14:20:32 +0000 (14:20 +0000)]
Change the code that enables/disables the ATM channel to use the
new ATMIOCOPENVCC/CLOSEVCC. This allows us to not only use UBR channels
for IP over ATM, but also CBR, VBR and ABR. Change the format of the
link layer address to specify the channel characteristics. The old
format is still supported and opens UBR channels.

21 years agodb_get_value uses a local buffer to first fetch all the bytes of a
Hartmut Brandt [Tue, 12 Aug 2003 13:24:21 +0000 (13:24 +0000)]
db_get_value uses a local buffer to first fetch all the bytes of a
integer value and then to construct the integer from it. This buffer
was sizeof(int) bytes long, which was fine until the (undocumented) 'g'
modifier for 8-byte integers was introduced. Change this to sizeof(uint64_t).

21 years agoValidate number of iso. DMA channels.
Hidetoshi Shimokawa [Tue, 12 Aug 2003 13:01:27 +0000 (13:01 +0000)]
Validate number of iso. DMA channels.

21 years agoAdd a overhaul of the soundchip initialization for the MSP34xx chipsets
Alexander Langer [Tue, 12 Aug 2003 09:45:34 +0000 (09:45 +0000)]
Add a overhaul of the soundchip initialization for the MSP34xx chipsets
found only many tv-cards.

We currently use more ore less evil hacks (slow_msp_audio sysctl) to
configure the various variants of these chips in order to have
stereo autodetection work.  Nevertheless, this doesn't always work
even though it _should_, according to the specs.
This is, for example, the case for some popular Hauppauge models sold
sold in Germany.

However, the Linux driver always worked for me and others.  Looking at
the sourcecode you will find that the linux-driver uses a very much
enhanced approach to program the various msp34xx chipset variants,
which is also found in the specs for these chips.

This is a port of the Linux MSP34xx code, written by Gerd Knorr
<kraxel@bytesex.org>, who agreed to re-release his code under a
BSD license for this port.

A new config option "BKTR_NEW_MSP34XX_DRIVER" is added, which is required
to enable the new driver.  Otherwise the old code is used.

The msp34xx.c file is diff-reduced to the linux-driver to make later
modifications easier, thus it doesn't follow style(9) in most cases.

Approved by: roger (committing this, no time to test/review),
keichii (code review)

21 years agoExtend identifycpu():
Marcel Moolenaar [Tue, 12 Aug 2003 08:10:16 +0000 (08:10 +0000)]
Extend identifycpu():
o  Differentiate between CPU family and CPU model. There are multiple
   Itanium 2 models and it's nice to differentiate between them.
o  Seperately export the CPU family and CPU model with sysctl.
o  Merced is the only model in the Itanium family.
o  Add Madison to the Itanium 2 family. We already knew about McKinley.
o  Print the CPU family between parenthesis, like we do with the i386
   CPU class.

My prototype now identifies itself as:
CPU: Merced (800.03-Mhz Itanium)

pluto1 and pluto2 will eventually identify themselves as:
CPU: McKinley (900.00-Mhz Itanium 2)

21 years agoCorrectly set current tcb. This fixes some IA64/KSE problems.
David Xu [Tue, 12 Aug 2003 08:01:34 +0000 (08:01 +0000)]
Correctly set current tcb. This fixes some IA64/KSE problems.

Reviewed by: deischen, julian

21 years agoFix the busdma support in twe to support EINPROGRESS and enable it for
Paul Saab [Tue, 12 Aug 2003 06:38:55 +0000 (06:38 +0000)]
Fix the busdma support in twe to support EINPROGRESS and enable it for
use with PAE kernels.

21 years agoAdd support for the Broadcom BCM5901 and BCM5901 rev A2 chips.
Bill Paul [Tue, 12 Aug 2003 05:18:51 +0000 (05:18 +0000)]
Add support for the Broadcom BCM5901 and BCM5901 rev A2 chips.
These are 10/100 only NICs found on the IBM Thinkpad R40E and
G40. These seem to be based on the BCM5705 MAC but with a PHY
that doesn't support 1000Mbps modes.

Submitted by: Igor Sviridov <sia@nest.org>

21 years agoThis commit was generated by cvs2svn to compensate for changes in r118812,
Nate Lawson [Tue, 12 Aug 2003 04:56:45 +0000 (04:56 +0000)]
This commit was generated by cvs2svn to compensate for changes in r118812,
which included commits to RCS files with non-trunk default branches.

21 years agoFix a few more s/UINT32/ACPI_SIZE issues. iasl and acpidb now build on
Nate Lawson [Tue, 12 Aug 2003 04:56:45 +0000 (04:56 +0000)]
Fix a few more s/UINT32/ACPI_SIZE issues.  iasl and acpidb now build on
ia64.

Tested on: pluto2
Pointed out by: tinderbox

21 years agoCleanup prototypes in cpu.h, including fswintrberr and any references
Marcel Moolenaar [Tue, 12 Aug 2003 03:51:53 +0000 (03:51 +0000)]
Cleanup prototypes in cpu.h, including fswintrberr and any references
to it. Sort the remaining prototypes in cpu.h.

No functional change.

21 years agoNew release note: twe(4) 3ware generic API (+MFC).
Bruce A. Mah [Tue, 12 Aug 2003 00:51:28 +0000 (00:51 +0000)]
New release note:  twe(4) 3ware generic API (+MFC).

MFC noted:  USB/Firewire quirks.

21 years agoEnable dc(4) entries for sparc64. Add fatm(4), hatm(4), patm(4)
Bruce A. Mah [Tue, 12 Aug 2003 00:14:49 +0000 (00:14 +0000)]
Enable dc(4) entries for sparc64.  Add fatm(4), hatm(4), patm(4)
entries as appropriate.

21 years agoNew release notes: swap_pager changes, ng_atmpif(4).
Bruce A. Mah [Tue, 12 Aug 2003 00:12:52 +0000 (00:12 +0000)]
New release notes:  swap_pager changes, ng_atmpif(4).

Modified release notes:  locale(1) -m, -march=pentium4 re-enabled.

21 years agoSlightly rearrange some items in the kernel section (but don't change
Bruce A. Mah [Mon, 11 Aug 2003 23:08:35 +0000 (23:08 +0000)]
Slightly rearrange some items in the kernel section (but don't change
their content).

21 years ago- Use the correct boot/boot1 and boot/loader files.
Ruslan Ermilov [Mon, 11 Aug 2003 22:27:43 +0000 (22:27 +0000)]
- Use the correct boot/boot1 and boot/loader files.
- Use the newfs command similar to that in doFS.sh.

Reviewed by: jake, jhb

21 years agoPipespace() no longer requires Giant.
Alan Cox [Mon, 11 Aug 2003 22:23:25 +0000 (22:23 +0000)]
Pipespace() no longer requires Giant.

21 years agoCleanup and style(9) fixes. No functional change.
Marcel Moolenaar [Mon, 11 Aug 2003 21:25:19 +0000 (21:25 +0000)]
Cleanup and style(9) fixes. No functional change.

21 years agoImprove the handling dhcp handling of pccard_ether.
Martin Blapp [Mon, 11 Aug 2003 20:32:00 +0000 (20:32 +0000)]
Improve the handling dhcp handling of pccard_ether.

There are now many configurations which have a NIC on board, and
pccard slots. If a dhclient is running on the internal nic, the
Improve the handling dhcp handling of pccard_ether.

Improve the dhcp handling of pccard_ether.

There are now many configurations which have a NIC on board and
Improve the dhcp handling of pccard_ether.

There are now many configurations which have a NIC on board and
cardbus slots too. If a dhclient was already running on the internal
NIC, the user was forced to kill a running dhclient manually.

If now a pccard is included at startup time, /etc/rc.d/dhclient
start does include it into the startup list for dhcp devices.
That means you can now do dhcp on the internal and the pccard devices
at the same time. If the card is plugged in later, a running dhclient
(working for the internal interface only) is killed, and restarted,
but the interface name of the new pccard is added to the internal
name. After removal, /etc/rc.d/dhclient is started again. This
script does nothing if there are no devices in /etc/rc.conf

This is only a workaround for a well known problem. After we have
a dhcp client which handles device adding and removal, it will go
away.

21 years agoBack out revision 1.32; it attaches the files in the wrong section of the PR.
Ceri Davies [Mon, 11 Aug 2003 19:41:14 +0000 (19:41 +0000)]
Back out revision 1.32; it attaches the files in the wrong section of the PR.

21 years ago- When deciding whether to init the zone with small_init or large_init,
Bosko Milekic [Mon, 11 Aug 2003 19:39:45 +0000 (19:39 +0000)]
- When deciding whether to init the zone with small_init or large_init,
  compare the zone element size (+1 for the byte of linkage) against
  UMA_SLAB_SIZE - sizeof(struct uma_slab), and not just UMA_SLAB_SIZE.
  Add a KASSERT in zone_small_init to make sure that the computed
  ipers (items per slab) for the zone is not zero, despite the addition
  of the check, just to be sure (this part submitted by: silby)

- UMA_ZONE_VM used to imply BUCKETCACHE.  Now it implies
  CACHEONLY instead.  CACHEONLY is like BUCKETCACHE in the
  case of bucket allocations, but in addition to that also ensures that
  we don't setup the zone with OFFPAGE slab headers allocated from the
  slabzone.  This means that we're not allowed to have a UMA_ZONE_VM
  zone initialized for large items (zone_large_init) because it would
  require the slab headers to be allocated from slabzone, and hence
  kmem_map.  Some of the zones init'd with UMA_ZONE_VM are so init'd
  before kmem_map is suballoc'd from kernel_map, which is why this
  change is necessary.

21 years agoDrop Giant in recvit before returning an error to the caller to avoid
Alexander Kabaev [Mon, 11 Aug 2003 19:37:11 +0000 (19:37 +0000)]
Drop Giant in recvit before returning an error to the caller to avoid
leaking the Giant on the syscall exit.

21 years agoHave the -a and -f options work together.
Ceri Davies [Mon, 11 Aug 2003 19:32:19 +0000 (19:32 +0000)]
Have the -a and -f options work together.

PR: misc/40057

21 years agoNew errata: SA-03:09, SA-03:10.
Bruce A. Mah [Mon, 11 Aug 2003 15:54:29 +0000 (15:54 +0000)]
New errata:  SA-03:09, SA-03:10.

Minor grammatical fixes to SA-03:08 item.

21 years agoNew release notes: SA-03:09, SA-03:10.
Bruce A. Mah [Mon, 11 Aug 2003 15:53:55 +0000 (15:53 +0000)]
New release notes:  SA-03:09, SA-03:10.

21 years agoreduce #ifdef.
Hajimu UMEMOTO [Mon, 11 Aug 2003 15:51:54 +0000 (15:51 +0000)]
reduce #ifdef.

MFC after: 1 week

21 years agouse strlcpy() and snprintf().
Hajimu UMEMOTO [Mon, 11 Aug 2003 15:49:47 +0000 (15:49 +0000)]
use strlcpy() and snprintf().

Obtained from: KAME
MFC after: 1 week

21 years agoRemove the band-aid to make these compile on amd64/ia64.
Nate Lawson [Mon, 11 Aug 2003 15:49:14 +0000 (15:49 +0000)]
Remove the band-aid to make these compile on amd64/ia64.

21 years agouse int64_t instead of long long.
Hajimu UMEMOTO [Mon, 11 Aug 2003 15:46:37 +0000 (15:46 +0000)]
use int64_t instead of long long.

Obtained from: KAME
MFC after: 1 week

21 years agoStyle cleanups to match the rest of this directory. For acpi_battery.c,
Nate Lawson [Mon, 11 Aug 2003 15:34:43 +0000 (15:34 +0000)]
Style cleanups to match the rest of this directory.  For acpi_battery.c,
remove unused includes.

21 years agoMake the documentation of PT_STEP match its implementation: the
Ian Dowse [Mon, 11 Aug 2003 13:13:46 +0000 (13:13 +0000)]
Make the documentation of PT_STEP match its implementation: the
`data' parameter is not ignored; if non-zero, it specifies a signal
number to be delivered to the traced process.

MFC after: 1 day

21 years agobus_dmamap_create() is no longer optional for non-static dma mappings. Thanks
Scott Long [Mon, 11 Aug 2003 09:09:10 +0000 (09:09 +0000)]
bus_dmamap_create() is no longer optional for non-static dma mappings.  Thanks
to ru@ for testing this.

21 years agoAdd ng_atmpif: a HARP physical interface emulation. This allows one
Hartmut Brandt [Mon, 11 Aug 2003 08:40:02 +0000 (08:40 +0000)]
Add ng_atmpif: a HARP physical interface emulation. This allows one
to run the HARP ATM stack without real hardware.

Submitted by: Vincent Jardin <vjardin@wanadoo.fr>

21 years agoAdd the mlockall()/munlockall() system call manual page from NetBSD.
Bruce M Simpson [Mon, 11 Aug 2003 07:16:21 +0000 (07:16 +0000)]
Add the mlockall()/munlockall() system call manual page from NetBSD.

PR: kern/42426, standards/54223
Obtained from: NetBSD
Reviewed by: jake, alc
Approved by: jake (mentor)
MFC after: 2 weeks

21 years agoAdd the new arguments for the add pvc command to the help information.
Hartmut Brandt [Mon, 11 Aug 2003 07:14:10 +0000 (07:14 +0000)]
Add the new arguments for the add pvc command to the help information.
Correct a comment.

Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 3 days

21 years agoAdd the mlockall() and munlockall() system calls.
Bruce M Simpson [Mon, 11 Aug 2003 07:14:08 +0000 (07:14 +0000)]
Add the mlockall() and munlockall() system calls.
 - All those diffs to syscalls.master for each architecture *are*
   necessary. This needed clarification; the stub code generation for
   mlockall() was disabled, which would prevent applications from
   linking to this API (suggested by mux)
 - Giant has been quoshed. It is no longer held by the code, as
   the required locking has been pushed down within vm_map.c.
 - Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES
   to express their intention explicitly.
 - Inspected at the vmstat, top and vm pager sysctl stats level.
   Paging-in activity is occurring correctly, using a test harness.
 - The RES size for a process may appear to be greater than its SIZE.
   This is believed to be due to mappings of the same shared library
   page being wired twice. Further exploration is needed.
 - Believed to back out of allocations and locks correctly
   (tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC).

PR:             kern/43426, standards/54223
Reviewed by:    jake, alc
Approved by:    jake (mentor)
MFC after: 2 weeks

21 years agoFix sparc64 LINT build. <blush>
Jake Burkholder [Mon, 11 Aug 2003 07:05:55 +0000 (07:05 +0000)]
Fix sparc64 LINT build.  <blush>

21 years agoFix AcpiOsMapMemory to match the function definition. Don't use UINT32
Nate Lawson [Mon, 11 Aug 2003 05:54:31 +0000 (05:54 +0000)]
Fix AcpiOsMapMemory to match the function definition.  Don't use UINT32
as a cast for a pointer.  Change has been submitted to the vendor.

Pointed out by: marcel, obrien

21 years agoThis commit was generated by cvs2svn to compensate for changes in r118765,
Nate Lawson [Mon, 11 Aug 2003 05:54:31 +0000 (05:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r118765,
which included commits to RCS files with non-trunk default branches.

21 years agoMore pipe changes:
Mike Silbersack [Mon, 11 Aug 2003 05:51:51 +0000 (05:51 +0000)]
More pipe changes:

From alc:
Move pageable pipe memory to a seperate kernel submap to avoid awkward
vm map interlocking issues.  (Bad explanation provided by me.)

From me:
Rework pipespace accounting code to handle this new layout, and adjust
our default values to account for the fact that we now have a solid
limit on allocations.

Also, remove the "maxpipes" limit, as it no longer has a purpose.
(The limit on kva usage solves the problem of having two many pipes.)

21 years ago2nd part of making the name of the release running script overrideable.
David E. O'Brien [Mon, 11 Aug 2003 04:21:58 +0000 (04:21 +0000)]
2nd part of making the name of the release running script overrideable.

21 years agoDon't provide mutexes for static busdma allocations.
Scott Long [Mon, 11 Aug 2003 03:39:41 +0000 (03:39 +0000)]
Don't provide mutexes for static busdma allocations.

21 years agoImplement cpu_set_upcall_kse(). Further tweaking may be needed after
Marcel Moolenaar [Mon, 11 Aug 2003 01:38:23 +0000 (01:38 +0000)]
Implement cpu_set_upcall_kse(). Further tweaking may be needed after
testing.

21 years agoUse vm_page_hold() instead of vm_page_wire(). Otherwise, a multithreaded
Alan Cox [Mon, 11 Aug 2003 00:17:44 +0000 (00:17 +0000)]
Use vm_page_hold() instead of vm_page_wire().  Otherwise, a multithreaded
application could cause a wired page to be freed.  In general,
vm_page_hold() should be preferred for ephemeral kernel mappings of pages
borrowed from a user-level address space.  (vm_page_wire() should really be
reserved for indefinite duration pinning by the "owner" of the page.)

Discussed with: silby
Submitted by: tegge

21 years agoThe iBCS2 system call translator for statfs(2) did not check the
Jacques Vidrine [Sun, 10 Aug 2003 23:26:16 +0000 (23:26 +0000)]
The iBCS2 system call translator for statfs(2) did not check the
length parameter for validity.

Submitted by: David Rhodus <drhodus@catpa.com>

21 years agopanic() if we try to handle an out-of-range signal number in
Jacques Vidrine [Sun, 10 Aug 2003 23:05:37 +0000 (23:05 +0000)]
panic() if we try to handle an out-of-range signal number in
psignal()/tdsignal().  The test was historically in psignal().  It was
changed into a KASSERT, and then later moved to tdsignal() when the
latter was introduced.

Reviewed by: iedowse, jhb

21 years agoAdd or correct range checking of signal numbers in system calls and
Jacques Vidrine [Sun, 10 Aug 2003 23:04:55 +0000 (23:04 +0000)]
Add or correct range checking of signal numbers in system calls and
ioctls.

In the particular case of ptrace(), this commit more-or-less reverts
revision 1.53 of sys_process.c, which appears to have been erroneous.

Reviewed by: iedowse, jhb

21 years agoAdd some quick pathes to exit process when signal action is default and
David Xu [Sun, 10 Aug 2003 22:35:46 +0000 (22:35 +0000)]
Add some quick pathes to exit process when signal action is default and
signal can causes process to exit.

Reviewed by: deischen

21 years agoInitialize rtld lock just before turning on thread mode and
David Xu [Sun, 10 Aug 2003 22:30:20 +0000 (22:30 +0000)]
Initialize rtld lock just before turning on thread mode and
uninitialize rtld lock after thread mode shutdown.

21 years agoIf thread mode is not activated yet, just call __sys_fork() directly,
David Xu [Sun, 10 Aug 2003 22:20:41 +0000 (22:20 +0000)]
If thread mode is not activated yet, just call __sys_fork() directly,
otherwise masks all signals until fork() returns, in child process,
we reset library state before restoring signal masks until we reach
a safe to point.

Reviewed by: deischen

21 years agoTweak rtld lock to allow recursive on reader lock and detect recursive
David Xu [Sun, 10 Aug 2003 22:15:03 +0000 (22:15 +0000)]
Tweak rtld lock to allow recursive on reader lock and detect recursive
on writer lock. This is first cut at rwlock for rtld.

Submitted by: desichen

21 years agoIf thread mode is not activated yet, don't do extra work.
David Xu [Sun, 10 Aug 2003 22:07:28 +0000 (22:07 +0000)]
If thread mode is not activated yet, don't do extra work.

Reviewed by: deischen

21 years agoChange name of state_link() to state_polling() to make it
Martin Blapp [Sun, 10 Aug 2003 22:01:37 +0000 (22:01 +0000)]
Change name of state_link() to state_polling() to make it
more clear what it does.

Trim interface_active() to just do what it should do. Check
if we got link or not and if the NIC supports it. No special
treatment for mediachecks here anymore.

Simplify the code a lot, and remove doublicated parts.

Fix two minor spelling errors.

Add one missing #ifdef ENABLE_POLLING_MODE

Reviewed by: mdodd

21 years agoRename pmap_changebit() to pmap_clear_ptes() and remove the last
Alan Cox [Sun, 10 Aug 2003 21:53:55 +0000 (21:53 +0000)]
Rename pmap_changebit() to pmap_clear_ptes() and remove the last
parameter.  The new name better reflects what the function does and
how it is used.  The last parameter was always FALSE.

Note: In theory, gcc would perform constant propagation and dead code
elimination to achieve the same effect as removing the last parameter,
which is always FALSE.  In practice, recent versions do not.  So, there
is little point in letting unused code pessimize execution.

21 years agoo move cpu_reset() from vm_machdep.c to machdep.c.
Marcel Moolenaar [Sun, 10 Aug 2003 21:33:07 +0000 (21:33 +0000)]
o move cpu_reset() from vm_machdep.c to machdep.c.
o reorder cpu_boot(), cpu_halt() and identifycpu().

No functional change.

21 years agoRevert revision 1.25 now that mergemaster does a 'make all' to build
Gregory Neil Shapiro [Sun, 10 Aug 2003 20:48:59 +0000 (20:48 +0000)]
Revert revision 1.25 now that mergemaster does a 'make all' to build
the required .cf file(s).

Submitted by: ru
X-MFC after: mergemaster MFC

21 years agoThe BCM5704 ASIC has a smaller mbuf space than the 5700/1/2/3. Failure
Bill Paul [Sun, 10 Aug 2003 18:04:35 +0000 (18:04 +0000)]
The BCM5704 ASIC has a smaller mbuf space than the 5700/1/2/3. Failure
to configure this correctly yields many watchdog timeouts even on lightly
loaded machines. This is a common complaint from users with Dell 1750
servers with built-in dual 5704 NICs.