55838 Commits

Author SHA1 Message Date
qingli
eb0d200a92 MFC: rev 1.84
Approved by:	re (scottl)
2006-02-16 01:06:22 +00:00
iedowse
fa1b09ae80 MFC: don't perform an endpoint stall clear every time a pipe is
opened.  This should not be necessary, and it is known to confuse
certain devices.

Remove the UQ_NO_OPEN_CLEARSTALL quirk, as this is now the default
behaviour for all devices.

Approved by:	re (scottl)
2006-02-15 22:51:08 +00:00
ru
832a964b08 MFC: -S option for boot2, already documented to work in boot(8).
Approved by:	re (scottl)
2006-02-15 15:08:51 +00:00
nyan
09ec09e90b MFi386: revision 1.31.2.1
Approved by:	re (kensmith)
2006-02-15 13:55:13 +00:00
nyan
ed8f6e5151 MFC: revision 1.371
> Clear carry flag in get_mcontext so that setcontext does not
> return a bogus error.

Approved by:	re (kensmith)
2006-02-15 13:54:06 +00:00
marius
d340da2e99 MFC: src/sys/dev/puc/puc_ebus.c 1.6, sys/dev/uart/uart_bus_ebus.c 1.9,
sys/dev/uart/uart_cpu_sparc64.c 1.20, 1.22

- Add support for using LOM (Lights Out Management) and RSC (Remote System
  Control) devices as console.
- Add my copyright to uart_cpu_sparc64.c.
- Recognize the SAB82532 in USIII machines. This is MFC'ed for consistency
  as one part of the original commit, sys/dev/uart/uart_bus_ebus.c rev. 1.7,
  was already MFC'ed to RELENG_6 (in rev. 1.6.2.2).

Approved by:	re (scottl)
2006-02-15 09:16:01 +00:00
ps
f2d6dfc1f8 MFC:
Implement SIOCGIFCONF for 32bit binaries.

Approved by:	re
2006-02-15 03:37:15 +00:00
sam
9864643933 MFC 1.38: set the mgt frame tx timer before dispatching the frame to the driver
Approved by:	re (scottl)
2006-02-15 03:21:15 +00:00
jhb
c0067121bc MFC: Correctly set the MPSAFE flag based on the lower vnode's mount.
Approved by:	re (scottl)
2006-02-14 23:15:16 +00:00
jhb
35b2a57ba2 MFC: Sync up to rev 1.80 from HEAD:
- Use a dedicated kthread to call acctwatch() periodically rather than
  a callout from softclock().
- Validate new values for the kern.acct_chkfreq sysctl.
- Whitespace and include sorting.

Approved by:	re (scottl)
2006-02-14 23:13:17 +00:00
jhb
cfc4a82e66 MFC: Use the correct BAR for the UPCI 32 adapter.
Approved by:	re (scottl)
2006-02-14 23:09:10 +00:00
rwatson
6a4c2a60ce Merge in_pcb.c:1.167 from HEAD to RELENG_6:
Convert remaining functions to ANSI C function declarations; remove
  'register' where present.

Approved by:	re (scottl)
2006-02-14 22:09:27 +00:00
rwatson
1a3392858b Merge coda_vnops.c:1.67 from HEAD to RELENG_6:
Convert last four functions in coda_vnops.c to ANSI C function
  declarations.  I knew I would get to fix something in Coda
  eventually.

Approved by:	re (scottl)
2006-02-14 21:59:07 +00:00
rwatson
4b2bdfb9e4 Merge vfs_mount.c:1.213 from HEAD to RELENG_6:
Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the
  return value is intentional: this is simply an attempt to pre-cache the
  statfs state.

  Found with:     Coverity Prevent (tm)

Approved by:	re (scottl)
2006-02-14 21:57:09 +00:00
rwatson
88e317a7ac Merge ncp_conn.c:1.28 from HEAD to RELENG_6:
In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error'
  resulted in deadcode, as 'error' could never be 0.  What this logic
  was originally meant to handle is not clear -- it's been this way
  (broken) since at least RELENG_4.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:55:15 +00:00
rwatson
1a12c93e91 Merge udp_usrreq.c:1.181 from HEAD to RELENG_6:
Remove dead code: 'opts' is not used in udp_append(), only in udp_input(),
  so no need to assign it to NULL or conditionally free it.

  Found with:     Coverity Prevent(tm)

Approved by:	re (scottl)
2006-02-14 21:40:21 +00:00
rwatson
25626e8a72 Merge ip6_output.c:1.101 from HEAD to RELENG_6:
When storing the results of malloc() in a pointer to a pointer, check
  the pointer to a pointer for NULL, not the pointer for NULL.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:38:46 +00:00
rwatson
0f1480e03b Merge ipcomp_input.c:1.9 from HEAD to RELENG_6:
In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm'
  may be a stale pointer at this point, and we're interested in whether or
  not m_pulldown() failed.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:36:23 +00:00
rwatson
4b660c6658 Merge ipx_input.c:1.52 from HEAD to RELENG_6:
Remove dead code associated with 'mcopy' in ipx_forward(): at no point
  are the contents of the forwarded mbuf ever copied into mcopy, so there's
  no need to have mcopy, conditionally look at mcopy, or conditionally free
  it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:35:07 +00:00
rwatson
f6557302f2 Merge if_ef.c:1.38 from HEAD to RELENG_6:
Check the right ifnet pointer to see if if_alloc() failed or not in
  ef_clone(); we were testing the original ifnet, not the one allocated.

  When aborting ef_clone() due to if_alloc() failing, free the allocated
  efnet structure rather than leaking it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:11:19 +00:00
rwatson
bcc6ac0035 Merge if_ef.c:1.37 from HEAD to RELENG_6:
When freeing the chain of if_ef devices on an aborted load, use
  SLIST_FOREACH_SAFE() rather than SLIST_FOREACH(), as elements are
  freed on each iteration of the loop.  This prevents use-after-free.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 21:09:46 +00:00
brooks
577b28fda2 MFC syscons.c rev 1.441 and documentation:
When SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the
same behavior to be controlled by the sysctls, hw.syscons.kbd_kbdkey
and hw.syscons.kbd_reboot respectively.

PR:		kern/72728
Submitted by:	Luca Morettoni <morettoni at libero dot it>
Approved by:	re (scottl)
2006-02-14 16:41:27 +00:00
ume
6e7d681477 MFC 1.63: avoided the use of purged address structure when an
address became invalid in nd6_timer().

Approved by:	re (hrs)
2006-02-14 16:29:22 +00:00
luigi
31eed14fe7 MFC: make sure the start and end markers are contiguous and
not suppressed by the optimizer.

Approved by: re
2006-02-14 14:46:22 +00:00
ps
0f5fcc3599 MFC: rev 1.33
Enable 64bit SGL's on PERC 4/DC

Approved by:	re
2006-02-14 08:05:29 +00:00
ps
6875ea6a2c MFC: amr.c 1.75, amrvar.h 1.30
- Move the command setup from amr_start1 into the card specific submit
  routines.
- Add or replace cpu_spinwait() with DELAY(1) to a few of the busy
  loops when reading from the controller to work around firmware bugs
  which can crash the controller.

Approved by:	re
2006-02-14 08:04:39 +00:00
ru
7b02bd77cd MFC: 1.36: Fix output byte and error counting.
Approved by:	re (scottl)
2006-02-14 06:21:47 +00:00
ru
2d53485ac9 MFC:
- Add loader(8) variables for RB_DFLTROOT, RB_MUTE, and RB_PAUSE:
  "boot_dfltroot", "boot_mute", and "boot_pause" respectively.

- Cause all flags passed by boot2 to set the respective loader(8)
  boot_* variable.  The end effect is that all flags from boot2
  are now passed to the kernel.

Approved by:	re (scottl)
2006-02-14 06:20:16 +00:00
marcel
ae752767c9 MFC fixes for MCA MPSAFEness:
mca.c:1.11
	mp_machdep.c:1.60

Approved by: re (scottl, thanks!)
2006-02-14 03:40:49 +00:00
rwatson
67ad5e7105 Merge uma_core.c:1.136 from HEAD to RELENG_6:
Skip per-cpu caches associated with absent CPUs when generating a
  memory statistics record stream via sysctl.

Approved by:	re (scottl)
2006-02-14 03:37:58 +00:00
rwatson
b765ebeb75 Merge subr_disk.c:1.86 from HEAD to RELENG_6:
When calling bioq_first() to see if a queue is empty in bioq_disksort(),
  don't save the return value as we won't use it.

  Noticed by:     Coverity Prevent analysis tool

Approved by:	re (scottl)
2006-02-14 03:29:31 +00:00
rwatson
f017c618f0 Merge nfs_lock.c:1.43 from HEAD to RELENG_6:
In nfs_dolock(), GC now under-used ioflg, rendered obsolete when we moved
  from using a fifo to talk to rpc.lockd to using a special device node.

Approved by:	re (scottl)
2006-02-14 00:06:32 +00:00
rwatson
bfd457b328 Merge vnode.h:1.312 from HEAD to RELENG_6:
Rename uid and gid arguments to vaccess() prototype to match vaccess()
  implementation in vfs_subr.c.  No functional change.

Approved by:	re (scottl)
2006-02-14 00:03:00 +00:00
rwatson
48d1eb882f Merge kern_ktrace.c:1.103, ktrace.h:1.31 from HEAD to RELENG_6:
Reuse ktr_unused field in ktr_header structure as ktr_tid; populate
  ktr_tid as part of gathering of ktr header data for new ktrace
  records.  The continued use of intptr_t is required for file layout
  reasons, and cannot be changed to lwpid_t at this point.

  Reviewed by:    davidxu

Approved by:	re (scottl)
2006-02-14 00:02:01 +00:00
rwatson
0a7e5efc42 Merge atm_signal.c:1.14 from HEAD to RELENG_6:
Convert function declarations to ANSI C.

Approved by:	re (scottl)
2006-02-13 23:54:48 +00:00
rwatson
c38e03130c Merge fnmatch.c:1.20 from HEAD to RELENG_6:
Convert function declarations to ANSI C.

Approved by:	re (scottl)
2006-02-13 23:52:29 +00:00
rwatson
24a7189e9d Merge uipc_sem.c:1.22 from HEAD to RELENG_6:
Convert remaining functions to ANSI C function declarations.

Approved by:	re (scottl)
2006-02-13 23:51:19 +00:00
rwatson
5db3947c25 Merge Makefile:1.4 from HEAD to RELENG_6:
Correct help line: list targets, not names of files generated by targets
  when no argument is provided to make.

Approved by:	re (scottl)
2006-02-13 23:48:26 +00:00
rwatson
25bf323777 Merge ip_input.c:1.311 from HEAD to RELENG_6:
Modify the IP fragment reassembly code so that it uses a new UMA zone,
  ipq_zone, to allocate fragment headers from, rather than using cast mbuf
  storage.  This was one of the few remaining uses of mbuf storage for
  local data structures that relied on dtom().  Implement the resource
  limit on ipq's using UMA zone limits, but preserve current sysctl
  semantics using a sysctl proc.

Approved by:	re (scottl)
2006-02-13 23:46:31 +00:00
rwatson
f55041bfd1 MFC ip_input.c:1.310:
Staticize ipqlock, since it is local to ip_input.c.

Approved by:	re (scottl)
2006-02-13 23:44:20 +00:00
marius
05e831efa6 MFC: sys/conf/NOTES 1.1349, sys/conf/files 1.1090,
sys/conf/files.sparc64 1.78, sys/modules/Makefile 1.471,
     sys/modules/le/Makefile 1.1, sys/sparc64/conf/GENERIC 1.105

Hook up le(4) to the build.

Approved by:	re (scottl)
2006-02-13 11:39:02 +00:00
marius
6ab8768830 MFC: sys/dev/le/am7990.c 1.1, sys/dev/le/am79900.c 1.1,
sys/dev/le/am79900reg.h 1.1, sys/dev/le/am79900var.h 1.1,
     sys/dev/le/am7990reg.h 1.1, sys/dev/le/am7990var.h 1.1,
     sys/dev/le/if_le_ledma.c 1.1, sys/dev/le/if_le_pci.c 1.1,
     sys/dev/le/lance.c 1.1, sys/dev/le/lancereg.h 1.1,
     sys/dev/le/lancevar.h 1.1

Add le(4), a driver for AMD Am7900 LANCE and Am79C9xx PCnet NICs,
ported from NetBSD.
This version differs from HEAD in that if_le_ledma.c inlines
lsi64854_enet_intr() from rev. 1.8 of sys/sparc64/sbus/lsi64854.c
in le_dma_hwintr() in order to not break the API of the LSI64854
driver in RELENG_6.

Approved by:	re (scottl)
2006-02-13 11:30:40 +00:00
marius
5e734a4bf4 MFC: 1.17
- Don't shift the clock frequency in MHz left by 8 before assigning it
  to sbus_mdvec.dv_clock as sbus_mdvec.dv_clock is meant to be specified
  in MHz. While this was a bug it shouldn't have affected FreeBSD/sparc64
  as sbus_mdvec.dv_clock is used to limit the clock rate of chips when
  a machine isn't able to support them at maximum speed which isn't the
  case for sun4u machines.
- Remove the code that checks whether the clock frequency returned by
  sbus_get_clockfreq() is 0 and falls back to 25MHz if it is as that's
  already done in sbus(4).

Approved by:	re (scottl)
2006-02-12 22:57:04 +00:00
sam
1d09453a57 pad embedded structs so we can preserve abi's moving forward
Reviewed by:	scottl, dwhite, kensmith, avatar
Approved by:	re
2006-02-12 19:00:39 +00:00
yar
da071e483e MFC rev. 1.95:
Set IFF_BROADCAST and IFF_MULTICAST on vlan interfaces from the
  beginning and simply refuse to attach to a parent without either
  flag.  Our network stack doesn't like those flags changing and
  there is no need in them doing so.

Approved by:	re (scottl)
2006-02-12 12:19:06 +00:00
ume
938d160249 MFC 1.168: Never select the PCB that has INP_IPV6 flag and is bound
to :: if we have another PCB which is bound to 0.0.0.0.  If a PCB has
the INP_IPV6 flag, then we set its cost higher than IPv4 only PCBs.

Approved by:	re (scottl)
2006-02-11 09:02:59 +00:00
brueffer
72689fc263 MFC: rev. 1.18
Clean up some sysctl descriptions, debug messages etc.

Approved by:	re (scottl)
2006-02-11 08:25:22 +00:00
ume
69d4324002 MFC: obey opt_inet6.h and opt_ipsec.h in kernel build directory.
src/sys/modules/ipfw/Makefile:	1.22, 1.23
	src/sys/netinet/ip_fw2.c:	1.117
	src/sys/netinet/ip_fw_pfil.c:	1.20

Approved by:	re (scottl)
2006-02-11 08:19:37 +00:00
imp
9b115c7d4d MFC: add cardbus_device.c. This file was left out when the rest of the
changes were merged, resulting in load errors at boot time.

Approved by: re@ (scottl)
2006-02-11 06:55:50 +00:00
yar
25d6e2cc4f MFC:
Avoid creating (and subsequently using) fake opt_*.h files
when the modules are built with the kernel and hence actual
opt_*.h files are available in ${KERNBUILDDIR}.  Fix a few
small bugs that would prevent this from working.

At last the build options of the modules become consistent
with those of the kernel unless the MODULES_WITH_WORLD way
still is used.

Approved by:	re (kensmith, scottl)
Requested by:	ru
Tested on:	amd64 i386 sparc64
Tested by:	md5
2006-02-10 00:38:08 +00:00