]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFp4: SMP support
marcel [Sun, 27 Apr 2008 22:33:43 +0000 (22:33 +0000)]
MFp4: SMP support

16 years agorestore the hal's channel list when doing getradiocaps so it's in sync with
sam [Sun, 27 Apr 2008 22:03:56 +0000 (22:03 +0000)]
restore the hal's channel list when doing getradiocaps so it's in sync with
the 802.11 layer's list

16 years agoEliminate track_modified_needed(), better known as pmap_track_modified()
marcel [Sun, 27 Apr 2008 21:04:54 +0000 (21:04 +0000)]
Eliminate track_modified_needed(), better known as pmap_track_modified()
on other platforms.  We no longer need it because we do not create managed
mappings within the clean submap.

Pointed out by: alc

16 years ago- Fix bugs where the value of arithmetic expansion$((...)) was trucated
stefanf [Sun, 27 Apr 2008 20:46:45 +0000 (20:46 +0000)]
- Fix bugs where the value of arithmetic expansion$((...)) was trucated
  to type int.
- Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
  currently supported FreeBSD architectures).  SUSv3 requires at least type
  long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
  do that too.

PR: 122659
Submitted by: Jaakko Heinonen (minor modifications by me)

16 years agoMFp4: SMP support
marcel [Sun, 27 Apr 2008 19:51:34 +0000 (19:51 +0000)]
MFp4: SMP support

16 years agoMake sure tmpstk is aligned and make it 8KB in size -- not 8KB+16.
marcel [Sun, 27 Apr 2008 19:03:14 +0000 (19:03 +0000)]
Make sure tmpstk is aligned and make it 8KB in size -- not 8KB+16.

16 years agoAdd support files for compiling with soft-float. This has been
marcel [Sun, 27 Apr 2008 18:34:34 +0000 (18:34 +0000)]
Add support files for compiling with soft-float. This has been
copied from ARM and modified to warrant the duplication. Oh,
and to make it work for PowerPC :-)

16 years agoRemove mfsvr():
marcel [Sun, 27 Apr 2008 17:13:22 +0000 (17:13 +0000)]
Remove mfsvr():
o  The function is defined unconditionally but depends on SPR_SVR,
   which is defined conditionally.
o  spr.h defines mfspr() and mtspr(), which is no worse to use.

16 years agoFix include guard spelling.
rwatson [Sun, 27 Apr 2008 15:51:49 +0000 (15:51 +0000)]
Fix include guard spelling.

MFC after: 3 days
Submitted by: diego

16 years agoWhen writing trailers in sendfile(2), don't call kern_writev()
rwatson [Sun, 27 Apr 2008 15:50:00 +0000 (15:50 +0000)]
When writing trailers in sendfile(2), don't call kern_writev()
while holding the socket buffer lock.  These leads to an
immediate panic due to recursing the socket buffer lock.  This
bug was introduced in uipc_syscalls.c:1.240, but masked by
another bug until that was fixed in uipc_syscalls.c:1.269.

Note that the current fix isn't perfect, but better than
panicking: normally we guarantee that simultaneous invocations
of a system call to write on a stream socket won't be
interlaced, which is ensured by use of the socket buffer sleep
lock.  This is guaranteed for the sendfile headers, but not
trailers.  In practice, this is likely not a problem, but
should be fixed.

MFC after: 3 days
Pointy hat to: andre (1.240), cperciva (1.269)

16 years agoAdd a breif example for the wlan change. Include an explicit pointer
imp [Sun, 27 Apr 2008 04:07:36 +0000 (04:07 +0000)]
Add a breif example for the wlan change.  Include an explicit pointer
to rc.conf(5) to remind people where to look for all the details.
People without network connectivity forget basics like this...  This
is in keeping with historic UPDATING entries which try to provide
basic information in the entry, and a pointer to more extensive
information documenting the new thing.

16 years agoRemove two unused declarations. These variables are now fields within
alc [Sun, 27 Apr 2008 00:10:45 +0000 (00:10 +0000)]
Remove two unused declarations.  These variables are now fields within
vm.h's struct kva_md_info.

16 years agoRemove an XXX comment. sys/amd64/amd64/pmap.c revision 1.516 explains why
alc [Sun, 27 Apr 2008 00:06:01 +0000 (00:06 +0000)]
Remove an XXX comment.  sys/amd64/amd64/pmap.c revision 1.516 explains why
"pmap_initialized" no longer exists.

16 years agoMFamd64 revision 1.544/i386 revision 1.549
alc [Sat, 26 Apr 2008 22:39:58 +0000 (22:39 +0000)]
MFamd64 revision 1.544/i386 revision 1.549
  Retire pmap_track_modified().  We no longer need it because we do not
  create managed mappings within the clean submap.  To prevent regressions,
  add assertions blocking the creation of managed mappings within the clean
  submap.

Approved by: imp

16 years agoAdd a missing quote symbol.
yar [Sat, 26 Apr 2008 22:15:03 +0000 (22:15 +0000)]
Add a missing quote symbol.

16 years agoJust met Kurt Vonnegut's quote remarkably relevant
yar [Sat, 26 Apr 2008 22:12:31 +0000 (22:12 +0000)]
Just met Kurt Vonnegut's quote remarkably relevant
to open software development (as well as to the other
kinds of human activity.)

16 years agoInclude the QUICC bus front-end in the module for PowerPC.
marcel [Sat, 26 Apr 2008 18:41:42 +0000 (18:41 +0000)]
Include the QUICC bus front-end in the module for PowerPC.

16 years agoWith rev 1.24 of sys/powerpc/powermac/macio.c, we now get a
marcel [Sat, 26 Apr 2008 18:40:59 +0000 (18:40 +0000)]
With rev 1.24 of sys/powerpc/powermac/macio.c, we now get a
total of 6 interrupt resources for scc(4) on macio(4). This
is 3 per channel, of which the 1st of each channel is the
interrupt associated with the SCC. The other 2 are for DMA
operation.
Change scc_bfe_attach() to accept an argument that's the
number of interrupts per channel (ipc) and change each bus
front-end (bfe) to pass that argument through a wrapper
for the device_attach method.

For now, we only allocate the 1st interrupt of each channel
to perserve behaviour.

16 years agoTake into account the size of the interrupt cell. It's determined
marcel [Sat, 26 Apr 2008 18:35:44 +0000 (18:35 +0000)]
Take into account the size of the interrupt cell. It's determined
by the parent for interrupt resources. This corrects parsing of
the interrupts property.

With parsing of the property fixed, add all interrupts to the
resource list. Bump the max. number of interrupts from 5 to 6
as scc(4) attached to macio(4) has 6 interrupts (3 per channel).

Submitted by: Nathan Whitehorn <nathanw@uchicago.edu>

16 years agoRecognize Cicada CS8244 phy chip (among others, can be found on MPC8572DS
raj [Sat, 26 Apr 2008 18:07:24 +0000 (18:07 +0000)]
Recognize Cicada CS8244 phy chip (among others, can be found on MPC8572DS
development systems).

Obtained from: Freescale, Semihalf

16 years agoUse RSTCR for resetting the MPC8572 (the old way does not apply).
raj [Sat, 26 Apr 2008 18:03:00 +0000 (18:03 +0000)]
Use RSTCR for resetting the MPC8572 (the old way does not apply).

Obtained from: Freescale, Semihalf

16 years agoIntroduce a dedicated file for MPC85xx-specific routines. Move cpu_reset()
raj [Sat, 26 Apr 2008 17:57:29 +0000 (17:57 +0000)]
Introduce a dedicated file for MPC85xx-specific routines. Move cpu_reset()
there, as it's not relevant to Book-E specification, but is an implementation
detail, directly dependent on the given SoC version.

16 years agoImprove handling of Local Access Windows on MPC85xx systems:
raj [Sat, 26 Apr 2008 17:47:28 +0000 (17:47 +0000)]
Improve handling of Local Access Windows on MPC85xx systems:

- detect number of LAWs in run time and initalize accordingly
- introduce decode windows target IDs used in MPC8572
- other minor updates

Obtained from: Freescale, Semihalf

16 years agoMove System Revision defines to a bit better place, add MPC8572 systems IDs.
raj [Sat, 26 Apr 2008 17:39:55 +0000 (17:39 +0000)]
Move System Revision defines to a bit better place, add MPC8572 systems IDs.

16 years agoEnable NFSLOCKD for MPC85XX kernel to comply with recent NFS rework.
raj [Sat, 26 Apr 2008 17:37:13 +0000 (17:37 +0000)]
Enable NFSLOCKD for MPC85XX kernel to comply with recent NFS rework.

16 years ago- Use the revamped code from the gem(4) PCI front-end, which
marius [Sat, 26 Apr 2008 14:17:21 +0000 (14:17 +0000)]
- Use the revamped code from the gem(4) PCI front-end, which
  doesn't require parts of the Expansion ROM to be copied around,
  for obtaining the MAC address on !OFW platforms.
- Don't unnecessarily cache bus space tag and handle nor RIDs
  in the softcs of the front-ends.
- Don't use function calls in initializers.
- Let the SBus front-end depend on sbus(4).

16 years agoRemove some remnant alpha hacks.
marius [Sat, 26 Apr 2008 14:13:48 +0000 (14:13 +0000)]
Remove some remnant alpha hacks.

Approved by: PCI-maintainers (imp, jhb)

16 years agoIncrease the default MUTEX_ADAPTIVE_SPINS to 2000, after further
kris [Sat, 26 Apr 2008 13:19:07 +0000 (13:19 +0000)]
Increase the default MUTEX_ADAPTIVE_SPINS to 2000, after further
testing it turns out 200 was too short to give good adaptive
performance.

Reviewed by:   jeff
MFC after:     1 week

16 years ago* Correct a mis-merge that leaked the PROC_LOCK [1]
kris [Sat, 26 Apr 2008 13:16:55 +0000 (13:16 +0000)]
* Correct a mis-merge that leaked the PROC_LOCK [1]
* Return ENOENT on error instead of 0 [2]

Submitted by: rdivacky [1], kib [2]

16 years agoImplement 'show mount' command in DDB. Without argument, it prints short
pjd [Sat, 26 Apr 2008 13:04:48 +0000 (13:04 +0000)]
Implement 'show mount' command in DDB. Without argument, it prints short
info about all currently mounted file systems. When an address is given
as an argument, prints detailed info about the given mount point.

MFC after: 2 weeks

16 years agoFreeBSD/mips gdb build suspport. From the mips2-jnpr branch.
imp [Sat, 26 Apr 2008 12:22:46 +0000 (12:22 +0000)]
FreeBSD/mips gdb build suspport.  From the mips2-jnpr branch.

16 years agoAdd mips support to libm, from mips2-jnpr perforce branch.
imp [Sat, 26 Apr 2008 12:20:29 +0000 (12:20 +0000)]
Add mips support to libm, from mips2-jnpr perforce branch.

16 years agoBring in mips threads support from perforce mips2-jnpr branch.
imp [Sat, 26 Apr 2008 12:17:57 +0000 (12:17 +0000)]
Bring in mips threads support from perforce mips2-jnpr branch.

16 years agoAdd mips support libc from the mips2-jnpr branch of perforce.
imp [Sat, 26 Apr 2008 12:08:02 +0000 (12:08 +0000)]
Add mips support libc from the mips2-jnpr branch of perforce.

16 years agoRemove the MD isa_irq_pending() and the underlying PCI-specific
marius [Sat, 26 Apr 2008 11:01:38 +0000 (11:01 +0000)]
Remove the MD isa_irq_pending() and the underlying PCI-specific
infrastructure. Its only consumer ever was sio(4) and thus was
unused on sparc64 since removing the last traces of sio(4) in
sparc64 configuration files in favor for uart(4) over three
years ago. If similar functionality is required again it should
be brought back as an MD intr_pending() which works for all
busses by using for example interrupt controller hooks.

16 years ago- Use more appropriate maxsize, nsegments and maxsegsize parameters
marius [Sat, 26 Apr 2008 10:54:17 +0000 (10:54 +0000)]
- Use more appropriate maxsize, nsegments and maxsegsize parameters
  when creating the parent bus DMA tag. While at it correct the style
  and a nearby comment.
- Take advantage of m_collapse(9) for performance reasons.

MFC after: 2 weeks

16 years agoAdd support for the Davicom DM9601.
imp [Sat, 26 Apr 2008 05:46:28 +0000 (05:46 +0000)]
Add support for the Davicom DM9601.

Submitted by: William Grzybowski

16 years ago* Handle the different ioctl design.
jb [Sat, 26 Apr 2008 05:09:19 +0000 (05:09 +0000)]
* Handle the different ioctl design.
* Add a couple of FreeBSD action extensions.

16 years agoMake this file compile cleanly.
jb [Sat, 26 Apr 2008 05:07:54 +0000 (05:07 +0000)]
Make this file compile cleanly.

16 years agoLeave out some header files.
jb [Sat, 26 Apr 2008 05:07:07 +0000 (05:07 +0000)]
Leave out some header files.

16 years ago* Handle building on FreeBSD for i386 and amd64.
jb [Sat, 26 Apr 2008 05:05:48 +0000 (05:05 +0000)]
* Handle building on FreeBSD for i386 and amd64.
* Add stubs for the other FreeBSD arches.
* Make the file compile cleanly.

16 years ago* Make this file compile cleanly.
jb [Sat, 26 Apr 2008 05:03:22 +0000 (05:03 +0000)]
* Make this file compile cleanly.
* Add FreeBSD constructor/destructor definitions.

16 years ago - Remove cumbersome and inaccurate attempt at synchronizing the timestamps
jeff [Sat, 26 Apr 2008 05:02:48 +0000 (05:02 +0000)]
 - Remove cumbersome and inaccurate attempt at synchronizing the timestamps
   post collection.  This is too error prone and introduces uncertainty into
   the timing.  We'll simply have to require synchronized TSCs to run
   schedgraph on MP.

Sponsored by: Nokia

16 years ago* Add FreeBSD action extensions.
jb [Sat, 26 Apr 2008 05:01:29 +0000 (05:01 +0000)]
* Add FreeBSD action extensions.
* Get the kernel module file name rather than hard-coding it like on Solaris.
* Use FreeBSD's process library API.
* Handle FreeBSD's different lock types.
* Get the list of loaded providers via a syscall.

16 years ago* Handle the different ioctl design.
jb [Sat, 26 Apr 2008 04:57:45 +0000 (04:57 +0000)]
* Handle the different ioctl design.
* Make this file compile cleanly.

16 years agoThere is a lot of commented out code here which applies to future work
jb [Sat, 26 Apr 2008 04:56:46 +0000 (04:56 +0000)]
There is a lot of commented out code here which applies to future work
for userland tracing.

For now we need the basic functions to be in place so that DTrace can
be used for kernel tracing.

16 years agoLeave out a header file.
jb [Sat, 26 Apr 2008 04:54:58 +0000 (04:54 +0000)]
Leave out a header file.

16 years agoMerge FreeBSD include file changes with some code that should have come
jb [Sat, 26 Apr 2008 04:53:24 +0000 (04:53 +0000)]
Merge FreeBSD include file changes with some code that should have come
in on the vendor branch.

16 years ago* Use FreeBSD's process library instead of the Solaris one.
jb [Sat, 26 Apr 2008 04:51:45 +0000 (04:51 +0000)]
* Use FreeBSD's process library instead of the Solaris one.
* There are a few placeholders in here for which there isn't libproc
  support code yet. This is relevent to userland tracing. This set of
  commits is designed to get kernel tracing up and running, with the
  userland stuff to follow later.

16 years agoLeave out the hook that Solaris has into it's rtld.
jb [Sat, 26 Apr 2008 04:49:02 +0000 (04:49 +0000)]
Leave out the hook that Solaris has into it's rtld.

16 years ago* Add a couple of action definitions for FreeBSD extensions.
jb [Sat, 26 Apr 2008 04:47:16 +0000 (04:47 +0000)]
* Add a couple of action definitions for FreeBSD extensions.
* Handle the different ioctl design.
* Add support for the get and set error location.
* Add support for freopen().

16 years ago* Handle the different ioctl design.
jb [Sat, 26 Apr 2008 04:44:34 +0000 (04:44 +0000)]
* Handle the different ioctl design.
* Make the file compile cleanly.

16 years agoThere are many places in libdtrace where errno can be set. When an
jb [Sat, 26 Apr 2008 04:43:19 +0000 (04:43 +0000)]
There are many places in libdtrace where errno can be set. When an
error is returned all the way back to the dtrace app, it's hard to
figure out where that error came from.

Add a couple of functions to get and set the error location which can
be optionally compiled into the library.

16 years agoAdd some error definitions for FreeBSD action extensions.
jb [Sat, 26 Apr 2008 04:40:38 +0000 (04:40 +0000)]
Add some error definitions for FreeBSD action extensions.

16 years ago* Make this file compile cleanly.
jb [Sat, 26 Apr 2008 04:39:26 +0000 (04:39 +0000)]
* Make this file compile cleanly.
* Use FreeBSD's kld syscalls to get kernel module information instead
  of using an object file system like Solaris uses.

16 years ago* Handle the different ioctl design.
jb [Sat, 26 Apr 2008 04:37:01 +0000 (04:37 +0000)]
* Handle the different ioctl design.
* Use FreeBSD's process library API.
* Make the file compile cleanly.

16 years agoJust leave out a few includes to compile this on FreeBSD.
jb [Sat, 26 Apr 2008 04:34:50 +0000 (04:34 +0000)]
Just leave out a few includes to compile this on FreeBSD.

16 years ago* Get the maximum number of CPUs via a sysctl.
jb [Sat, 26 Apr 2008 04:33:15 +0000 (04:33 +0000)]
* Get the maximum number of CPUs via a sysctl.
* Handle the different ioctl design.
* Support the freopen() changes.
* Use functions in FreeBSD's process library rather than the CDDL
  library that Solaris has which sits on top of their process file
  system and is therefore unsuitable for use on FreeBSD. The libproc
  API for FreeBSD is deliberately different to that on Solaris because
  Sun wouldn't release the libproc.h header under a BSD license.

16 years ago* Define YY_INPUT for flex since input() can't be re-defined.
jb [Sat, 26 Apr 2008 04:26:23 +0000 (04:26 +0000)]
* Define YY_INPUT for flex since input() can't be re-defined.
* On FreeBSD define both LITTLE_ENDIAN and BIG_ENDIAN and then set the
  BYTE_ORDER to the one we are using. On Solaris they define one or
  the other but not both. For us to keep using FreeBSD header files,
  we need to use endian definitions the same way we do in pure BSD
  code.

16 years agoMake this compile cleanly.
jb [Sat, 26 Apr 2008 04:22:32 +0000 (04:22 +0000)]
Make this compile cleanly.

16 years agoHandle the different level of indirection between ioctl on SYSV vs BSD.
jb [Sat, 26 Apr 2008 04:20:11 +0000 (04:20 +0000)]
Handle the different level of indirection between ioctl on SYSV vs BSD.

16 years agofreopen() on FreeBSD behaves differently to the Solaris one.
jb [Sat, 26 Apr 2008 04:18:35 +0000 (04:18 +0000)]
freopen() on FreeBSD behaves differently to the Solaris one.

16 years ago* Use a portable POSIX timed wait.
jb [Sat, 26 Apr 2008 04:16:17 +0000 (04:16 +0000)]
* Use a portable POSIX timed wait.
* Handle the different ioctl format.

16 years ago* Fix a function prototype.
jb [Sat, 26 Apr 2008 04:13:23 +0000 (04:13 +0000)]
* Fix a function prototype.
* Allow for the different level of indirection between SYSV's ioctl and BSD's.
* Map a couple of sysconf definitions to one that FreeBSD has.

16 years agoSimplify for FreeBSD for now, bypassing the multibyte char variables
jb [Sat, 26 Apr 2008 04:11:16 +0000 (04:11 +0000)]
Simplify for FreeBSD for now, bypassing the multibyte char variables
that Solaris has. We may need to revisit this issue later.

16 years agoSolaris has code which makes zlib optional, so they have to jump through
jb [Sat, 26 Apr 2008 04:09:13 +0000 (04:09 +0000)]
Solaris has code which makes zlib optional, so they have to jump through
some hoops to get the compression functions. On FreeBSD have libz and
can just link against it.

16 years ago'echo' behaviour differs between SYSV and BSD.
jb [Sat, 26 Apr 2008 04:03:58 +0000 (04:03 +0000)]
'echo' behaviour differs between SYSV and BSD.

16 years agoA lot of changes to make this code compile cleanly on FreeBSD.
jb [Sat, 26 Apr 2008 04:01:35 +0000 (04:01 +0000)]
A lot of changes to make this code compile cleanly on FreeBSD.

16 years agoUse FreeBSD's libdwarf which is BSD licensed instead of the GPL'd one that
jb [Sat, 26 Apr 2008 03:59:24 +0000 (03:59 +0000)]
Use FreeBSD's libdwarf which is BSD licensed instead of the GPL'd one that
is used in Solaris.

16 years agoWe need to be consistent with prototype definitions. It isn't OK to
jb [Sat, 26 Apr 2008 03:56:49 +0000 (03:56 +0000)]
We need to be consistent with prototype definitions. It isn't OK to
use 'const' and just override it whenever we feel like it. If we use
it at all, then we need to do it properly.

Add a couple of functions that were useful in getting this code ported.

16 years agoMake this file compile cleanly.
jb [Sat, 26 Apr 2008 03:54:23 +0000 (03:54 +0000)]
Make this file compile cleanly.

16 years agoApply FreeBSD changes.
jb [Sat, 26 Apr 2008 03:47:34 +0000 (03:47 +0000)]
Apply FreeBSD changes.

16 years agoOn FreeBSD we can't afford to have a build fail simply because there
jb [Sat, 26 Apr 2008 03:44:47 +0000 (03:44 +0000)]
On FreeBSD we can't afford to have a build fail simply because there
was some sort of CTF conversion error.

16 years agoAdd a missing include file. We care about function prototype definitions.
jb [Sat, 26 Apr 2008 03:40:56 +0000 (03:40 +0000)]
Add a missing include file. We care about function prototype definitions.

16 years agoApply FreeBSD changes.
jb [Sat, 26 Apr 2008 03:39:02 +0000 (03:39 +0000)]
Apply FreeBSD changes.

There is an incomplete piece of code in here which requires the process
handling library which is still under development.

16 years ago* Set the path to perl on FreeBSD.
jb [Sat, 26 Apr 2008 03:36:28 +0000 (03:36 +0000)]
* Set the path to perl on FreeBSD.
* Use the FreeBSD shell.
* On FreeBSD the tests run from the OBJDIR, so output files go there
  rather than in the source tree like they do on Solaris.
* FreeBSD doesn't need a special path to the compiler.

16 years agoSet the path to perl on FreeBSD.
jb [Sat, 26 Apr 2008 03:34:22 +0000 (03:34 +0000)]
Set the path to perl on FreeBSD.

16 years agoPort these test files to work under FreeBSD.
jb [Sat, 26 Apr 2008 03:32:20 +0000 (03:32 +0000)]
Port these test files to work under FreeBSD.

16 years agoHave the man page catch up with the namespace pollution cleanup that
scf [Sat, 26 Apr 2008 02:33:53 +0000 (02:33 +0000)]
Have the man page catch up with the namespace pollution cleanup that
occurred between 2001-2003.  Thanks to bde for the history lesson[1]
concerning sys/types.h and the many system calls that at one time
(pre-2001) were required by POSIX to include it.

1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html

MFC after: 3 days

16 years agoOpps,missed line in the fix...
jfv [Sat, 26 Apr 2008 02:15:40 +0000 (02:15 +0000)]
Opps,missed line in the fix...

16 years agoThis commit was generated by cvs2svn to compensate for changes in r178528,
jb [Sat, 26 Apr 2008 00:54:52 +0000 (00:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r178528,
which included commits to RCS files with non-trunk default branches.

16 years agoVendor import of the full userland contrib part of DTrace support from
jb [Sat, 26 Apr 2008 00:54:52 +0000 (00:54 +0000)]
Vendor import of the full userland contrib part of DTrace support from
OpenSolaris. This commit resets files to match the versions in the
OpenSolaris tree as of 2008/04/10.

The changes in this import from the previous import are the ones that
will subsequently re-applied to take files off the vendor branch. This
is unfortunately necessary because the Solaris developers won't allow
FreeBSD support #ifdefs in their source code because that creates
'dead code' (stuff that they never compile).

16 years agoReplace the prototype vaps_<ifn> and vap_create_<ifn> variables with
brooks [Fri, 25 Apr 2008 23:50:49 +0000 (23:50 +0000)]
Replace the prototype vaps_<ifn> and vap_create_<ifn> variables with
more wlans_<ifn> and create_args_<ifn>

Add documentation for these variants and generally update the wireless
device example.

There is are very short lived shim from vaps_<ifn> which produces
a warning and vap_create_<ifn> which does not.  Misuse the MFC
notification service to remind me to remove them.

MFC after: 3 weeks

16 years agoVendor import of DTrace support files from OpenSolaris.
jb [Fri, 25 Apr 2008 23:33:18 +0000 (23:33 +0000)]
Vendor import of DTrace support files from OpenSolaris.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r178525,
jb [Fri, 25 Apr 2008 23:33:18 +0000 (23:33 +0000)]
This commit was generated by cvs2svn to compensate for changes in r178525,
which included commits to RCS files with non-trunk default branches.

16 years agoA change got dropped in the merge, add back
jfv [Fri, 25 Apr 2008 23:22:01 +0000 (23:22 +0000)]
A change got dropped in the merge, add back

16 years agoThis delta has a few important items:
jfv [Fri, 25 Apr 2008 21:19:41 +0000 (21:19 +0000)]
This delta has a few important items:

PR 122839 is fixed in both em and in igb

Second, the issue on building modules since the static kernel
build changes is now resolved. I was not able to get the fancier
directory hierarchy working, but this works, both em and igb
build as modules now.

Third, there is now support in em for two new NICs, Hartwell
(or 82574) is a low cost PCIE dual port adapter that has MSIX,
for this release it uses 3 vectors only, RX, TX, and LINK. In
the next release I will add a second TX and RX queue. Also, there
is support here for ICH10, the followon to ICH9. Both of these are
early releases, general availability will follow soon.

Fourth: On Hartwell and ICH10 we now have IEEE 1588 PTP support,
I have implemented this in a provisional way so that early adopters
may try and comment on the functionality. The IOCTL structure may
change. This feature is off by default, you need to edit the Makefile
and add the EM_TIMESYNC define to get the code.

Enjoy all!!

16 years agoadd rules for statically embedding ipw, iwi, ral, and wpi firmware modules
sam [Fri, 25 Apr 2008 20:42:48 +0000 (20:42 +0000)]
add rules for statically embedding ipw, iwi, ral, and wpi firmware modules

16 years agohookup the parent device's if_input and if_output to stub routines
sam [Fri, 25 Apr 2008 19:45:42 +0000 (19:45 +0000)]
hookup the parent device's if_input and if_output to stub routines
to catch unintended use (one might argue about if_output but it's
behaviour is ill-defined without vap context)

Noticed by: Paul B. Mahol

16 years agoremove scan task on state change so it doesn't unexpectedly fire
sam [Fri, 25 Apr 2008 19:13:38 +0000 (19:13 +0000)]
remove scan task on state change so it doesn't unexpectedly fire

Noticed by: Paul B. Mahol

16 years agoAdd "ddb capture print" and "ddb capture status" commands do ddb(8),
rwatson [Fri, 25 Apr 2008 17:34:09 +0000 (17:34 +0000)]
Add "ddb capture print" and "ddb capture status" commands do ddb(8),
alowing the DDB output capture buffer to be easily extracted from
user space.  Both of these commands include -M/-N arguments, allowing
them to be used with kernel crash dumps (or /dev/mem).

This makes it easier to use DDB scripting and output capture with
minidumps or full dumps rather than with text dumps, allowing DDB
output (scripted or otherwise) to be easily extracted from a crash
dump.

MFC after: 1 week
Discussed with: brooks, jhb

16 years agoInitialize tz_active to a new constant TZ_ACTIVE_UNKNOWN and make no
rpaulo [Fri, 25 Apr 2008 16:45:13 +0000 (16:45 +0000)]
Initialize tz_active to a new constant TZ_ACTIVE_UNKNOWN and make no
assumptions about the state of the cooling devices. Instead, switch them
off on init and, only after that, we are in TZ_ACTIVE_NONE.

Submited by: Andriy Gapon <avg at icyb.net.ua>
Reviewed by: njl

16 years agoUnbreak previous commit. While here, refactor the code a bit.
marcel [Fri, 25 Apr 2008 16:09:03 +0000 (16:09 +0000)]
Unbreak previous commit. While here, refactor the code a bit.

16 years agoAlways use PG_PS_FRAME to extract the physical address of a 2/4MB page
alc [Fri, 25 Apr 2008 16:00:39 +0000 (16:00 +0000)]
Always use PG_PS_FRAME to extract the physical address of a 2/4MB page
from a PDE.

16 years agoRename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in
rwatson [Fri, 25 Apr 2008 13:23:36 +0000 (13:23 +0000)]
Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in
order to match the internal variable name.

Add a new sysctl debug.ddb.capture.inprogress to export the inprogress
variable.

MFC after: 3 days

16 years agoo Fixed multi thread access issue reported by Alexander V. Chernikov
daichi [Fri, 25 Apr 2008 11:37:20 +0000 (11:37 +0000)]
o Fixed multi thread access issue reported by Alexander V. Chernikov
    (admin@su29.net)
  fixed: kern/109950

PR: kern/109950
Submitted by: Alexander V. Chernikov (admin@su29.net)
Reviewed by: Masanori OZAWA (ozawa@ongs.co.jp)
MFC after: 1 week

16 years agoo Improved unix socket connection issue
daichi [Fri, 25 Apr 2008 09:53:52 +0000 (09:53 +0000)]
o Improved unix socket connection issue
  fixed: kern/118346

PR: kern/118346
Submitted by: Masanori OZAWA (ozawa@ongs.co.jp)
MFC after: 1 week

16 years agoo Fixed rename panic issue
daichi [Fri, 25 Apr 2008 09:44:47 +0000 (09:44 +0000)]
o Fixed rename panic issue

Submitted by: Masanori OZAWA (ozawa@ongs.co.jp)
MFC after: 1 week

16 years ago o Fixed inaccessible issue especially including devfs on unionfs case.
daichi [Fri, 25 Apr 2008 09:38:48 +0000 (09:38 +0000)]
  o Fixed inaccessible issue especially including devfs on unionfs case.
    fixed also: kern/117829

PR: kern/117829
Submitted by: Masanori OZAWA (ozawa@ongs.co.jp)
MFC after: 1 week

16 years agoVendor import of the CTF (Compact C Type Format) code used by DTrace
jb [Fri, 25 Apr 2008 09:07:28 +0000 (09:07 +0000)]
Vendor import of the CTF (Compact C Type Format) code used by DTrace
from OpenSolaris.